Sha256: 1a2a4ead35efd56ae019082e8379ff3e02a7cd3c8e084af12a6afa428aaa1c1f
Contents?: true
Size: 934 Bytes
Versions: 20
Compression:
Stored size: 934 Bytes
Contents
ENV["RAILS_ENV"] ||= 'test' unless ENV['CI'] require 'simplecov' SimpleCov.start 'rails' end require File. expand_path("../../config/environment", __FILE__) require 'rspec/rails' require 'capybara/rails' # Custom matchers and macros, etc... Dir[Rails.root.join("spec/support/**/*.rb")].each {|f| require f } RSpec.configure do |config| # in order to pass tags(symbols) as true values # you need to tell rspec to do so by config.treat_symbols_as_metadata_keys_with_true_values = true config.mock_with :rspec config.fixture_path = "#{::Rails.root}/spec/fixtures" config.use_transactional_fixtures = true # excludes migration tag while running app base tests config.filter_run_excluding :migration => true # self explanatory # runs everything config.run_all_when_everything_filtered = true # make the rails logger usable in the tests as logger.xxx "..." def logger Rails.logger end end
Version data entries
20 entries across 20 versions & 2 rubygems