Revert "Merge pull request #2952 from evazion/fix-2950"
This reverts commit ae4509a541197684bfb0538f65afa827854b4335, reversing changes made to eb008a0e765e231a8fdef594759a61798d6bd1d5.
This commit is contained in:
@@ -244,6 +244,7 @@ class PoolTest < ActiveSupport::TestCase
|
||||
@pool.update(name: "blah")
|
||||
assert_equal("blah", @pool.versions.last.name)
|
||||
end
|
||||
assert_equal(2, @pool.versions.size)
|
||||
end
|
||||
|
||||
should "know what its post ids were previously" do
|
||||
|
||||
@@ -102,11 +102,10 @@ class PostArchiveTest < ActiveSupport::TestCase
|
||||
setup do
|
||||
PostArchive.sqs_service.stubs(:merge?).returns(false)
|
||||
@post = FactoryGirl.create(:post, :tag_string => "aaa bbb ccc", :rating => "q", :source => "xyz")
|
||||
@post.update_attributes(:tag_string => "bbb ccc xxx", :source => "")
|
||||
end
|
||||
|
||||
should "also create a version" do
|
||||
@post.update_attributes(:tag_string => "bbb ccc xxx", :source => "")
|
||||
|
||||
assert_equal(2, @post.versions.size)
|
||||
@version = @post.versions.sort_by(&:id).last
|
||||
assert_equal("bbb ccc xxx", @version.tags)
|
||||
|
||||
Reference in New Issue
Block a user