tests: fix various broken tests.

This commit is contained in:
evazion
2020-01-17 19:21:20 -06:00
parent 20f893161b
commit b7350b8fe0
5 changed files with 15 additions and 30 deletions

View File

@@ -19,12 +19,8 @@ module PostSets
end
context "a set for page 2" do
setup do
@set = PostSets::Post.new("", 2)
::Post.stubs(:records_per_page).returns(1)
end
should "return the second element" do
@set = PostSets::Post.new("", 2, 1)
assert_equal(@post_2.id, @set.posts.first.id)
end
end