Sha256: bb5c00832edc339ebc03c70b4c35a7e4b0fe5af97567802c9a09f62806c4b307

Contents?: true

Size: 609 Bytes

Versions: 4

Compression:

Stored size: 609 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(File.dirname(__FILE__), '..', '..', '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

def has_time_component?(date_string)
  date_string.split(" ").size > 1
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.2 features/support/env.rb
jekyll-1.0.1 features/support/env.rb
jekyll-1.0.0 features/support/env.rb
jekyll-1.0.0.rc1 features/support/env.rb