Sha256: 7d2ddc6695c1996a997e3d3cfb478cc0775130f48fd8d44e31b6dbad1cb07959
Contents?: true
Size: 863 Bytes
Versions: 1
Compression:
Stored size: 863 Bytes
Contents
$: << File.join(File.dirname(__FILE__), "/../lib" ) # Set the default environment to sqlite3's in_memory database ENV['RAILS_ENV'] ||= 'in_memory' # Load the Rails environment and testing framework require "#{File.dirname(__FILE__)}/app_root/config/environment" require "#{File.dirname(__FILE__)}/../lib/cucumber_factory" require 'spec/rails' # Undo changes to RAILS_ENV silence_warnings {RAILS_ENV = ENV['RAILS_ENV']} # Run the migrations ActiveRecord::Migrator.migrate("#{Rails.root}/db/migrate") Spec::Runner.configure do |config| config.use_transactional_fixtures = true config.use_instantiated_fixtures = false end def prepare_cucumber_example @step_mother = Cucumber::StepMother.new @language = @step_mother.load_programming_language('rb') @dsl = Object.new @dsl.extend(Cucumber::RbSupport::RbDsl) Cucumber::Factory.add_steps(@dsl) end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cucumber_factory-1.5.0 | spec/spec_helper.rb |