rspec-expectations 2.0.0.beta.9 → 2.0.0.beta.10
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/VERSION +1 -1
- data/features/expectations/attribute_of_subject.feature +19 -0
- data/lib/rspec/matchers/be.rb +1 -2
- data/rspec-expectations.gemspec +11 -10
- metadata +10 -9
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.0.0.beta.
|
1
|
+
2.0.0.beta.10
|
@@ -0,0 +1,19 @@
|
|
1
|
+
Feature: attribute of subject
|
2
|
+
|
3
|
+
In order to get more meaningful failure messages
|
4
|
+
As a spec author
|
5
|
+
I want RSpec to tell me what attribute a matcher applies
|
6
|
+
to when using the its(:attribute) technique
|
7
|
+
|
8
|
+
Scenario: eq matcher fails
|
9
|
+
Given a file named "example_spec.rb" with:
|
10
|
+
"""
|
11
|
+
describe "an array" do
|
12
|
+
subject { [] }
|
13
|
+
its(:size) { should eq(1) } # intentionally fail
|
14
|
+
end
|
15
|
+
"""
|
16
|
+
|
17
|
+
When I run "rspec example_spec.rb -fdoc"
|
18
|
+
Then I should see "Failure/Error: its(:size) { should eq(1) }"
|
19
|
+
And I should see "expected 1"
|
data/lib/rspec/matchers/be.rb
CHANGED
data/rspec-expectations.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{rspec-expectations}
|
8
|
-
s.version = "2.0.0.beta.
|
8
|
+
s.version = "2.0.0.beta.10"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["David Chelimsky", "Chad Humphries"]
|
12
|
-
s.date = %q{2010-
|
12
|
+
s.date = %q{2010-06-02}
|
13
13
|
s.description = %q{rspec expectations (should[_not] and matchers)}
|
14
14
|
s.email = %q{dchelimsky@gmail.com;chad.humphries@gmail.com}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -24,6 +24,7 @@ Gem::Specification.new do |s|
|
|
24
24
|
"Upgrade.markdown",
|
25
25
|
"VERSION",
|
26
26
|
"cucumber.yml",
|
27
|
+
"features/expectations/attribute_of_subject.feature",
|
27
28
|
"features/expectations/customized_message.feature",
|
28
29
|
"features/expectations/implicit_docstrings.feature",
|
29
30
|
"features/matchers/access_running_example.feature",
|
@@ -109,7 +110,7 @@ Gem::Specification.new do |s|
|
|
109
110
|
s.homepage = %q{http://github.com/rspec/expectations}
|
110
111
|
s.post_install_message = %q{**************************************************
|
111
112
|
|
112
|
-
Thank you for installing rspec-expectations-2.0.0.beta.
|
113
|
+
Thank you for installing rspec-expectations-2.0.0.beta.10
|
113
114
|
|
114
115
|
This is beta software. If you are looking
|
115
116
|
for a supported production release, please
|
@@ -121,7 +122,7 @@ Gem::Specification.new do |s|
|
|
121
122
|
s.require_paths = ["lib"]
|
122
123
|
s.rubyforge_project = %q{rspec}
|
123
124
|
s.rubygems_version = %q{1.3.6}
|
124
|
-
s.summary = %q{rspec-expectations-2.0.0.beta.
|
125
|
+
s.summary = %q{rspec-expectations-2.0.0.beta.10}
|
125
126
|
s.test_files = [
|
126
127
|
"spec/rspec/expectations/differ_spec.rb",
|
127
128
|
"spec/rspec/expectations/extensions/kernel_spec.rb",
|
@@ -164,21 +165,21 @@ Gem::Specification.new do |s|
|
|
164
165
|
s.add_runtime_dependency(%q<diff-lcs>, [">= 1.1.2"])
|
165
166
|
s.add_development_dependency(%q<cucumber>, [">= 0.6.2"])
|
166
167
|
s.add_development_dependency(%q<aruba>, [">= 0.1.1"])
|
167
|
-
s.add_development_dependency(%q<rspec-core>, [">= 2.0.0.beta.
|
168
|
-
s.add_development_dependency(%q<rspec-mocks>, [">= 2.0.0.beta.
|
168
|
+
s.add_development_dependency(%q<rspec-core>, [">= 2.0.0.beta.10"])
|
169
|
+
s.add_development_dependency(%q<rspec-mocks>, [">= 2.0.0.beta.10"])
|
169
170
|
else
|
170
171
|
s.add_dependency(%q<diff-lcs>, [">= 1.1.2"])
|
171
172
|
s.add_dependency(%q<cucumber>, [">= 0.6.2"])
|
172
173
|
s.add_dependency(%q<aruba>, [">= 0.1.1"])
|
173
|
-
s.add_dependency(%q<rspec-core>, [">= 2.0.0.beta.
|
174
|
-
s.add_dependency(%q<rspec-mocks>, [">= 2.0.0.beta.
|
174
|
+
s.add_dependency(%q<rspec-core>, [">= 2.0.0.beta.10"])
|
175
|
+
s.add_dependency(%q<rspec-mocks>, [">= 2.0.0.beta.10"])
|
175
176
|
end
|
176
177
|
else
|
177
178
|
s.add_dependency(%q<diff-lcs>, [">= 1.1.2"])
|
178
179
|
s.add_dependency(%q<cucumber>, [">= 0.6.2"])
|
179
180
|
s.add_dependency(%q<aruba>, [">= 0.1.1"])
|
180
|
-
s.add_dependency(%q<rspec-core>, [">= 2.0.0.beta.
|
181
|
-
s.add_dependency(%q<rspec-mocks>, [">= 2.0.0.beta.
|
181
|
+
s.add_dependency(%q<rspec-core>, [">= 2.0.0.beta.10"])
|
182
|
+
s.add_dependency(%q<rspec-mocks>, [">= 2.0.0.beta.10"])
|
182
183
|
end
|
183
184
|
end
|
184
185
|
|
metadata
CHANGED
@@ -7,8 +7,8 @@ version: !ruby/object:Gem::Version
|
|
7
7
|
- 0
|
8
8
|
- 0
|
9
9
|
- beta
|
10
|
-
-
|
11
|
-
version: 2.0.0.beta.
|
10
|
+
- 10
|
11
|
+
version: 2.0.0.beta.10
|
12
12
|
platform: ruby
|
13
13
|
authors:
|
14
14
|
- David Chelimsky
|
@@ -17,7 +17,7 @@ autorequire:
|
|
17
17
|
bindir: bin
|
18
18
|
cert_chain: []
|
19
19
|
|
20
|
-
date: 2010-
|
20
|
+
date: 2010-06-02 00:00:00 -05:00
|
21
21
|
default_executable:
|
22
22
|
dependencies:
|
23
23
|
- !ruby/object:Gem::Dependency
|
@@ -74,8 +74,8 @@ dependencies:
|
|
74
74
|
- 0
|
75
75
|
- 0
|
76
76
|
- beta
|
77
|
-
-
|
78
|
-
version: 2.0.0.beta.
|
77
|
+
- 10
|
78
|
+
version: 2.0.0.beta.10
|
79
79
|
type: :development
|
80
80
|
version_requirements: *id004
|
81
81
|
- !ruby/object:Gem::Dependency
|
@@ -90,8 +90,8 @@ dependencies:
|
|
90
90
|
- 0
|
91
91
|
- 0
|
92
92
|
- beta
|
93
|
-
-
|
94
|
-
version: 2.0.0.beta.
|
93
|
+
- 10
|
94
|
+
version: 2.0.0.beta.10
|
95
95
|
type: :development
|
96
96
|
version_requirements: *id005
|
97
97
|
description: rspec expectations (should[_not] and matchers)
|
@@ -111,6 +111,7 @@ files:
|
|
111
111
|
- Upgrade.markdown
|
112
112
|
- VERSION
|
113
113
|
- cucumber.yml
|
114
|
+
- features/expectations/attribute_of_subject.feature
|
114
115
|
- features/expectations/customized_message.feature
|
115
116
|
- features/expectations/implicit_docstrings.feature
|
116
117
|
- features/matchers/access_running_example.feature
|
@@ -199,7 +200,7 @@ licenses: []
|
|
199
200
|
post_install_message: |
|
200
201
|
**************************************************
|
201
202
|
|
202
|
-
Thank you for installing rspec-expectations-2.0.0.beta.
|
203
|
+
Thank you for installing rspec-expectations-2.0.0.beta.10
|
203
204
|
|
204
205
|
This is beta software. If you are looking
|
205
206
|
for a supported production release, please
|
@@ -233,7 +234,7 @@ rubyforge_project: rspec
|
|
233
234
|
rubygems_version: 1.3.6
|
234
235
|
signing_key:
|
235
236
|
specification_version: 3
|
236
|
-
summary: rspec-expectations-2.0.0.beta.
|
237
|
+
summary: rspec-expectations-2.0.0.beta.10
|
237
238
|
test_files:
|
238
239
|
- spec/rspec/expectations/differ_spec.rb
|
239
240
|
- spec/rspec/expectations/extensions/kernel_spec.rb
|