Sha256: 00778329aebb2f6bc932eb20956e6311b0e0639940ef857c7fc1e12e053b0cda

Contents?: true

Size: 693 Bytes

Versions: 9

Compression:

Stored size: 693 Bytes

Contents

# Sets up the Rails environment for Cucumber
ENV["RAILS_ENV"] = "test"
# Extension root
extension_env = File.expand_path(File.dirname(__FILE__) + '/../../../../../config/environment')
require extension_env+'.rb'

Dir.glob(File.join(RADIANT_ROOT, "features", "**", "*.rb")).each {|step| require step}
 
Cucumber::Rails::World.class_eval do
  include Dataset
  datasets_directory "#{RADIANT_ROOT}/spec/datasets"
  Dataset::Resolver.default = Dataset::DirectoryResolver.new("#{RADIANT_ROOT}/spec/datasets", File.dirname(__FILE__) + '/../../spec/datasets', File.dirname(__FILE__) + '/../datasets')
  self.datasets_database_dump_path = "#{Rails.root}/tmp/dataset"
  
  # dataset :shop_discounts
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
radiant-shop_discounts-extension-0.0.11 features/support/env.rb
radiant-shop_discounts-extension-0.0.10 features/support/env.rb
radiant-shop_discounts-extension-0.0.9 features/support/env.rb
radiant-shop_discounts-extension-0.0.8 features/support/env.rb
radiant-shop_discounts-extension-0.0.7 features/support/env.rb
radiant-shop_discounts-extension-0.0.6 features/support/env.rb
radiant-shop_discounts-extension-0.0.4 features/support/env.rb
radiant-shop_discounts-extension-0.0.3 features/support/env.rb
radiant-shop_discounts-extension-0.0.1 features/support/env.rb