lib/bundler/templates/newgem/spec/spec_helper.rb.tt
raw| 1 | # frozen_string_literal: true |
| 2 | |
| 3 | require "<%= config[:namespaced_path] %>" |
| 4 | |
| 5 | RSpec.configure do |config| |
| 6 | # Enable flags like --only-failures and --next-failure |
| 7 | config.example_status_persistence_file_path = ".rspec_status" |
| 8 | |
| 9 | # Disable RSpec exposing methods globally on `Module` and `main` |
| 10 | config.disable_monkey_patching! |
| 11 | |
| 12 | config.expect_with :rspec do |c| |
| 13 | c.syntax = :expect |
| 14 | end |
| 15 | end |