Merge pull request #2976 from evazion/fix-tests

Fix failing Pixiv tests
This commit is contained in:
Albert Yi
2017-04-17 13:09:32 -07:00
committed by GitHub
5 changed files with 16 additions and 16 deletions

View File

@@ -54,8 +54,8 @@ class TagSubscriptionsControllerTest < ActionController::TestCase
end
context "create action" do
should "create a new tag subscription" do
assert_difference("TagSubscription.count", 1) do
should "not create a new tag subscription" do
assert_no_difference("TagSubscription.count") do
post :create, {:tag_subscription => {:name => "aaa", :tag_query => "bbb"}}, {:user_id => @user.id}
end
end