Sha256: 42ff4e46f523777febf2b7e2718058ae8a69e141467fd0bdb3ac51287faa9979

Contents?: true

Size: 827 Bytes

Versions: 5

Compression:

Stored size: 827 Bytes

Contents

require "codeclimate-test-reporter"
CodeClimate::TestReporter.start

ENV["RAILS_ENV"] ||= 'test'
require "dummy/config/environment"
require "rspec/rails"
require "forgery"
require "factory_girl_rails"
require "paperclip/matchers"

Dir[Rails.root.join("spec/support/**/*.rb")].each { |f| require f }

ActiveRecord::Migration.check_pending! if defined?(ActiveRecord::Migration)

RSpec.configure do |config|
  config.include ActionDispatch::TestProcess
  config.include FactoryGirl::Syntax::Methods
  config.include Paperclip::Shoulda::Matchers

  config.expect_with :rspec do |c|
    c.syntax = [:should, :expect]
  end

  config.include Devise::TestHelpers, type: :controller
  config.infer_spec_type_from_file_location!
  config.use_transactional_fixtures = true
  config.infer_base_class_for_anonymous_controllers = false
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
family_gallery-0.0.5 spec/spec_helper.rb
family_gallery-0.0.4 spec/spec_helper.rb
family_gallery-0.0.3 spec/spec_helper.rb
family_gallery-0.0.2 spec/spec_helper.rb
family_gallery-0.0.1 spec/spec_helper.rb