Displaying 1 result from an estimated 1 matches for "artist_path".
2009 Apr 30
1
error with test:functionals
...n see on the database that the object was created but I still got
an failure on my test.
this is my test code:
test "should create artist" do
assert_difference(''Artist.count'', difference = 1) do
post :create, :artist => { }
end
assert_redirected_to artist_path(assigns(:artist))
end
and this is my failure message:
1) Failure:
test_should_create_artist(ArtistsControllerTest)
[/Users/bonacode/Desktop/arteacesso-br/arteacesso/vendor/rails/
activesupport/lib/active_support/testing/core_ext/test/unit/
assertions.rb:51:in `assert_difference''...