Sha256: 58cf630d0e8f74a10c5a61f4eddadd1c4d9203b880909e328f310245972d9c28

Contents?: true

Size: 894 Bytes

Versions: 18

Compression:

Stored size: 894 Bytes

Contents

require 'frodo'
require 'rspec/matchers' # required for 'equivalent-xml'
require 'equivalent-xml'
require 'securerandom'
require 'timecop'
require 'webmock/rspec'

# Load all files from `spec/support`
Dir[File.dirname(__FILE__) + "/support/**/*.rb"].each {|f| require f }

WebMock.disable_net_connect!

RSpec.configure do |config|
  if config.files_to_run.one?
    config.default_formatter = 'doc'
  end

  config.profile_examples = 3
  config.order = :random

  config.expect_with :rspec do |expectations|
    expectations.syntax = :expect
  end

  config.mock_with :rspec do |mocks|
    mocks.syntax = :expect
    mocks.verify_partial_doubles = true
  end

  config.after(:example) do
    # We're calling this as a private method because there should not be any
    # reasons to have to flush the service registry except in testing.
    Frodo::ServiceRegistry.instance.send(:flush)
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
frodo-0.12.8 spec/spec_helper.rb
frodo-0.12.7 spec/spec_helper.rb
frodo-0.12.6 spec/spec_helper.rb
frodo-0.12.5 spec/spec_helper.rb
frodo-0.12.4 spec/spec_helper.rb
frodo-0.12.2 spec/spec_helper.rb
frodo-0.12.1 spec/spec_helper.rb
frodo-0.12.0 spec/spec_helper.rb
frodo-0.11.0 spec/spec_helper.rb
frodo-0.10.8 spec/spec_helper.rb
frodo-0.10.7 spec/spec_helper.rb
frodo-0.10.6 spec/spec_helper.rb
frodo-0.10.5 spec/spec_helper.rb
frodo-0.10.4 spec/spec_helper.rb
frodo-0.10.3 spec/spec_helper.rb
frodo-0.10.2 spec/spec_helper.rb
frodo-0.10.1 spec/spec_helper.rb
frodo-0.10.0 spec/spec_helper.rb