rspec-expectations 2.99.0.beta2 → 2.99.0.rc1
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.
- checksums.yaml +7 -0
- data/Changelog.md +55 -32
- data/features/README.md +2 -1
- data/lib/rspec-expectations.rb +5 -0
- data/lib/rspec/expectations.rb +1 -1
- data/lib/rspec/{matchers → expectations}/configuration.rb +5 -3
- data/lib/rspec/expectations/expectation_target.rb +75 -8
- data/lib/rspec/expectations/syntax.rb +3 -5
- data/lib/rspec/expectations/version.rb +1 -1
- data/lib/rspec/matchers.rb +12 -5
- data/lib/rspec/matchers/built_in/base_matcher.rb +11 -3
- data/lib/rspec/matchers/built_in/be.rb +15 -4
- data/lib/rspec/matchers/built_in/be_within.rb +6 -1
- data/lib/rspec/matchers/built_in/change.rb +4 -2
- data/lib/rspec/matchers/built_in/has.rb +38 -6
- data/lib/rspec/matchers/built_in/include.rb +1 -1
- data/lib/rspec/matchers/built_in/match_array.rb +1 -1
- data/lib/rspec/matchers/built_in/raise_error.rb +5 -0
- data/lib/rspec/matchers/built_in/respond_to.rb +5 -0
- data/lib/rspec/matchers/built_in/satisfy.rb +5 -0
- data/lib/rspec/matchers/built_in/throw_symbol.rb +8 -1
- data/lib/rspec/matchers/built_in/yield.rb +21 -1
- data/lib/rspec/matchers/dsl.rb +2 -1
- data/lib/rspec/matchers/matcher.rb +28 -7
- data/lib/rspec/matchers/pretty.rb +4 -0
- data/spec/rspec/{matchers → expectations}/configuration_spec.rb +21 -2
- data/spec/rspec/expectations/expectation_target_spec.rb +62 -0
- data/spec/rspec/expectations/extensions/kernel_spec.rb +4 -0
- data/spec/rspec/expectations_spec.rb +7 -0
- data/spec/rspec/matchers/be_spec.rb +21 -0
- data/spec/rspec/matchers/description_generation_spec.rb +1 -1
- data/spec/rspec/matchers/has_spec.rb +24 -0
- data/spec/rspec/matchers/matcher_spec.rb +52 -0
- data/spec/rspec/matchers/pretty_spec.rb +23 -0
- data/spec/spec_helper.rb +2 -2
- data/spec/support/helper_methods.rb +6 -0
- metadata +64 -75
@@ -21,6 +21,8 @@ module RSpec
|
|
21
21
|
end
|
22
22
|
|
23
23
|
def _pretty_print(array)
|
24
|
+
RSpec.deprecate("`RSpec::Matchers::Pretty#_pretty_print`",
|
25
|
+
:replacement => "`RSpec::Matchers::Pretty#to_sentence`")
|
24
26
|
result = ""
|
25
27
|
array.each_with_index do |item, index|
|
26
28
|
if index < (array.length - 2)
|
@@ -43,6 +45,8 @@ module RSpec
|
|
43
45
|
end
|
44
46
|
|
45
47
|
def expected_to_sentence
|
48
|
+
RSpec.deprecate("`RSpec::Matchers::Pretty#expected_to_sentence`",
|
49
|
+
:replacement => "`RSpec::Matchers::Pretty#to_sentence(expected)`")
|
46
50
|
to_sentence(@expected) if defined?(@expected)
|
47
51
|
end
|
48
52
|
|
@@ -2,10 +2,10 @@ require 'spec_helper'
|
|
2
2
|
require 'delegate'
|
3
3
|
|
4
4
|
module RSpec
|
5
|
-
module
|
5
|
+
module Expectations
|
6
6
|
describe "RSpec::Matchers.configuration" do
|
7
7
|
it 'returns a memoized configuration instance' do
|
8
|
-
expect(RSpec::Matchers.configuration).to be_a(RSpec::
|
8
|
+
expect(RSpec::Matchers.configuration).to be_a(RSpec::Expectations::Configuration)
|
9
9
|
expect(RSpec::Matchers.configuration).to be(RSpec::Matchers.configuration)
|
10
10
|
end
|
11
11
|
end
|
@@ -13,6 +13,25 @@ module RSpec
|
|
13
13
|
describe Configuration do
|
14
14
|
let(:config) { Configuration.new }
|
15
15
|
|
16
|
+
context "when accessing it using the old 2.x const name" do
|
17
|
+
it 'returns the new constant' do
|
18
|
+
allow_deprecation
|
19
|
+
expect(RSpec::Matchers::Configuration).to be(RSpec::Expectations::Configuration)
|
20
|
+
end
|
21
|
+
|
22
|
+
it 'issues a deprecation warning' do
|
23
|
+
expect_deprecation_with_call_site(__FILE__, __LINE__ + 1, /RSpec::Matchers::Configuration/)
|
24
|
+
RSpec::Matchers::Configuration
|
25
|
+
end
|
26
|
+
|
27
|
+
it 'allows other undefined constant to raise errors like normal' do
|
28
|
+
expect_no_deprecation
|
29
|
+
expect {
|
30
|
+
RSpec::Matchers::FooBarBazz
|
31
|
+
}.to raise_error(NameError, /RSpec::Matchers::FooBarBazz/)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
16
35
|
describe "#backtrace_formatter" do
|
17
36
|
let(:original_backtrace) { %w[ clean-me/a.rb other/file.rb clean-me/b.rb ] }
|
18
37
|
let(:cleaned_backtrace) { %w[ other/file.rb ] }
|
@@ -22,6 +22,12 @@ module RSpec
|
|
22
22
|
}.to raise_error(ArgumentError)
|
23
23
|
end
|
24
24
|
|
25
|
+
it 'raises a wrong number of args ArgumentError when given two args' do
|
26
|
+
expect {
|
27
|
+
expect(1, 2)
|
28
|
+
}.to raise_error(ArgumentError, /wrong number of arg/)
|
29
|
+
end
|
30
|
+
|
25
31
|
it 'raises an ArgumentError when given neither an argument nor a block' do
|
26
32
|
expect {
|
27
33
|
expect
|
@@ -76,6 +82,62 @@ module RSpec
|
|
76
82
|
}.to raise_error(ArgumentError)
|
77
83
|
end
|
78
84
|
end
|
85
|
+
|
86
|
+
context "when passed a block" do
|
87
|
+
it 'can be used with a block matcher' do
|
88
|
+
expect { }.not_to raise_error
|
89
|
+
end
|
90
|
+
|
91
|
+
context 'when passed a value matcher' do
|
92
|
+
it 'issues a warning to instruct the user to use a value expression or fix the matcher (for `to`)' do
|
93
|
+
expect_deprecation_with_call_site(__FILE__, __LINE__ + 1, /block expectation/)
|
94
|
+
expect { }.to be_an(Object)
|
95
|
+
end
|
96
|
+
|
97
|
+
it 'issues a warning to instruct the user to use a value expression or fix the matcher (for `not_to`)' do
|
98
|
+
expect_deprecation_with_call_site(__FILE__, __LINE__ + 1, /block expectation/)
|
99
|
+
expect { }.not_to be_an(String)
|
100
|
+
end
|
101
|
+
|
102
|
+
it 'issues a warning to instruct the user to use a value expression or fix the matcher (for `to_not`)' do
|
103
|
+
expect_deprecation_with_call_site(__FILE__, __LINE__ + 1, /block expectation/)
|
104
|
+
expect { }.to_not be_an(String)
|
105
|
+
end
|
106
|
+
|
107
|
+
it 'assumes a custom matcher that does not define `supports_block_expectations?` is not a block matcher (since it is relatively rare)' do
|
108
|
+
custom_matcher = Module.new do
|
109
|
+
def self.matches?(value); true; end
|
110
|
+
def self.description; "foo"; end
|
111
|
+
end
|
112
|
+
|
113
|
+
expect_deprecation_with_call_site(__FILE__, __LINE__ + 2, /block expectation/)
|
114
|
+
expect(3).to custom_matcher # to show the custom matcher can be used as a matcher
|
115
|
+
expect { 3 }.to custom_matcher
|
116
|
+
end
|
117
|
+
|
118
|
+
it "uses the matcher's `description` in the warning" do
|
119
|
+
custom_matcher = Module.new do
|
120
|
+
def self.matches?(value); true; end
|
121
|
+
def self.description; "matcher-description"; end
|
122
|
+
end
|
123
|
+
|
124
|
+
expect_deprecation_with_replacement(/\(matcher-description\)/)
|
125
|
+
expect { }.to custom_matcher
|
126
|
+
end
|
127
|
+
|
128
|
+
context 'when the matcher does not define `description` (since it is an optional part of the protocol)' do
|
129
|
+
it 'uses `inspect` in the warning instead' do
|
130
|
+
custom_matcher = Module.new do
|
131
|
+
def self.matches?(value); true; end
|
132
|
+
def self.inspect; "matcher-inspect"; end
|
133
|
+
end
|
134
|
+
|
135
|
+
expect_deprecation_with_replacement(/\(matcher-inspect\)/)
|
136
|
+
expect { }.to custom_matcher
|
137
|
+
end
|
138
|
+
end
|
139
|
+
end
|
140
|
+
end
|
79
141
|
end
|
80
142
|
end
|
81
143
|
end
|
@@ -1,3 +1,5 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
1
3
|
module RSpec
|
2
4
|
describe Expectations do
|
3
5
|
def file_contents_for(lib, filename)
|
@@ -14,6 +16,11 @@ module RSpec
|
|
14
16
|
expect(expectations).to eq(core)
|
15
17
|
end
|
16
18
|
|
19
|
+
it 'prints a deprecation warning when the root file is loaded' do
|
20
|
+
expect_deprecation_with_call_site(__FILE__, __LINE__ + 1, /rspec-expectations/)
|
21
|
+
load "rspec-expectations.rb"
|
22
|
+
end
|
23
|
+
|
17
24
|
describe '.method_handle_for(object, method_name)' do
|
18
25
|
|
19
26
|
class UntamperedClass
|
@@ -38,6 +38,7 @@ describe "expect(...).to be_predicate" do
|
|
38
38
|
true
|
39
39
|
end
|
40
40
|
end
|
41
|
+
allow(RSpec).to receive(:deprecate)
|
41
42
|
expect(RSpec).to receive(:deprecate).with(
|
42
43
|
"matching with be_happy on private method happy?",
|
43
44
|
:replacement => "`expect(object.send(:happy?)).to be_true` or change the method's visibility to public",
|
@@ -67,6 +68,26 @@ describe "expect(...).to be_predicate" do
|
|
67
68
|
value = double(:happy? => false)
|
68
69
|
expect(matcher == value).to be false
|
69
70
|
end
|
71
|
+
|
72
|
+
it 'warns of deprecation when actual does not respond to :predicate?' do
|
73
|
+
oddly_happy_class = Class.new do
|
74
|
+
def method_missing(method)
|
75
|
+
return true if method == :happy?
|
76
|
+
end
|
77
|
+
end
|
78
|
+
expect_deprecation_with_call_site(__FILE__, __LINE__ + 1, /Matching with be_happy on an object that doesn't respond to `happy\?`/)
|
79
|
+
expect(oddly_happy_class.new).to be_happy
|
80
|
+
end
|
81
|
+
|
82
|
+
it 'does not warn of deprecation when actual responds to present tense predicate' do
|
83
|
+
present_happy_class = Class.new do
|
84
|
+
def exists?
|
85
|
+
true
|
86
|
+
end
|
87
|
+
end
|
88
|
+
expect_no_deprecation
|
89
|
+
expect(present_happy_class.new).to be_exist
|
90
|
+
end
|
70
91
|
end
|
71
92
|
|
72
93
|
describe "expect(...).not_to be_predicate" do
|
@@ -132,7 +132,7 @@ describe "Matchers should be able to generate their own descriptions" do
|
|
132
132
|
|
133
133
|
it "expect(array).not_to match_array [1,2,3]" do
|
134
134
|
expect([1,2,3]).to match_array [1,2,3]
|
135
|
-
expect(RSpec::Matchers.generated_description).to eq "should contain exactly 1, 2 and 3"
|
135
|
+
expect(RSpec::Matchers.generated_description).to eq "should contain exactly 1, 2, and 3"
|
136
136
|
end
|
137
137
|
|
138
138
|
it "expect(...).to match" do
|
@@ -48,6 +48,20 @@ describe "expect(...).to have_sym(*args)" do
|
|
48
48
|
}.to raise_error(NoMethodError)
|
49
49
|
end
|
50
50
|
|
51
|
+
it "warns of deprecation if #has_sym?(*args) is private" do
|
52
|
+
klass = Class.new do
|
53
|
+
def has_foo?
|
54
|
+
true
|
55
|
+
end
|
56
|
+
private :has_foo?
|
57
|
+
|
58
|
+
# prevents double deprecation
|
59
|
+
def respond_to?(_); true; end
|
60
|
+
end
|
61
|
+
expect_deprecation_with_call_site(__FILE__, __LINE__ + 1, /matching with have_foo on private method/)
|
62
|
+
expect(klass.new).to have_foo
|
63
|
+
end
|
64
|
+
|
51
65
|
it "reraises an exception thrown in #has_sym?(*args)" do
|
52
66
|
o = Object.new
|
53
67
|
def o.has_sym?(*args)
|
@@ -57,6 +71,16 @@ describe "expect(...).to have_sym(*args)" do
|
|
57
71
|
expect(o).to have_sym(:foo)
|
58
72
|
}.to raise_error("Funky exception")
|
59
73
|
end
|
74
|
+
|
75
|
+
it 'warns of deprecation when actual does not respond to #has_sym?' do
|
76
|
+
foo_class = Class.new do
|
77
|
+
def method_missing(method)
|
78
|
+
return true if method == :has_foo?
|
79
|
+
end
|
80
|
+
end
|
81
|
+
expect_deprecation_with_call_site(__FILE__, __LINE__ + 1, /Matching with have_foo on an object that doesn't respond to `has_foo\?`/)
|
82
|
+
expect(foo_class.new).to have_foo
|
83
|
+
end
|
60
84
|
end
|
61
85
|
|
62
86
|
describe "expect(...).not_to have_sym(*args)" do
|
@@ -66,6 +66,29 @@ module RSpec::Matchers::DSL
|
|
66
66
|
end
|
67
67
|
end
|
68
68
|
|
69
|
+
context "matching blocks" do
|
70
|
+
it 'warns when matching blocks by default' do
|
71
|
+
matcher = RSpec::Matchers::DSL::Matcher.new(:not_supporting_blocks) do
|
72
|
+
match { true }
|
73
|
+
end.for_expected
|
74
|
+
|
75
|
+
expect_deprecation_with_call_site(__FILE__, __LINE__ + 2, /block expectation/)
|
76
|
+
expect(3).to matcher
|
77
|
+
expect { 3 }.to matcher
|
78
|
+
end
|
79
|
+
|
80
|
+
it 'does not when if it declares `supports_block_expectations`' do
|
81
|
+
matcher = RSpec::Matchers::DSL::Matcher.new(:supporting_blocks) do
|
82
|
+
match { true }
|
83
|
+
supports_block_expectations
|
84
|
+
end.for_expected
|
85
|
+
|
86
|
+
expect_no_deprecation
|
87
|
+
expect(3).to matcher
|
88
|
+
expect { 3 }.to matcher
|
89
|
+
end
|
90
|
+
end
|
91
|
+
|
69
92
|
context "without overrides" do
|
70
93
|
before(:each) do
|
71
94
|
@matcher = RSpec::Matchers::DSL::Matcher.new(:be_a_multiple_of) do |multiple|
|
@@ -604,5 +627,34 @@ module RSpec::Matchers::DSL
|
|
604
627
|
end
|
605
628
|
end
|
606
629
|
|
630
|
+
describe "#matcher_execution_context" do
|
631
|
+
before { allow_deprecation }
|
632
|
+
|
633
|
+
let(:matcher) do
|
634
|
+
RSpec::Matchers::DSL::Matcher.new :foo do |expected|
|
635
|
+
end.for_expected(:bar)
|
636
|
+
end
|
637
|
+
|
638
|
+
it 'can be set' do
|
639
|
+
expect {
|
640
|
+
matcher.matcher_execution_context = :the_context
|
641
|
+
}.to change(matcher, :matcher_execution_context).to(:the_context)
|
642
|
+
end
|
643
|
+
|
644
|
+
it 'is the target of method_missing delegation' do
|
645
|
+
matcher.matcher_execution_context = double(:abcd => "efg")
|
646
|
+
expect(matcher.abcd).to eq("efg")
|
647
|
+
end
|
648
|
+
|
649
|
+
specify "the writer is deprecated" do
|
650
|
+
expect_deprecation_with_call_site(__FILE__, __LINE__ + 1, /matcher_execution_context/)
|
651
|
+
matcher.matcher_execution_context = :the_context
|
652
|
+
end
|
653
|
+
|
654
|
+
specify "the reader is deprecated" do
|
655
|
+
expect_deprecation_with_call_site(__FILE__, __LINE__ + 1, /matcher_execution_context/)
|
656
|
+
matcher.matcher_execution_context
|
657
|
+
end
|
658
|
+
end
|
607
659
|
end
|
608
660
|
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
module RSpec
|
4
|
+
module Matchers
|
5
|
+
describe Pretty do
|
6
|
+
include Pretty
|
7
|
+
|
8
|
+
describe "#_pretty_print" do
|
9
|
+
it 'is deprecated' do
|
10
|
+
expect_deprecation_with_call_site(__FILE__, __LINE__ + 1, /_pretty_print/)
|
11
|
+
_pretty_print([1, 2])
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
describe "#expected_to_sentence" do
|
16
|
+
it 'is deprecated' do
|
17
|
+
expect_deprecation_with_call_site(__FILE__, __LINE__ + 1, /expected_to_sentence/)
|
18
|
+
expected_to_sentence
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
data/spec/spec_helper.rb
CHANGED
@@ -2,8 +2,8 @@ Dir['./spec/support/**/*'].each {|f| require f}
|
|
2
2
|
|
3
3
|
RSpec::configure do |config|
|
4
4
|
config.treat_symbols_as_metadata_keys_with_true_values = true
|
5
|
-
config.
|
6
|
-
config.filter_run :
|
5
|
+
config.color = true
|
6
|
+
config.filter_run :focus
|
7
7
|
config.run_all_when_everything_filtered = true
|
8
8
|
config.order = :random
|
9
9
|
|
@@ -26,6 +26,12 @@ module DeprecationHelpers
|
|
26
26
|
)
|
27
27
|
end
|
28
28
|
|
29
|
+
def expect_deprecation_with_replacement(snippet)
|
30
|
+
expect(RSpec).to receive(:deprecate) do |_, options|
|
31
|
+
expect(options[:replacement]).to match(snippet)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
29
35
|
def allow_deprecation
|
30
36
|
allow(RSpec.configuration.reporter).to receive(:deprecation)
|
31
37
|
end
|
metadata
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec-expectations
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.99.0.
|
5
|
-
prerelease: 7
|
4
|
+
version: 2.99.0.rc1
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Steven Baker
|
@@ -10,76 +9,68 @@ authors:
|
|
10
9
|
autorequire:
|
11
10
|
bindir: bin
|
12
11
|
cert_chain: []
|
13
|
-
date: 2014-
|
12
|
+
date: 2014-05-18 00:00:00.000000000 Z
|
14
13
|
dependencies:
|
15
14
|
- !ruby/object:Gem::Dependency
|
16
15
|
name: diff-lcs
|
17
16
|
requirement: !ruby/object:Gem::Requirement
|
18
|
-
none: false
|
19
17
|
requirements:
|
20
|
-
- -
|
18
|
+
- - ">="
|
21
19
|
- !ruby/object:Gem::Version
|
22
20
|
version: 1.1.3
|
23
|
-
- - <
|
21
|
+
- - "<"
|
24
22
|
- !ruby/object:Gem::Version
|
25
23
|
version: '2.0'
|
26
24
|
type: :runtime
|
27
25
|
prerelease: false
|
28
26
|
version_requirements: !ruby/object:Gem::Requirement
|
29
|
-
none: false
|
30
27
|
requirements:
|
31
|
-
- -
|
28
|
+
- - ">="
|
32
29
|
- !ruby/object:Gem::Version
|
33
30
|
version: 1.1.3
|
34
|
-
- - <
|
31
|
+
- - "<"
|
35
32
|
- !ruby/object:Gem::Version
|
36
33
|
version: '2.0'
|
37
34
|
- !ruby/object:Gem::Dependency
|
38
35
|
name: rake
|
39
36
|
requirement: !ruby/object:Gem::Requirement
|
40
|
-
none: false
|
41
37
|
requirements:
|
42
|
-
- - ~>
|
38
|
+
- - "~>"
|
43
39
|
- !ruby/object:Gem::Version
|
44
40
|
version: 10.0.0
|
45
41
|
type: :development
|
46
42
|
prerelease: false
|
47
43
|
version_requirements: !ruby/object:Gem::Requirement
|
48
|
-
none: false
|
49
44
|
requirements:
|
50
|
-
- - ~>
|
45
|
+
- - "~>"
|
51
46
|
- !ruby/object:Gem::Version
|
52
47
|
version: 10.0.0
|
53
48
|
- !ruby/object:Gem::Dependency
|
54
49
|
name: cucumber
|
55
50
|
requirement: !ruby/object:Gem::Requirement
|
56
|
-
none: false
|
57
51
|
requirements:
|
58
|
-
- - ~>
|
52
|
+
- - "~>"
|
59
53
|
- !ruby/object:Gem::Version
|
60
54
|
version: 1.1.9
|
61
55
|
type: :development
|
62
56
|
prerelease: false
|
63
57
|
version_requirements: !ruby/object:Gem::Requirement
|
64
|
-
none: false
|
65
58
|
requirements:
|
66
|
-
- - ~>
|
59
|
+
- - "~>"
|
67
60
|
- !ruby/object:Gem::Version
|
68
61
|
version: 1.1.9
|
69
62
|
- !ruby/object:Gem::Dependency
|
70
63
|
name: aruba
|
71
64
|
requirement: !ruby/object:Gem::Requirement
|
72
|
-
none: false
|
73
65
|
requirements:
|
74
|
-
- - ~>
|
66
|
+
- - "~>"
|
75
67
|
- !ruby/object:Gem::Version
|
76
68
|
version: '0.5'
|
77
69
|
type: :development
|
78
70
|
prerelease: false
|
79
71
|
version_requirements: !ruby/object:Gem::Requirement
|
80
|
-
none: false
|
81
72
|
requirements:
|
82
|
-
- - ~>
|
73
|
+
- - "~>"
|
83
74
|
- !ruby/object:Gem::Version
|
84
75
|
version: '0.5'
|
85
76
|
description: rspec expectations (should[_not] and matchers)
|
@@ -88,9 +79,50 @@ executables: []
|
|
88
79
|
extensions: []
|
89
80
|
extra_rdoc_files: []
|
90
81
|
files:
|
82
|
+
- ".document"
|
83
|
+
- ".yardopts"
|
84
|
+
- Changelog.md
|
85
|
+
- License.txt
|
86
|
+
- README.md
|
87
|
+
- features/README.md
|
88
|
+
- features/Upgrade.md
|
89
|
+
- features/built_in_matchers/README.md
|
90
|
+
- features/built_in_matchers/be.feature
|
91
|
+
- features/built_in_matchers/be_within.feature
|
92
|
+
- features/built_in_matchers/cover.feature
|
93
|
+
- features/built_in_matchers/end_with.feature
|
94
|
+
- features/built_in_matchers/equality.feature
|
95
|
+
- features/built_in_matchers/exist.feature
|
96
|
+
- features/built_in_matchers/expect_change.feature
|
97
|
+
- features/built_in_matchers/expect_error.feature
|
98
|
+
- features/built_in_matchers/have.feature
|
99
|
+
- features/built_in_matchers/include.feature
|
100
|
+
- features/built_in_matchers/match.feature
|
101
|
+
- features/built_in_matchers/operators.feature
|
102
|
+
- features/built_in_matchers/predicates.feature
|
103
|
+
- features/built_in_matchers/respond_to.feature
|
104
|
+
- features/built_in_matchers/satisfy.feature
|
105
|
+
- features/built_in_matchers/start_with.feature
|
106
|
+
- features/built_in_matchers/throw_symbol.feature
|
107
|
+
- features/built_in_matchers/types.feature
|
108
|
+
- features/built_in_matchers/yield.feature
|
109
|
+
- features/custom_matchers/access_running_example.feature
|
110
|
+
- features/custom_matchers/define_diffable_matcher.feature
|
111
|
+
- features/custom_matchers/define_matcher.feature
|
112
|
+
- features/custom_matchers/define_matcher_outside_rspec.feature
|
113
|
+
- features/custom_matchers/define_matcher_with_fluent_interface.feature
|
114
|
+
- features/customized_message.feature
|
115
|
+
- features/diffing.feature
|
116
|
+
- features/implicit_docstrings.feature
|
117
|
+
- features/step_definitions/additional_cli_steps.rb
|
118
|
+
- features/support/env.rb
|
119
|
+
- features/support/rubinius.rb
|
120
|
+
- features/syntax_configuration.feature
|
121
|
+
- features/test_frameworks/test_unit.feature
|
91
122
|
- lib/rspec-expectations.rb
|
92
123
|
- lib/rspec/expectations.rb
|
93
124
|
- lib/rspec/expectations/caller_filter.rb
|
125
|
+
- lib/rspec/expectations/configuration.rb
|
94
126
|
- lib/rspec/expectations/deprecation.rb
|
95
127
|
- lib/rspec/expectations/differ.rb
|
96
128
|
- lib/rspec/expectations/errors.rb
|
@@ -128,7 +160,6 @@ files:
|
|
128
160
|
- lib/rspec/matchers/built_in/throw_symbol.rb
|
129
161
|
- lib/rspec/matchers/built_in/yield.rb
|
130
162
|
- lib/rspec/matchers/compatibility.rb
|
131
|
-
- lib/rspec/matchers/configuration.rb
|
132
163
|
- lib/rspec/matchers/differentiate_block_method_types.rb
|
133
164
|
- lib/rspec/matchers/dsl.rb
|
134
165
|
- lib/rspec/matchers/extensions/instance_eval_with_args.rb
|
@@ -139,46 +170,7 @@ files:
|
|
139
170
|
- lib/rspec/matchers/operator_matcher.rb
|
140
171
|
- lib/rspec/matchers/pretty.rb
|
141
172
|
- lib/rspec/matchers/test_unit_integration.rb
|
142
|
-
-
|
143
|
-
- License.txt
|
144
|
-
- Changelog.md
|
145
|
-
- .yardopts
|
146
|
-
- .document
|
147
|
-
- features/README.md
|
148
|
-
- features/Upgrade.md
|
149
|
-
- features/built_in_matchers/README.md
|
150
|
-
- features/built_in_matchers/be.feature
|
151
|
-
- features/built_in_matchers/be_within.feature
|
152
|
-
- features/built_in_matchers/cover.feature
|
153
|
-
- features/built_in_matchers/end_with.feature
|
154
|
-
- features/built_in_matchers/equality.feature
|
155
|
-
- features/built_in_matchers/exist.feature
|
156
|
-
- features/built_in_matchers/expect_change.feature
|
157
|
-
- features/built_in_matchers/expect_error.feature
|
158
|
-
- features/built_in_matchers/have.feature
|
159
|
-
- features/built_in_matchers/include.feature
|
160
|
-
- features/built_in_matchers/match.feature
|
161
|
-
- features/built_in_matchers/operators.feature
|
162
|
-
- features/built_in_matchers/predicates.feature
|
163
|
-
- features/built_in_matchers/respond_to.feature
|
164
|
-
- features/built_in_matchers/satisfy.feature
|
165
|
-
- features/built_in_matchers/start_with.feature
|
166
|
-
- features/built_in_matchers/throw_symbol.feature
|
167
|
-
- features/built_in_matchers/types.feature
|
168
|
-
- features/built_in_matchers/yield.feature
|
169
|
-
- features/custom_matchers/access_running_example.feature
|
170
|
-
- features/custom_matchers/define_diffable_matcher.feature
|
171
|
-
- features/custom_matchers/define_matcher.feature
|
172
|
-
- features/custom_matchers/define_matcher_outside_rspec.feature
|
173
|
-
- features/custom_matchers/define_matcher_with_fluent_interface.feature
|
174
|
-
- features/customized_message.feature
|
175
|
-
- features/diffing.feature
|
176
|
-
- features/implicit_docstrings.feature
|
177
|
-
- features/step_definitions/additional_cli_steps.rb
|
178
|
-
- features/support/env.rb
|
179
|
-
- features/support/rubinius.rb
|
180
|
-
- features/syntax_configuration.feature
|
181
|
-
- features/test_frameworks/test_unit.feature
|
173
|
+
- spec/rspec/expectations/configuration_spec.rb
|
182
174
|
- spec/rspec/expectations/differ_spec.rb
|
183
175
|
- spec/rspec/expectations/expectation_target_spec.rb
|
184
176
|
- spec/rspec/expectations/extensions/kernel_spec.rb
|
@@ -193,7 +185,6 @@ files:
|
|
193
185
|
- spec/rspec/matchers/be_spec.rb
|
194
186
|
- spec/rspec/matchers/be_within_spec.rb
|
195
187
|
- spec/rspec/matchers/change_spec.rb
|
196
|
-
- spec/rspec/matchers/configuration_spec.rb
|
197
188
|
- spec/rspec/matchers/cover_spec.rb
|
198
189
|
- spec/rspec/matchers/description_generation_spec.rb
|
199
190
|
- spec/rspec/matchers/differentiate_block_method_types_spec.rb
|
@@ -211,6 +202,7 @@ files:
|
|
211
202
|
- spec/rspec/matchers/matcher_spec.rb
|
212
203
|
- spec/rspec/matchers/method_missing_spec.rb
|
213
204
|
- spec/rspec/matchers/operator_matcher_spec.rb
|
205
|
+
- spec/rspec/matchers/pretty_spec.rb
|
214
206
|
- spec/rspec/matchers/raise_error_spec.rb
|
215
207
|
- spec/rspec/matchers/respond_to_spec.rb
|
216
208
|
- spec/rspec/matchers/satisfy_spec.rb
|
@@ -227,32 +219,28 @@ files:
|
|
227
219
|
homepage: http://github.com/rspec/rspec-expectations
|
228
220
|
licenses:
|
229
221
|
- MIT
|
222
|
+
metadata: {}
|
230
223
|
post_install_message:
|
231
224
|
rdoc_options:
|
232
|
-
- --charset=UTF-8
|
225
|
+
- "--charset=UTF-8"
|
233
226
|
require_paths:
|
234
227
|
- lib
|
235
228
|
required_ruby_version: !ruby/object:Gem::Requirement
|
236
|
-
none: false
|
237
229
|
requirements:
|
238
|
-
- -
|
230
|
+
- - ">="
|
239
231
|
- !ruby/object:Gem::Version
|
240
232
|
version: '0'
|
241
|
-
segments:
|
242
|
-
- 0
|
243
|
-
hash: -1031403983594165086
|
244
233
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
245
|
-
none: false
|
246
234
|
requirements:
|
247
|
-
- -
|
235
|
+
- - ">"
|
248
236
|
- !ruby/object:Gem::Version
|
249
237
|
version: 1.3.1
|
250
238
|
requirements: []
|
251
239
|
rubyforge_project: rspec
|
252
|
-
rubygems_version:
|
240
|
+
rubygems_version: 2.2.2
|
253
241
|
signing_key:
|
254
|
-
specification_version:
|
255
|
-
summary: rspec-expectations-2.99.0.
|
242
|
+
specification_version: 4
|
243
|
+
summary: rspec-expectations-2.99.0.rc1
|
256
244
|
test_files:
|
257
245
|
- features/README.md
|
258
246
|
- features/Upgrade.md
|
@@ -289,6 +277,7 @@ test_files:
|
|
289
277
|
- features/support/rubinius.rb
|
290
278
|
- features/syntax_configuration.feature
|
291
279
|
- features/test_frameworks/test_unit.feature
|
280
|
+
- spec/rspec/expectations/configuration_spec.rb
|
292
281
|
- spec/rspec/expectations/differ_spec.rb
|
293
282
|
- spec/rspec/expectations/expectation_target_spec.rb
|
294
283
|
- spec/rspec/expectations/extensions/kernel_spec.rb
|
@@ -303,7 +292,6 @@ test_files:
|
|
303
292
|
- spec/rspec/matchers/be_spec.rb
|
304
293
|
- spec/rspec/matchers/be_within_spec.rb
|
305
294
|
- spec/rspec/matchers/change_spec.rb
|
306
|
-
- spec/rspec/matchers/configuration_spec.rb
|
307
295
|
- spec/rspec/matchers/cover_spec.rb
|
308
296
|
- spec/rspec/matchers/description_generation_spec.rb
|
309
297
|
- spec/rspec/matchers/differentiate_block_method_types_spec.rb
|
@@ -321,6 +309,7 @@ test_files:
|
|
321
309
|
- spec/rspec/matchers/matcher_spec.rb
|
322
310
|
- spec/rspec/matchers/method_missing_spec.rb
|
323
311
|
- spec/rspec/matchers/operator_matcher_spec.rb
|
312
|
+
- spec/rspec/matchers/pretty_spec.rb
|
324
313
|
- spec/rspec/matchers/raise_error_spec.rb
|
325
314
|
- spec/rspec/matchers/respond_to_spec.rb
|
326
315
|
- spec/rspec/matchers/satisfy_spec.rb
|