|
1 | 1 | # frozen_string_literal: true |
2 | 2 |
|
3 | | -# This file was generated by the `rspec --init` command. Conventionally, all |
4 | | -# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`. |
5 | | -# The generated `.rspec` file contains `--require spec_helper` which will cause |
6 | | -# this file to always be loaded, without a need to explicitly require it in any |
7 | | -# files. |
8 | | -# |
9 | | -# Given that it is always loaded, you are encouraged to keep this file as |
10 | | -# light-weight as possible. Requiring heavyweight dependencies from this file |
11 | | -# will add to the boot time of your test suite on EVERY test run, even for an |
12 | | -# individual file that may not need all of that loaded. Instead, consider making |
13 | | -# a separate helper file that requires the additional dependencies and performs |
14 | | -# the additional setup, and require it from the spec files that actually need |
15 | | -# it. |
16 | | -# |
17 | | -# The `.rspec` file also contains a few flags that are not defaults but that |
18 | | -# users commonly want. |
19 | | -# |
20 | | -# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration |
21 | | -require 'coveralls' |
22 | | -Coveralls.wear! |
| 3 | +require 'simplecov' |
| 4 | + |
| 5 | +SimpleCov.formatter = SimpleCov::Formatter::HTMLFormatter |
| 6 | +SimpleCov.start 'rails' do |
| 7 | + add_filter 'lib/tasks/geo_combine.rake' |
| 8 | + add_filter 'lib/geo_combine/version.rb' |
| 9 | + add_filter 'lib/geo_combine/railtie.rb' |
| 10 | + add_filter 'lib/geo_combine/cli.rb' |
| 11 | + minimum_coverage 95 # When updating this value, update the README badge value |
| 12 | +end |
23 | 13 |
|
24 | 14 | require 'geo_combine' |
25 | 15 | require 'fixtures/xml_docs' |
|
31 | 21 | RSpec.configure do |config| |
32 | 22 | config.include Helpers |
33 | 23 | config.include RSpecHtmlMatchers |
34 | | - # rspec-expectations config goes here. You can use an alternate |
35 | | - # assertion/expectation library such as wrong or the stdlib/minitest |
36 | | - # assertions if you prefer. |
37 | 24 | config.expect_with :rspec do |expectations| |
38 | | - # This option will default to `true` in RSpec 4. It makes the `description` |
39 | | - # and `failure_message` of custom matchers include text for helper methods |
40 | | - # defined using `chain`, e.g.: |
41 | | - # be_bigger_than(2).and_smaller_than(4).description |
42 | | - # # => "be bigger than 2 and smaller than 4" |
43 | | - # ...rather than: |
44 | | - # # => "be bigger than 2" |
45 | 25 | expectations.include_chain_clauses_in_custom_matcher_descriptions = true |
46 | 26 | end |
47 | 27 |
|
48 | | - # rspec-mocks config goes here. You can use an alternate test double |
49 | | - # library (such as bogus or mocha) by changing the `mock_with` option here. |
50 | 28 | config.mock_with :rspec do |mocks| |
51 | | - # Prevents you from mocking or stubbing a method that does not exist on |
52 | | - # a real object. This is generally recommended, and will default to |
53 | | - # `true` in RSpec 4. |
54 | 29 | mocks.verify_partial_doubles = true |
55 | 30 | end |
56 | | - |
57 | | - # The settings below are suggested to provide a good initial experience |
58 | | - # with RSpec, but feel free to customize to your heart's content. |
59 | | - # # These two settings work together to allow you to limit a spec run |
60 | | - # # to individual examples or groups you care about by tagging them with |
61 | | - # # `:focus` metadata. When nothing is tagged with `:focus`, all examples |
62 | | - # # get run. |
63 | | - # config.filter_run :focus |
64 | | - # config.run_all_when_everything_filtered = true |
65 | | - # |
66 | | - # # Limits the available syntax to the non-monkey patched syntax that is |
67 | | - # # recommended. For more details, see: |
68 | | - # # - http://myronmars.to/n/dev-blog/2012/06/rspecs-new-expectation-syntax |
69 | | - # # - http://teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/ |
70 | | - # # - http://myronmars.to/n/dev-blog/2014/05/notable-changes-in-rspec-3#new__config_option_to_disable_rspeccore_monkey_patching |
71 | | - # config.disable_monkey_patching! |
72 | | - # |
73 | | - # # This setting enables warnings. It's recommended, but in some cases may |
74 | | - # # be too noisy due to issues in dependencies. |
75 | | - # config.warnings = true |
76 | | - # |
77 | | - # # Many RSpec users commonly either run the entire suite or an individual |
78 | | - # # file, and it's useful to allow more verbose output when running an |
79 | | - # # individual spec file. |
80 | | - # if config.files_to_run.one? |
81 | | - # # Use the documentation formatter for detailed output, |
82 | | - # # unless a formatter has already been configured |
83 | | - # # (e.g. via a command-line flag). |
84 | | - # config.default_formatter = 'doc' |
85 | | - # end |
86 | | - # |
87 | | - # # Print the 10 slowest examples and example groups at the |
88 | | - # # end of the spec run, to help surface which specs are running |
89 | | - # # particularly slow. |
90 | | - # config.profile_examples = 10 |
91 | | - # |
92 | | - # # Run specs in random order to surface order dependencies. If you find an |
93 | | - # # order dependency and want to debug it, you can fix the order by providing |
94 | | - # # the seed, which is printed after each run. |
95 | | - # # --seed 1234 |
96 | | - # config.order = :random |
97 | | - # |
98 | | - # # Seed global randomization in this process using the `--seed` CLI option. |
99 | | - # # Setting this allows you to use `--seed` to deterministically reproduce |
100 | | - # # test failures related to randomization by passing the same `--seed` value |
101 | | - # # as the one that triggered the failure. |
102 | | - # Kernel.srand config.seed |
103 | 31 | end |
0 commit comments