Les tests sur les événéments n'étaient pas en phase avec la bonne redirection vers root après création

This commit is contained in:
echarp 2014-06-29 14:09:02 +02:00
parent bb35cddaeb
commit 26854f3b7f
2 changed files with 4 additions and 4 deletions

View File

@ -53,7 +53,7 @@ class EventsControllerTest < ActionController::TestCase
}
end
assert_redirected_to event_path(assigns(:event))
assert_redirected_to root_url
end
test "should show event" do
@ -68,7 +68,7 @@ class EventsControllerTest < ActionController::TestCase
test "should not get edit" do
get :edit, id: @event
assert_redirected_to event_path(assigns(:event))
assert_redirected_to root_url
end
test "should update event" do

View File

@ -1,7 +1,7 @@
require 'test_helper'
class EventTest < ActiveSupport::TestCase
test "basic event" do
test 'basic event' do
@event = Event.new(
title: 'hello world',
start_time: Time.new(),
@ -20,7 +20,7 @@ class EventTest < ActiveSupport::TestCase
assert_equal 32, @event.submitter_mail_id.size()
end
test "validations" do
test 'validations' do
@event = Event.new(
title: 'hello world',
start_time: Time.new(),