Sha256: 588ffd8a21b2814903358b79dcd50c027cdd263bda10324ba41348e0250ce85e

Contents?: true

Size: 509 Bytes

Versions: 4

Compression:

Stored size: 509 Bytes

Contents

require 'fileutils'
require 'rr'
require 'test/unit'

World do
  include Test::Unit::Assertions
end

TEST_DIR    = File.join('/', 'tmp', 'jekyll')
JEKYLL_PATH = File.join(ENV['PWD'], 'bin', 'jekyll')

def run_jekyll(opts = {})
  command = JEKYLL_PATH.clone
  command << " build"
  command << " --drafts" if opts[:drafts]
  command << " >> /dev/null 2>&1" if opts[:debug].nil?
  system command
end

# work around "invalid option: --format" cucumber bug (see #296)
Test::Unit.run = true if RUBY_VERSION < '1.9'

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
jekyll-1.0.0.beta4 features/support/env.rb
jekyll-1.0.0.beta3 features/support/env.rb
jekyll-1.0.0.beta2 features/support/env.rb
jekyll-1.0.0.beta1 features/support/env.rb