Sha256: 5e452b7e5d57749d37837411cf56748c290f552b8262e108058d991a5eb1f18a

Contents?: true

Size: 842 Bytes

Versions: 1

Compression:

Stored size: 842 Bytes

Contents

ENV["RAILS_ENV"] ||= 'test'

require File.expand_path("../../lib/metova/dummy/config/environment.rb",  __FILE__)
ActiveRecord::Migrator.migrations_paths = [File.expand_path("../../lib/metova/dummy/db/migrate", __FILE__)]

require 'rspec/rails'
require 'responders'

ActiveRecord::Migration.maintain_test_schema!

RSpec.configure do |config|
  config.global_fixtures = :all
  config.fixture_path = File.expand_path("../fixtures", __FILE__)
  config.use_transactional_fixtures = true
  config.infer_spec_type_from_file_location!

  config.expect_with :rspec do |expectations|
    expectations.include_chain_clauses_in_custom_matcher_descriptions = true
  end

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

  config.before do
    @request.try { |req| req.env['HTTP_ACCEPT'] = 'application/json' }
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
metova-dummy-0.0.1 spec/spec_helper.rb