remove tests for default layouts
This commit is contained in:
parent
b7064a4bc3
commit
cc5ce06d78
|
|
@ -103,16 +103,6 @@ class TestPage < Test::Unit::TestCase
|
|||
end
|
||||
end
|
||||
|
||||
context "with unspecified layout" do
|
||||
setup do
|
||||
@page = setup_page('contacts.html')
|
||||
end
|
||||
|
||||
should "default to 'post' layout" do
|
||||
assert_equal "page", @page.data["layout"]
|
||||
end
|
||||
end
|
||||
|
||||
context "with specified layout of nil" do
|
||||
setup do
|
||||
@page = setup_page('sitemap.xml')
|
||||
|
|
|
|||
|
|
@ -95,7 +95,7 @@ class TestPost < Test::Unit::TestCase
|
|||
should "consume the embedded dashes" do
|
||||
@post.read_yaml(@source, @real_file)
|
||||
|
||||
assert_equal({"title" => "Foo --- Bar", "layout" => "post"}, @post.data)
|
||||
assert_equal({"title" => "Foo --- Bar"}, @post.data)
|
||||
assert_equal "Triple the fun!", @post.content
|
||||
end
|
||||
end
|
||||
|
|
@ -140,18 +140,6 @@ class TestPost < Test::Unit::TestCase
|
|||
end
|
||||
end
|
||||
|
||||
context "with unspecified layout" do
|
||||
setup do
|
||||
file = '2013-01-12-no-layout.textile'
|
||||
@post = setup_post(file)
|
||||
@post.process(file)
|
||||
end
|
||||
|
||||
should "default to 'post' layout" do
|
||||
assert_equal "post", @post.data["layout"]
|
||||
end
|
||||
end
|
||||
|
||||
context "with specified layout of nil" do
|
||||
setup do
|
||||
file = '2013-01-12-nil-layout.textile'
|
||||
|
|
|
|||
Loading…
Reference in New Issue