Sha256: 54173129e19ecb7068aeceb9e9faff222866f18b13179b7bb0a2994dc0d82b14

Contents?: true

Size: 798 Bytes

Versions: 22

Compression:

Stored size: 798 Bytes

Contents

ENV["RAILS_ENV"] = 'test'
# Require dummy Rails app
require File.expand_path("../../spec/dummy/config/environment", __FILE__)

require 'database_cleaner'
require 'rspec/rails'

# Requires supporting ruby files with custom matchers and macros, etc,
# in spec/support/ and its subdirectories.
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}

# Silence warnings
if Money.respond_to?(:silence_core_extensions_deprecations=)
  Money.silence_core_extensions_deprecations = true
end

RSpec.configure do |config|
  # If true, the base class of anonymous controllers will be inferred
  # automatically. This will be the default behavior in future versions of
  # rspec-rails.
  config.infer_base_class_for_anonymous_controllers = false
  config.infer_spec_type_from_file_location!
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
money-rails-1.2.0 spec/spec_helper.rb
money-rails-1.1.0 spec/spec_helper.rb