fixed tests

This commit is contained in:
albert
2011-10-22 19:01:27 -04:00
parent 5444ad5107
commit 0de90d487b
10 changed files with 19 additions and 24 deletions

View File

@@ -44,9 +44,9 @@ class ArtistsControllerTest < ActionController::TestCase
should "update an artist" do
post :update, {:id => @artist.id, :artist => {:name => "xxx"}}, {:user_id => @user.id}
artist = Artist.last
assert_equal("xxx", artist.name)
assert_redirected_to(artist_path(artist))
@artist.reload
assert_equal("xxx", @artist.name)
assert_redirected_to(artist_path(@artist))
end
should "revert an artist" do