tests: fix broken tests.

Fixups for c3c4f5a2a.
This commit is contained in:
evazion
2022-01-15 21:46:39 -06:00
parent 8a4faf7741
commit c455c08b2c
4 changed files with 14 additions and 14 deletions

View File

@@ -5,8 +5,8 @@ class PostVersionsControllerTest < ActionDispatch::IntegrationTest
@user = create(:user)
as(@user) do
@post = create(:post, tag_string: "tagme", rating: "s", source: "blah")
travel(2.hours) { @post.update(tag_string: "1 2", source: "xxx") }
@post = create(:post, tag_string: "tagme", rating: "s", source: "http://blah.com")
travel(2.hours) { @post.update(tag_string: "1 2", source: "http://xxx.com") }
travel(4.hours) { @post.update(tag_string: "2 3", rating: "e") }
@post2 = create(:post)
end
@@ -56,7 +56,7 @@ class PostVersionsControllerTest < ActionDispatch::IntegrationTest
assert_response :redirect
assert_equal("e", @post.reload.rating)
assert_equal("3 tagme", @post.tag_string)
assert_equal("blah", @post.source)
assert_equal("http://blah.com", @post.source)
end
should "not allow non-members to undo edits" do