Fixing Pager test for 1.8.7.

This commit is contained in:
Parker Moore 2013-05-05 18:08:03 +02:00
parent 1c146ec649
commit dcd7b36269
2 changed files with 5 additions and 2 deletions

View File

@ -6,6 +6,7 @@ end
require 'rubygems'
require 'test/unit'
require 'ostruct'
gem 'RedCloth', '>= 4.2.1'
require 'jekyll'

View File

@ -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