Sha256: 044e8f845135cbcd92c7b5024115f2ecc9cd961f6d35d4fa0e36e75a501bba44

Contents?: true

Size: 535 Bytes

Versions: 1

Compression:

Stored size: 535 Bytes

Contents

require 'factory_girl_remote_strategy'
ENV['LIBRARY'] ||= 'webmock'
puts "HTTP requests are stabbed with library #{ENV['LIBRARY']}"
FactoryGirl::RemoteStrategy.stub_requests_with ENV['LIBRARY']
if ENV['LIBRARY'] == 'webmock'
  require 'webmock/rspec'
  WebMock.disable_net_connect!(allow_localhost: true)
else
  FakeWeb.allow_net_connect = false
end

FactoryGirl.find_definitions

Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].sort.each {|f| require f}

RSpec.configure do |config|
  config.include FactoryGirl::Syntax::Methods
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
factory_girl_remote_strategy-0.0.9 spec/spec_helper.rb