summaryrefslogtreecommitdiffhomepage
path: root/spec/spec_helper.rb
diff options
context:
space:
mode:
authorAdam Malczewski <[email protected]>2026-03-31 00:52:33 +0900
committerAdam Malczewski <[email protected]>2026-03-31 00:52:33 +0900
commit25488d32336e05b69a41391cc7b5153478d3cc8a (patch)
tree3570cccc44766d7268457adeff79f16f855c0d9f /spec/spec_helper.rb
downloaddispatch-tool-files-main.tar.gz
dispatch-tool-files-main.zip
Diffstat (limited to 'spec/spec_helper.rb')
-rw-r--r--spec/spec_helper.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
new file mode 100644
index 0000000..298f383
--- /dev/null
+++ b/spec/spec_helper.rb
@@ -0,0 +1,15 @@
+# frozen_string_literal: true
+
+require "dispatch/tool/files"
+
+RSpec.configure do |config|
+ # Enable flags like --only-failures and --next-failure
+ config.example_status_persistence_file_path = ".rspec_status"
+
+ # Disable RSpec exposing methods globally on `Module` and `main`
+ config.disable_monkey_patching!
+
+ config.expect_with :rspec do |c|
+ c.syntax = :expect
+ end
+end