bisu 3.0.1 → 3.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/spec/spec_helper.rb DELETED
@@ -1,117 +0,0 @@
1
- require 'bisu'
2
- require 'webmock/rspec'
3
- require 'rspec/its'
4
-
5
- # This file was generated by the `rspec --init` command. Conventionally, all
6
- # specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
7
- # The generated `.rspec` file contains `--require spec_helper` which will cause
8
- # this file to always be loaded, without a need to explicitly require it in any
9
- # files.
10
- #
11
- # Given that it is always loaded, you are encouraged to keep this file as
12
- # light-weight as possible. Requiring heavyweight dependencies from this file
13
- # will add to the boot time of your test suite on EVERY test run, even for an
14
- # individual file that may not need all of that loaded. Instead, consider making
15
- # a separate helper file that requires the additional dependencies and performs
16
- # the additional setup, and require it from the spec files that actually need
17
- # it.
18
- #
19
- # The `.rspec` file also contains a few flags that are not defaults but that
20
- # users commonly want.
21
- #
22
- # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
23
- RSpec.configure do |config|
24
- config.before do
25
- Bisu::Logger.silent_mode = true
26
- end
27
-
28
- config.after do
29
- Bisu::Logger.clean_summary
30
- end
31
-
32
- RSpec::Matchers.define_negated_matcher :not_change, :change
33
-
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
- 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
- expectations.include_chain_clauses_in_custom_matcher_descriptions = true
46
- end
47
-
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
- 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
- mocks.verify_partial_doubles = true
55
- end
56
-
57
- # This option will default to `:apply_to_host_groups` in RSpec 4 (and will
58
- # have no way to turn it off -- the option exists only for backwards
59
- # compatibility in RSpec 3). It causes shared context metadata to be
60
- # inherited by the metadata hash of host groups and examples, rather than
61
- # triggering implicit auto-inclusion in groups with matching metadata.
62
- config.shared_context_metadata_behavior = :apply_to_host_groups
63
-
64
- # The settings below are suggested to provide a good initial experience
65
- # with RSpec, but feel free to customize to your heart's content.
66
- =begin
67
- # This allows you to limit a spec run to individual examples or groups
68
- # you care about by tagging them with `:focus` metadata. When nothing
69
- # is tagged with `:focus`, all examples get run. RSpec also provides
70
- # aliases for `it`, `describe`, and `context` that include `:focus`
71
- # metadata: `fit`, `fdescribe` and `fcontext`, respectively.
72
- config.filter_run_when_matching :focus
73
-
74
- # Allows RSpec to persist some state between runs in order to support
75
- # the `--only-failures` and `--next-failure` CLI options. We recommend
76
- # you configure your source control system to ignore this file.
77
- config.example_status_persistence_file_path = "spec/examples.txt"
78
-
79
- # Limits the available syntax to the non-monkey patched syntax that is
80
- # recommended. For more details, see:
81
- # - http://rspec.info/blog/2012/06/rspecs-new-expectation-syntax/
82
- # - http://www.teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/
83
- # - http://rspec.info/blog/2014/05/notable-changes-in-rspec-3/#zero-monkey-patching-mode
84
- config.disable_monkey_patching!
85
-
86
- # This setting enables warnings. It's recommended, but in some cases may
87
- # be too noisy due to issues in dependencies.
88
- config.warnings = true
89
-
90
- # Many RSpec users commonly either run the entire suite or an individual
91
- # file, and it's useful to allow more verbose output when running an
92
- # individual spec file.
93
- if config.files_to_run.one?
94
- # Use the documentation formatter for detailed output,
95
- # unless a formatter has already been configured
96
- # (e.g. via a command-line flag).
97
- config.default_formatter = 'doc'
98
- end
99
-
100
- # Print the 10 slowest examples and example groups at the
101
- # end of the spec run, to help surface which specs are running
102
- # particularly slow.
103
- config.profile_examples = 10
104
-
105
- # Run specs in random order to surface order dependencies. If you find an
106
- # order dependency and want to debug it, you can fix the order by providing
107
- # the seed, which is printed after each run.
108
- # --seed 1234
109
- config.order = :random
110
-
111
- # Seed global randomization in this process using the `--seed` CLI option.
112
- # Setting this allows you to use `--seed` to deterministically reproduce
113
- # test failures related to randomization by passing the same `--seed` value
114
- # as the one that triggered the failure.
115
- Kernel.srand config.seed
116
- =end
117
- end