spec_helper.rb 854 B

12345678910111213141516171819202122
  1. # This file was generated by the `rspec --init` command. Conventionally, all
  2. # specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
  3. # Require this file using `require "spec_helper"` to ensure that it is only
  4. # loaded once.
  5. #
  6. # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
  7. ENV["RAILS_ENV"] = "test"
  8. require File.expand_path("../dummy/config/environment.rb", __FILE__)
  9. require "rspec/rails"
  10. RSpec.configure do |config|
  11. config.treat_symbols_as_metadata_keys_with_true_values = true
  12. config.run_all_when_everything_filtered = true
  13. config.filter_run :focus
  14. # Run specs in random order to surface order dependencies. If you find an
  15. # order dependency and want to debug it, you can fix the order by providing
  16. # the seed, which is printed after each run.
  17. # --seed 1234
  18. config.order = 'random'
  19. end