Sha256: 7ab6a515d92364e83a9060766b2ec9db48296d494cc51fcd388c3e63dbb915eb

Contents?: true

Size: 819 Bytes

Versions: 17

Compression:

Stored size: 819 Bytes

Contents

require 'bundler'
begin
  Bundler.setup(:default, :xzibit, :test)
rescue Bundler::BundlerError => e
  $stderr.puts e.message
  $stderr.puts "Run `bundle install` to install missing gems"
  exit e.status_code
end

require 'juwelier'
require 'mocha'
require 'output_catcher'
require 'timecop'
require 'ruby-debug'
require 'active_support'

require 'test/unit/assertions'
World(Test::Unit::Assertions)

require 'construct'
World(Construct::Helpers)

def yank_task_info(content, task)
  if content =~ /#{Regexp.escape(task)}.new(\(.*\))? do \|(.*?)\|(.*?)^end$/m
    [$2, $3]
  end
end

def yank_group_info(content, group)
  if content =~ /group :#{group} do(.*?)end/m
    $1
  end
end

def fixture_dir
  File.expand_path File.join(File.dirname(__FILE__), '..', '..', 'test', 'fixtures')
end

After do
  Timecop.return
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
juwelier-2.4.9 features/support/env.rb
juwelier-2.4.7 features/support/env.rb
juwelier-2.4.6 features/support/env.rb
juwelier-2.4.5 features/support/env.rb
juwelier-2.4.4 features/support/env.rb
juwelier-2.4.1 features/support/env.rb
juwelier-2.4.0 features/support/env.rb
juwelier-2.3.6 features/support/env.rb
juwelier-2.3.4 features/support/env.rb
juwelier-2.3.2 features/support/env.rb
juwelier-2.3.0 features/support/env.rb
juwelier-2.2.3 features/support/env.rb
juwelier-2.2.1 features/support/env.rb
juwelier-2.1.3 features/support/env.rb
juwelier-2.1.2 features/support/env.rb
juwelier-2.1.1 features/support/env.rb
juwelier-2.1.0 features/support/env.rb