Sha256: c43374efdb7482128ae6156a82d80d10485dfba6641821134f3a1cf6f6a33709

Contents?: true

Size: 886 Bytes

Versions: 4

Compression:

Stored size: 886 Bytes

Contents

require 'vendor/gems/environment'
Bundler.require_env :cucumber

require 'spec/expectations'
require 'spec/mocks'
  
require 'lib/ymdp'
require 'compiler/domains'

require 'spec/stubs'

Before do
  unless defined?(BASE_PATH)
    BASE_PATH = File.expand_path("./features/data")
    APPLICATION_PATH = File.expand_path("./features/data/app")
    CONFIG_PATH = File.expand_path("./features/data/config")
    SERVERS_PATH = File.expand_path("./features/data/servers")
    TMP_PATH = File.expand_path("./features/data/tmp")
  end
  
  @exception = nil
  @files = []

  $rspec_mocks ||= Spec::Mocks::Space.new  
  
  stub_growl
  
  @git_helper = 'git_helper'
  @git_helper.stub(:commit).as_null_object
  YMDP::GitHelper.stub!(:new).and_return(@git_helper)
  
  @ymdt = "ymdt"
  YMDT::Base.stub!(:new).and_return(@ymdt)
end

After do
  @files.each do |file|
    system "rm #{file}"
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ymdp-0.1.14 features/support/env.rb
ymdp-0.1.13 features/support/env.rb
ymdp-0.1.12 features/support/env.rb
ymdp-0.1.11 features/support/env.rb