Fixing Pager test for 1.8.7.
This commit is contained in:
parent
1c146ec649
commit
dcd7b36269
|
@ -6,6 +6,7 @@ end
|
|||
|
||||
require 'rubygems'
|
||||
require 'test/unit'
|
||||
require 'ostruct'
|
||||
gem 'RedCloth', '>= 4.2.1'
|
||||
|
||||
require 'jekyll'
|
||||
|
|
|
@ -23,7 +23,8 @@ class TestPager < Test::Unit::TestCase
|
|||
end
|
||||
|
||||
should "report that pagination is disabled" do
|
||||
assert !Pager.pagination_enabled?(@config, OpenStruct.new(name: 'index.html', dir: '/'))
|
||||
page = OpenStruct.new({ :name => 'index.html', :dir => '/' })
|
||||
assert !Pager.pagination_enabled?(@config, page)
|
||||
end
|
||||
|
||||
end
|
||||
|
@ -45,7 +46,8 @@ class TestPager < Test::Unit::TestCase
|
|||
end
|
||||
|
||||
should "report that pagination is enabled" do
|
||||
assert Pager.pagination_enabled?(@config, OpenStruct.new(name: 'index.html', dir: '/'))
|
||||
page = OpenStruct.new({ :name => 'index.html', :dir => '/' })
|
||||
assert Pager.pagination_enabled?(@config, page)
|
||||
end
|
||||
|
||||
context "with 4 posts" do
|
||||
|
|
Loading…
Reference in New Issue