mirror of
https://github.com/jekyll/jekyll.git
synced 2026-01-30 01:08:26 -05:00
Fixing Pager test for 1.8.7.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user