Skip to content

Commit 5716f0d

Browse files
committed
Configure RSpec
1 parent c31811d commit 5716f0d

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

.rspec

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1-
--color
21
--format documentation
2+
--color
33
--require spec_helper
4+
--order random

spec/spec_helper.rb

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,13 @@
1313
require "active_support/all"
1414

1515
RSpec.configure do |config|
16-
config.run_all_when_everything_filtered = true
17-
config.filter_run :focus
16+
# Enable flags like --only-failures and --next-failure
17+
config.example_status_persistence_file_path = ".rspec_status"
1818

19-
# Run specs in random order to surface order dependencies. If you find an
20-
# order dependency and want to debug it, you can fix the order by providing
21-
# the seed, which is printed after each run.
22-
# --seed 1234
23-
config.order = "random"
19+
# Disable RSpec exposing methods globally on `Module` and `main`
20+
config.disable_monkey_patching!
21+
22+
config.expect_with :rspec do |c|
23+
c.syntax = :expect
24+
end
2425
end

0 commit comments

Comments
 (0)