-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Extend tests for Ears * Tidy.up * Improve local tests * Simplify Ears configuration initalize * finalize --------- Co-authored-by: Mike Blumtritt <mike.blumtritt@pm.me>
- Loading branch information
1 parent
177fdcd
commit c110b62
Showing
4 changed files
with
116 additions
and
166 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,17 @@ | ||
require 'bundler/setup' | ||
# frozen_string_literal: true | ||
|
||
require 'rspec/core' | ||
require 'simplecov' | ||
require 'ears' | ||
|
||
SimpleCov.start do | ||
enable_coverage :branch | ||
primary_coverage :branch | ||
end | ||
if RSpec.configuration.files_to_run.length > 1 | ||
# Let's increase this later on | ||
SimpleCov.minimum_coverage line: 97.5, branch: 65.7 | ||
end | ||
|
||
RSpec.configure do |config| | ||
# Enable flags like --only-failures and --next-failure | ||
config.example_status_persistence_file_path = '.rspec_status' | ||
RSpec.configure(&:disable_monkey_patching!) | ||
|
||
# Disable RSpec exposing methods globally on `Module` and `main` | ||
config.disable_monkey_patching! | ||
|
||
config.expect_with :rspec do |c| | ||
c.syntax = :expect | ||
end | ||
if RSpec.configuration.files_to_run.length > 1 | ||
# Let's increase this later on | ||
SimpleCov.minimum_coverage line: 99.4, branch: 100 | ||
end |