Sha256: e3a109baff637e8aea65dec355e83412f349f56c975c4f5870ecc17d049ea4dd

Contents?: true

Size: 1.17 KB

Versions: 18

Compression:

Stored size: 1.17 KB

Contents

require 'rspec/retry'

ENV["TAGS"] ||= ""

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

  # Run specs in random order to surface order dependencies. If you find an
  # order dependency and want to debug it, you can fix the order by providing
  # the seed, which is printed after each run.
  #     --seed 1234
  config.order = "random"

  # RSpec Rails can automatically mix in different behaviours to your tests
  # based on their file location, for example enabling you to call `get` and
  # `post` in specs under `spec/controllers`.
  config.infer_spec_type_from_file_location!

  config.verbose_retry = true
  # show exception that triggers a retry if verbose_retry is set to true
  config.display_try_failure_messages = true


  # Filter by tags
  ENV["TAGS"].split(",").each do |tag|
    config.filter_run_excluding tag[1..-1].to_sym if tag.start_with? "~"
    config.filter_run_including tag.to_sym unless tag.start_with? "~"
  end

  config.include Rails.application.routes.url_helpers
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
test_track_rails_client-2.0.0 vendor/gems/ruby_spec_helpers/lib/ruby_spec_helpers/rspec_configuration.rb
test_track_rails_client-1.3.0 vendor/gems/ruby_spec_helpers/lib/ruby_spec_helpers/rspec_configuration.rb
test_track_rails_client-1.2.0 vendor/gems/ruby_spec_helpers/lib/ruby_spec_helpers/rspec_configuration.rb
test_track_rails_client-1.1.0 vendor/gems/ruby_spec_helpers/lib/ruby_spec_helpers/rspec_configuration.rb
test_track_rails_client-1.0.0 vendor/gems/ruby_spec_helpers/lib/ruby_spec_helpers/rspec_configuration.rb
test_track_rails_client-0.9.20 vendor/gems/ruby_spec_helpers/lib/ruby_spec_helpers/rspec_configuration.rb
test_track_rails_client-0.9.19 vendor/gems/ruby_spec_helpers/lib/ruby_spec_helpers/rspec_configuration.rb
test_track_rails_client-0.9.18 vendor/gems/ruby_spec_helpers/lib/ruby_spec_helpers/rspec_configuration.rb
test_track_rails_client-0.9.17 vendor/gems/ruby_spec_helpers/lib/ruby_spec_helpers/rspec_configuration.rb
test_track_rails_client-0.9.16 vendor/gems/ruby_spec_helpers/lib/ruby_spec_helpers/rspec_configuration.rb
test_track_rails_client-0.9.15 vendor/gems/ruby_spec_helpers/lib/ruby_spec_helpers/rspec_configuration.rb
test_track_rails_client-0.9.14 vendor/gems/ruby_spec_helpers/lib/ruby_spec_helpers/rspec_configuration.rb
test_track_rails_client-0.9.13 vendor/gems/ruby_spec_helpers/lib/ruby_spec_helpers/rspec_configuration.rb
test_track_rails_client-0.9.12 vendor/gems/ruby_spec_helpers/lib/ruby_spec_helpers/rspec_configuration.rb
test_track_rails_client-0.9.11 vendor/gems/ruby_spec_helpers/lib/ruby_spec_helpers/rspec_configuration.rb
test_track_rails_client-0.9.10 vendor/gems/ruby_spec_helpers/lib/ruby_spec_helpers/rspec_configuration.rb
test_track_rails_client-0.9.9 vendor/gems/ruby_spec_helpers/lib/ruby_spec_helpers/rspec_configuration.rb
test_track_rails_client-0.9.8 vendor/gems/ruby_spec_helpers/lib/ruby_spec_helpers/rspec_configuration.rb