spec/spec_helper.rb in datatrans-2.4.0 vs spec/spec_helper.rb in datatrans-3.0.0
- old
+ new
@@ -8,12 +8,12 @@
config.filter_run :focus => true
config.filter_run_excluding :skip => true
config.run_all_when_everything_filtered = true
config.before(:each) do
- Datatrans.configure do |config|
- config.merchant_id = '1100000000'
- config.sign_key = 'd777c17ba2010282c2d2350a68b441ca07a799d294bfaa630b7c8442207c0b69703cc55775b0ca5a4e455b818a9bb10a43669c0c20ce31f4a43f10e0cabb9525'
- config.environment = :development
- end
+ @datatrans = Datatrans::Config.new(
+ :merchant_id => '1100000000',
+ :sign_key => 'd777c17ba2010282c2d2350a68b441ca07a799d294bfaa630b7c8442207c0b69703cc55775b0ca5a4e455b818a9bb10a43669c0c20ce31f4a43f10e0cabb9525',
+ :environment => :development
+ )
end
end