diff --git a/features/site_configuration.feature b/features/site_configuration.feature index d2f0621916b..e2395b76510 100644 --- a/features/site_configuration.feature +++ b/features/site_configuration.feature @@ -19,11 +19,11 @@ Feature: Site configuration And I should see "Changing destination directory" in "_mysite/index.html" Scenario: Use RDiscount for markup - Given I have an "index.html" file that contains "[Google](http://google.com)" + Given I have an "index.markdown" page that contains "[Google](http://google.com)" And I have a configuration file with "markdown" set to "rdiscount" When I run jekyll Then the _site directory should exist - And I should see "Google" in "_site/index.html" - Scenario: Enable auto-regeneration - Given I have an "index.html" file that contains "My Awesome Site" - And I have a configuration file with "auto" set to "true" - When I run jekyll in the background - And I change "index.html" to contain "Auto-regenerate on!" - Then the _site directory should exist - And I should see "My Awesome Site" in "_site/index.html" - And I should see "Auto-regenerate on!" in "_site/index.html" - - Scenario: Run server to host generated site - Given I have an "index.html" file that contains "WEBrick to the rescue" - And I have a configuration file with "server" set to "true" - When I run jekyll - And I go to "http://0.0.0.0:4000" - Then I should see "WEBrick to the rescue" - - Scenario: Run server on a different server port - Given I have an "index.html" file that contains "Changing Port" - And I have a configuration file with "server" set to "true" - And I have a configuration file with "port" set to "1337" - When I run jekyll - And I go to "http://0.0.0.0:1337" - Then I should see "Changing Port" - Scenario: Use none permalink schema Given I have a _posts directory And I have the following post: diff --git a/features/step_definitions/jekyll_steps.rb b/features/step_definitions/jekyll_steps.rb index e01254861fe..3129360cddc 100644 --- a/features/step_definitions/jekyll_steps.rb +++ b/features/step_definitions/jekyll_steps.rb @@ -86,10 +86,6 @@ end end -When /^I run jekyll in the background$/ do - run_jekyll(:bg => true) -end - When /^I run jekyll$/ do run_jekyll end diff --git a/features/support/env.rb b/features/support/env.rb index 31f028d4b66..91734f0899f 100644 --- a/features/support/env.rb +++ b/features/support/env.rb @@ -13,5 +13,6 @@ def run_jekyll(opts = {}) if opts[:bg] bg = '&' end - system "#{JEKYLL_PATH} >> /dev/null #{bg}" + + system "#{JEKYLL_PATH} >> /dev/null" end