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

Version Path
impressionist-2.0.0 tests/test_app/spec/spec_helper.rb
impressionist-1.6.1 tests/test_app/spec/spec_helper.rb
impressionist-1.6.0 tests/test_app/spec/spec_helper.rb
impressionist-1.5.2 tests/test_app/spec/spec_helper.rb
impressionist2-1.5.5 tests/test_app/spec/spec_helper.rb
impressionist2-1.5.4 tests/test_app/spec/spec_helper.rb
impressionist2-1.5.3 tests/test_app/spec/spec_helper.rb
impressionist2-1.5.1 tests/test_app/spec/spec_helper.rb
impressionist-1.5.1 tests/test_app/spec/spec_helper.rb
impressionist-1.4.13 tests/test_app/spec/spec_helper.rb
impressionist-1.4.12 tests/test_app/spec/spec_helper.rb
impressionist-1.4.11 tests/test_app/spec/spec_helper.rb
impressionist-1.4.10 tests/test_app/spec/spec_helper.rb
impressionist-1.4.9 tests/test_app/spec/spec_helper.rb
impressionist-1.4.8 tests/test_app/spec/spec_helper.rb
impressionist-1.4.7 tests/test_app/spec/spec_helper.rb
impressionist-1.4.6 tests/test_app/spec/spec_helper.rb
impressionist-1.4.5 tests/test_app/spec/spec_helper.rb
impressionist-1.4.4 tests/test_app/spec/spec_helper.rb
impressionist-1.4.3 tests/test_app/spec/spec_helper.rb