<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -3,3 +3,4 @@ test/dest/
 pkg/
 *.swp
 *~
+_site/</diff>
      <filename>.gitignore</filename>
    </modified>
    <modified>
      <diff>@@ -5,56 +5,51 @@ Feature: Site configuration
 
   Scenario: Change destination directory
     Given I have a blank site in &quot;_sourcedir&quot;
-    And I have an &quot;index.html&quot; file that contains &quot;Changing source directory&quot;
-    And I have a configuration file in &quot;_sourcedir&quot; with &quot;source&quot; set to &quot;_sourcedir&quot;
+    And I have an &quot;_sourcedir/index.html&quot; file that contains &quot;Changing source directory&quot;
+    And I have a configuration file with &quot;source&quot; set to &quot;_sourcedir&quot;
     When I run jekyll
     Then the _site directory should exist
     And I should see &quot;Changing source directory&quot; in &quot;_site/index.html&quot;
 
   Scenario: Change destination directory
-    Given I have a blank site
-    And I have an &quot;index.html&quot; file that contains &quot;Changing destination directory&quot;
-    And I have a configuration file with &quot;site&quot; set to &quot;_mysite&quot;
+    Given I have an &quot;index.html&quot; file that contains &quot;Changing destination directory&quot;
+    And I have a configuration file with &quot;destination&quot; set to &quot;_mysite&quot;
     When I run jekyll
     Then the _mysite directory should exist
-    And I should see &quot;Basic Site&quot; in &quot;_mysite/index.html&quot;
+    And I should see &quot;Changing destination directory&quot; in &quot;_mysite/index.html&quot;
 
   Scenario: Use RDiscount for markup
-    Given I have a blank site
-    And I have an &quot;index.html&quot; file that contains &quot;[Google](http://google.com)&quot;
+    Given I have an &quot;index.html&quot; file that contains &quot;[Google](http://google.com)&quot;
     And I have a configuration file with &quot;markdown&quot; set to &quot;rdiscount&quot;
     When I run jekyll
     Then the _site directory should exist
     And I should see &quot;&lt;a href='http://google.com/&gt;Google&lt;/a&gt;&quot; in &quot;_site/index.html&quot;
 
   Scenario: Use Maruku for markup
-    Given I have a blank site
-    And I have an &quot;index.html&quot; file that contains &quot;[Google](http://google.com)&quot;
-    And I have a configuration file with &quot;markdown&quot; set to &quot;rdiscount&quot;
+    Given I have an &quot;index.markdown&quot; page that contains &quot;[Google](http://google.com)&quot;
+    And I have a configuration file with &quot;markdown&quot; set to &quot;maruku&quot;
     When I run jekyll
     Then the _site directory should exist
-    And I should see &quot;&lt;a href='http://google.com/&gt;Google&lt;/a&gt;&quot; in &quot;_site/index.html&quot;
+    And I should see &quot;&lt;a href='http://google.com'&gt;Google&lt;/a&gt;&quot; in &quot;_site/index.html&quot;
 
-  Scenario: Disable auto-regeneration
-    Given I have a blank site
-    And I have an &quot;index.html&quot; file that contains &quot;My Awesome Site&quot;
-    And I have a configuration file with &quot;auto&quot; set to &quot;false&quot;
-    When I run jekyll
-    And I change &quot;index.html&quot; to contain &quot;Auto-regenerate off!&quot;
+  Scenario: Enable auto-regeneration
+    Given I have an &quot;index.html&quot; file that contains &quot;My Awesome Site&quot;
+    And I have a configuration file with &quot;auto&quot; set to &quot;true&quot;
+    When I run jekyll in the background
+    And I change &quot;index.html&quot; to contain &quot;Auto-regenerate on!&quot;
     Then the _site directory should exist
-    And I should see &quot;My awesome site&quot; in &quot;_site/index.html&quot;
+    And I should see &quot;My Awesome Site&quot; in &quot;_site/index.html&quot;
+    And I should see &quot;Auto-regenerate on!&quot; in &quot;_site/index.html&quot;
 
   Scenario: Run server to host generated site
-    Given I have a blank site
-    And I have an &quot;index.html&quot; file that contains &quot;WEBrick to the rescue&quot;
+    Given I have an &quot;index.html&quot; file that contains &quot;WEBrick to the rescue&quot;
     And I have a configuration file with &quot;server&quot; set to &quot;true&quot;
     When I run jekyll
     And I go to &quot;http://0.0.0.0:4000&quot;
     Then I should see &quot;WEBrick to the rescue&quot;
 
   Scenario: Run server on a different server port
-    Given I have a blank site
-    And I have an &quot;index.html&quot; file that contains &quot;Changing Port&quot;
+    Given I have an &quot;index.html&quot; file that contains &quot;Changing Port&quot;
     And I have a configuration file with &quot;server&quot; set to &quot;true&quot;
     And I have a configuration file with &quot;port&quot; set to &quot;1337&quot;
     When I run jekyll
@@ -62,8 +57,7 @@ Feature: Site configuration
     Then I should see &quot;Changing Port&quot;
 
   Scenario: Use none permalink schema
-    Given I have a blank site
-    And I have a _posts directory
+    Given I have a _posts directory
     And I have the following post:
       | title                 | date      | content          |
       | None Permalink Schema | 3/27/2009 | Totally nothing. |
@@ -73,8 +67,7 @@ Feature: Site configuration
     And I should see &quot;Totally nothing.&quot; in &quot;_site/none-permalink-schema.html&quot;
 
   Scenario: Use pretty permalink schema
-    Given I have a blank site
-    And I have a _posts directory
+    Given I have a _posts directory
     And I have the following post:
       | title                   | date      | content            |
       | Pretty Permalink Schema | 3/27/2009 | Totally wordpress. |
@@ -84,8 +77,7 @@ Feature: Site configuration
     And I should see &quot;Totally wordpress.&quot; in &quot;_site/2009/03/27/pretty-permalink-schema/index.html&quot;
 
   Scenario: Highlight code with pygments
-    Given I have a blank site
-    And I have an &quot;index.html&quot; file that contains &quot;{% highlight ruby %} puts 'Hello world!' {% endhighlight %}&quot;
+    Given I have an &quot;index.html&quot; file that contains &quot;{% highlight ruby %} puts 'Hello world!' {% endhighlight %}&quot;
     And I have a configuration file with &quot;pygments&quot; set to &quot;true&quot;
     When I run jekyll
     Then the _site directory should exist</diff>
      <filename>features/site_configuration.feature</filename>
    </modified>
    <modified>
      <diff>@@ -8,15 +8,19 @@ After do
   FileUtils.rm_rf(TEST_DIR)
 end
 
+Given /^I have a blank site in &quot;(.*)&quot;$/ do |path|
+  FileUtils.mkdir(path)
+end
+
+# Like &quot;I have a foo file&quot; but gives a yaml front matter so jekyll actually processes it
 Given /^I have an &quot;(.*)&quot; page(?: with layout &quot;(.*)&quot;)? that contains &quot;(.*)&quot;$/ do |file, layout, text|
   File.open(file, 'w') do |f|
     f.write &lt;&lt;EOF
 ---
 layout: #{layout || 'nil'}
 ---
+#{text}
 EOF
-
-    f.write(text)
     f.close
   end
 end
@@ -75,16 +79,25 @@ EOF
   end
 end
 
-Given /^I have a configuration file(?: in &quot;(.*)&quot;)? with &quot;(.*)&quot; set to &quot;(.*)&quot;$/ do |dir, key, value|
-    pending
+Given /^I have a configuration file with &quot;(.*)&quot; set to &quot;(.*)&quot;$/ do |key, value|
+  File.open('_config.yml', 'w') do |f|
+    f.write(&quot;#{key}: #{value}&quot;)
+    f.close
+  end
+end
+
+When /^I run jekyll in the background$/ do
+  run_jekyll(:bg =&gt; true)
 end
 
 When /^I run jekyll$/ do
-  system File.join(ENV['PWD'], 'bin', 'jekyll') + &quot; &gt;&gt; /dev/null&quot;
+  run_jekyll
 end
 
 When /^I change &quot;(.*)&quot; to contain &quot;(.*)&quot;$/ do |file, text|
-    pending
+  File.open(file, 'a') do |f|
+    f.write(text)
+  end
 end
 
 When /^I go to &quot;(.*)&quot;$/ do |address|</diff>
      <filename>features/step_definitions/jekyll_steps.rb</filename>
    </modified>
    <modified>
      <diff>@@ -6,4 +6,12 @@ World do
   include Test::Unit::Assertions
 end
 
-TEST_DIR = File.join('/', 'tmp', 'jekyll')
+TEST_DIR    = File.join('/', 'tmp', 'jekyll')
+JEKYLL_PATH = File.join(ENV['PWD'], 'bin', 'jekyll')
+
+def run_jekyll(opts = {})
+  if opts[:bg]
+    bg = '&amp;'
+  end
+  system &quot;#{JEKYLL_PATH} &gt;&gt; /dev/null #{bg}&quot;
+end</diff>
      <filename>features/support/env.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>3c0bc3b2de7a87b82344b5041d87a3753d607bf9</id>
    </parent>
  </parents>
  <author>
    <name>Nick Quaranto</name>
    <email>nick@quaran.to</email>
  </author>
  <url>http://github.com/henrik/jekyll/commit/4e302c0445ae257bc7cfd211a9a743ee12b376e3</url>
  <id>4e302c0445ae257bc7cfd211a9a743ee12b376e3</id>
  <committed-date>2009-04-01T15:43:06-07:00</committed-date>
  <authored-date>2009-04-01T15:43:06-07:00</authored-date>
  <message>Started on site config feature</message>
  <tree>29858f1a5a0b9332948ab0b11acccb2357e05c2b</tree>
  <committer>
    <name>Nick Quaranto</name>
    <email>nick@quaran.to</email>
  </committer>
</commit>
