Sha256: 3f130ccb24db5a215dec97f1e19d47b0ff83df4567b019cfa085fda688e1d762

Contents?: true

Size: 688 Bytes

Versions: 3

Compression:

Stored size: 688 Bytes

Contents

require 'English'
require 'pathname'
require 'spec/expectations'
require File.expand_path('../../lib/germinate', File.dirname(__FILE__))

EXAMPLE_ARTICLES = (Pathname(__FILE__).dirname + '../example_articles')
EXAMPLE_OUTPUT = (Pathname(__FILE__).dirname + '../example_output')
EXAMPLE_BIN = (Pathname(__FILE__).dirname + '../bin')

ENV['PATH'] += ":" + EXAMPLE_BIN.to_s

def run_germinate(arguments, permit_failure=false)
  exec_path = (Pathname(__FILE__).dirname + '..' + '..' + 'bin/germ').expand_path
  command   = "#{exec_path} #{arguments}"
  @output   = `#{command}`
  @result   = $CHILD_STATUS
  raise "Command `#{command}` failed" unless @result.success? or permit_failure
end


Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
devver-germinate-1.1.0 features/support/env.rb
devver-germinate-1.2.0 features/support/env.rb
germinate-1.2.0 features/support/env.rb