Sha256: 397e572225b134dcf9c69fd0b718aa098dd545a44a7a6bee793a2e5a5082d6e1

Contents?: true

Size: 767 Bytes

Versions: 6

Compression:

Stored size: 767 Bytes

Contents

ENV["RAILS_ENV"] ||= "test"
# Load dummy app
require File.expand_path("dummy/config/environment.rb", __dir__)
# Load rspec components
require "rspec/rails"
require "byebug"
# Nice backtraces
Rails.backtrace_cleaner.remove_silencers!
# Load support files
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].sort.each { |f| require f }

# configure rspec
RSpec.configure do |config|
  config.mock_with :rspec
  config.use_transactional_fixtures = true
  config.infer_base_class_for_anonymous_controllers = false
  config.order = "random"
  config.extend CacheSwitchingMacros
  config.expect_with :rspec do |c|
    c.syntax = %i(should expect)
  end
  config.mock_with :rspec do |c|
    c.syntax = %i(should expect)
  end
  config.before do
    Rails.cache.clear
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
infopark_component_cache-5.0.2 spec/spec_helper.rb
infopark_component_cache-5.0.1 spec/spec_helper.rb
infopark_component_cache-4.2.0 spec/spec_helper.rb
infopark_component_cache-4.1.0 spec/spec_helper.rb
infopark_component_cache-4.0.1 spec/spec_helper.rb
infopark_component_cache-4.0.0 spec/spec_helper.rb