Skip to content
This repository has been archived by the owner on Jun 7, 2021. It is now read-only.

Commit

Permalink
fixed test
Browse files Browse the repository at this point in the history
  • Loading branch information
mattherick committed Jan 13, 2015
1 parent dfb7061 commit 34bda98
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/functional/tags_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,12 @@ def test_should_show_matching_items_for_multiple_tags
end

def test_should_update_tag
posts(:apt_post).tag_list = "#{tags(:general).name},#{tags(:extra).name}"
posts(:apt_post).tag_list = "hansel"
posts(:apt_post).save

login_as :admin
patch :update, :id => posts(:apt_post).tags.first.name, :tag => {:name => 'changed name' }
assert_equal assigns(:tag).name, "changed name"
patch :update, :id => "hansel", :tag => {:name => 'gretel' }
assert_equal assigns(:tag).name, "gretel"
assert_redirected_to admin_tags_path
end
end

0 comments on commit 34bda98

Please sign in to comment.