Skip to content

Commit c62e7d9

Browse files
committed
Upgrade rspec
1 parent 301341b commit c62e7d9

File tree

3 files changed

+35
-24
lines changed

3 files changed

+35
-24
lines changed

Gemfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
source 'https://rubygems.org'
22

33
group :development do
4-
gem 'rspec', '~> 3.1.0'
4+
gem 'rspec'
55
gem 'rspec-power_assert'
66

77
gem 'guard-rspec', "~> 4.3.1"

Gemfile.lock

+16-12
Original file line numberDiff line numberDiff line change
@@ -35,21 +35,22 @@ GEM
3535
rb-inotify (0.9.5)
3636
ffi (>= 0.5.0)
3737
rb-notifu (0.0.4)
38-
rspec (3.1.0)
39-
rspec-core (~> 3.1.0)
40-
rspec-expectations (~> 3.1.0)
41-
rspec-mocks (~> 3.1.0)
42-
rspec-core (3.1.7)
43-
rspec-support (~> 3.1.0)
44-
rspec-expectations (3.1.2)
38+
rspec (3.4.0)
39+
rspec-core (~> 3.4.0)
40+
rspec-expectations (~> 3.4.0)
41+
rspec-mocks (~> 3.4.0)
42+
rspec-core (3.4.2)
43+
rspec-support (~> 3.4.0)
44+
rspec-expectations (3.4.0)
4545
diff-lcs (>= 1.2.0, < 2.0)
46-
rspec-support (~> 3.1.0)
47-
rspec-mocks (3.1.3)
48-
rspec-support (~> 3.1.0)
46+
rspec-support (~> 3.4.0)
47+
rspec-mocks (3.4.1)
48+
diff-lcs (>= 1.2.0, < 2.0)
49+
rspec-support (~> 3.4.0)
4950
rspec-power_assert (0.2.0)
5051
power_assert (~> 0.2.0)
5152
rspec (>= 2.14)
52-
rspec-support (3.1.2)
53+
rspec-support (3.4.1)
5354
slop (3.6.0)
5455
thor (0.19.1)
5556
timers (4.0.1)
@@ -63,5 +64,8 @@ DEPENDENCIES
6364
guard-rspec (~> 4.3.1)
6465
libnotify
6566
rb-notifu
66-
rspec (~> 3.1.0)
67+
rspec
6768
rspec-power_assert
69+
70+
BUNDLED WITH
71+
1.11.2

spec/spec_helper.rb

+18-11
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
# This file was generated by the `rspec --init` command. Conventionally, all
22
# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
3-
# The generated `.rspec` file contains `--require spec_helper` which will cause this
4-
# file to always be loaded, without a need to explicitly require it in any files.
3+
# The generated `.rspec` file contains `--require spec_helper` which will cause
4+
# this file to always be loaded, without a need to explicitly require it in any
5+
# files.
56
#
67
# Given that it is always loaded, you are encouraged to keep this file as
78
# light-weight as possible. Requiring heavyweight dependencies from this file
89
# will add to the boot time of your test suite on EVERY test run, even for an
910
# individual file that may not need all of that loaded. Instead, consider making
1011
# a separate helper file that requires the additional dependencies and performs
11-
# the additional setup, and require it from the spec files that actually need it.
12+
# the additional setup, and require it from the spec files that actually need
13+
# it.
1214
#
1315
# The `.rspec` file also contains a few flags that are not defaults but that
1416
# users commonly want.
@@ -30,10 +32,10 @@
3032
# This option will default to `true` in RSpec 4. It makes the `description`
3133
# and `failure_message` of custom matchers include text for helper methods
3234
# defined using `chain`, e.g.:
33-
# be_bigger_than(2).and_smaller_than(4).description
34-
# # => "be bigger than 2 and smaller than 4"
35+
# be_bigger_than(2).and_smaller_than(4).description
36+
# # => "be bigger than 2 and smaller than 4"
3537
# ...rather than:
36-
# # => "be bigger than 2"
38+
# # => "be bigger than 2"
3739
expectations.include_chain_clauses_in_custom_matcher_descriptions = true
3840
end
3941

@@ -56,11 +58,16 @@
5658
config.filter_run :focus
5759
config.run_all_when_everything_filtered = true
5860
59-
# Limits the available syntax to the non-monkey patched syntax that is recommended.
60-
# For more details, see:
61-
# - http://myronmars.to/n/dev-blog/2012/06/rspecs-new-expectation-syntax
62-
# - http://teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/
63-
# - http://myronmars.to/n/dev-blog/2014/05/notable-changes-in-rspec-3#new__config_option_to_disable_rspeccore_monkey_patching
61+
# Allows RSpec to persist some state between runs in order to support
62+
# the `--only-failures` and `--next-failure` CLI options. We recommend
63+
# you configure your source control system to ignore this file.
64+
config.example_status_persistence_file_path = "spec/examples.txt"
65+
66+
# Limits the available syntax to the non-monkey patched syntax that is
67+
# recommended. For more details, see:
68+
# - http://rspec.info/blog/2012/06/rspecs-new-expectation-syntax/
69+
# - http://www.teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/
70+
# - http://rspec.info/blog/2014/05/notable-changes-in-rspec-3/#zero-monkey-patching-mode
6471
config.disable_monkey_patching!
6572
6673
# This setting enables warnings. It's recommended, but in some cases may

0 commit comments

Comments
 (0)