Sha256: b6e104cdf44887fe51d42ea1eb90be0cbf618b3bb7c3b0f16a7376efdfb6c42c

Contents?: true

Size: 606 Bytes

Versions: 2

Compression:

Stored size: 606 Bytes

Contents

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

World do
  include Test::Unit::Assertions
end

TEST_DIR    = File.join('/', 'tmp', 'monad')
JEKYLL_PATH = File.join(File.dirname(__FILE__), '..', '..', 'bin', 'monad')

def run_monad(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

2 entries across 2 versions & 1 rubygems

Version Path
monad-0.0.2 features/support/env.rb
monad-0.0.1 features/support/env.rb