test/spec_helper.rb in openpay-1.0.10 vs test/spec_helper.rb in openpay-2.0.0b
- old
+ new
@@ -1,16 +1,22 @@
$: << '.'
$: << 'lib'
$: << 'lib/openpay'
require 'openpay'
-require 'factory_girl'
+require 'factory_bot'
+#FactoryBot.find_definitions
require 'test/Factories'
require 'rspec'
require 'json_spec'
RSpec.configure do |config|
+ config.include FactoryBot::Syntax::Methods
+
+ #config.before(:suite) {FactoryBot.reload}
+
config.expect_with :rspec do |c|
c.syntax = :expect
config.include JsonSpec::Helpers
end
+
end