features/support/env.rb in lodging-0.0.12 vs features/support/env.rb in lodging-0.0.13
- old
+ new
@@ -1,8 +1,25 @@
require 'bundler'
Bundler.setup
require 'cucumber'
require 'cucumber/formatter/unicode'
+require 'rspec'
+require 'rspec/expectations'
+require 'cucumber/rspec/doubles'
+require 'data_miner'
+DataMiner.logger = Logger.new(nil)
+
require 'sniff'
-Sniff.init File.join(File.dirname(__FILE__), '..', '..'), :earth => [:hospitality, :fuel, :locality], :cucumber => true
+
+# need to require this before initializing Sniff for LodgingProperty fixture to be loaded
+require File.expand_path('../lodging_property', __FILE__)
+
+Sniff.init File.join(File.dirname(__FILE__), '..', '..'),
+ :adapter => 'mysql2',
+ :database => 'test_lodging',
+ :username => 'root',
+ :password => 'password',
+ :earth => [:hospitality, :fuel, :locality],
+ :cucumber => true,
+ :logger => 'log/test_log.txt'