Sha256: d90c12772b1e0b2bc30eef6f7fb1757d9d35a460c8617a7d61b72f4e17182911

Contents?: true

Size: 842 Bytes

Versions: 6

Compression:

Stored size: 842 Bytes

Contents

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

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

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.
    OData4::ServiceRegistry.instance.send(:flush)
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
odata4-0.9.1 spec/spec_helper.rb
odata4-0.9.0 spec/spec_helper.rb
odata4-0.8.2 spec/spec_helper.rb
odata4-0.8.1 spec/spec_helper.rb
odata4-0.8.0 spec/spec_helper.rb
odata4-0.7.0 spec/spec_helper.rb