delete old superfluous tests; extend feature
This commit is contained in:
parent
1997281449
commit
2804e08908
|
@ -142,14 +142,17 @@ Feature: Create sites
|
||||||
|
|
||||||
Scenario: Basic site with unpublished page
|
Scenario: Basic site with unpublished page
|
||||||
Given I have an "index.html" page with title "index" that contains "Published page"
|
Given I have an "index.html" page with title "index" that contains "Published page"
|
||||||
|
And I have a "public.html" page with published "true" that contains "Explicitly published page"
|
||||||
And I have a "secret.html" page with published "false" that contains "Unpublished page"
|
And I have a "secret.html" page with published "false" that contains "Unpublished page"
|
||||||
|
|
||||||
When I run jekyll
|
When I run jekyll
|
||||||
Then the _site directory should exist
|
Then the _site directory should exist
|
||||||
And the "_site/index.html" file should exist
|
And the "_site/index.html" file should exist
|
||||||
|
And the "_site/public.html" file should exist
|
||||||
But the "_site/secret.html" file should not exist
|
But the "_site/secret.html" file should not exist
|
||||||
|
|
||||||
When I run jekyll with "--unpublished"
|
When I run jekyll with "--unpublished"
|
||||||
Then the _site directory should exist
|
Then the _site directory should exist
|
||||||
And the "_site/index.html" file should exist
|
And the "_site/index.html" file should exist
|
||||||
|
And the "_site/public.html" file should exist
|
||||||
And the "_site/secret.html" file should exist
|
And the "_site/secret.html" file should exist
|
||||||
|
|
|
@ -415,16 +415,6 @@ class TestPost < Test::Unit::TestCase
|
||||||
end
|
end
|
||||||
|
|
||||||
context "initializing posts" do
|
context "initializing posts" do
|
||||||
should "publish when published yaml is no specified" do
|
|
||||||
post = setup_post("2008-02-02-published.textile")
|
|
||||||
assert_equal true, @site.send(:publisher).publish?(post)
|
|
||||||
end
|
|
||||||
|
|
||||||
should "not published when published yaml is false" do
|
|
||||||
post = setup_post("2008-02-02-not-published.textile")
|
|
||||||
assert_equal false, @site.send(:publisher).publish?(post)
|
|
||||||
end
|
|
||||||
|
|
||||||
should "recognize date in yaml" do
|
should "recognize date in yaml" do
|
||||||
post = setup_post("2010-01-09-date-override.textile")
|
post = setup_post("2010-01-09-date-override.textile")
|
||||||
do_render(post)
|
do_render(post)
|
||||||
|
|
Loading…
Reference in New Issue