tests: add iqdb queries controller tests.

This commit is contained in:
evazion
2017-02-06 16:06:23 -06:00
parent e26fb61ee9
commit 3edd814be5
4 changed files with 46 additions and 1 deletions

View File

@@ -2039,7 +2039,7 @@ class PostTest < ActiveSupport::TestCase
context "a post that has been updated" do
setup do
@post = FactoryGirl.create(:post, :rating => "q", :tag_string => "aaa")
@post = FactoryGirl.create(:post, :rating => "q", :tag_string => "aaa", :source => nil)
@post.stubs(:merge_version?).returns(false)
@post.update_attributes(:tag_string => "aaa bbb ccc ddd")
@post.update_attributes(:tag_string => "bbb xxx yyy", :source => "xyz")