This commit is contained in:
r888888888
2013-04-23 17:07:28 -07:00
parent cd63a10d9f
commit 513c0f8eeb
3 changed files with 29 additions and 8 deletions

View File

@@ -42,7 +42,9 @@ class ArtistsControllerTest < ActionController::TestCase
should "create an artist" do
assert_difference("Artist.count", 1) do
post :create, {:artist => FactoryGirl.attributes_for(:artist)}, {:user_id => @user.id}
attributes = FactoryGirl.attributes_for(:artist)
attributes.delete(:is_active)
post :create, {:artist => attributes}, {:user_id => @user.id}
end
artist = Artist.last
assert_redirected_to(artist_path(artist))