rspec-expectations 2.0.0.beta.10 → 2.0.0.beta.11

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,17 +3,14 @@
3
3
  rspec-expectations adds `should` and `should_not` to every object and includes
4
4
  RSpec::Matchers, a library of standard matchers.
5
5
 
6
- rspec-expectations is currently in alpha release. While you are welcome to
7
- track, fork, explore, etc, we're too early in the process to start fielding
8
- pull requests and or issues from outside the core development team, so please
9
- don't waste your time until this notice changes.
6
+ # Matchers
10
7
 
11
- ## Install
8
+ Matchers are objects used to compose expectations:
12
9
 
13
- [sudo] gem install rspec --prerelease
14
-
15
- This will install rspec, rspec-core, rspec-expectations and rspec-mocks.
10
+ result.should eq("this value")
16
11
 
12
+ In that example, `eq("this value")` returns a `Matcher` object that
13
+ compares the actual `result` to the expected `"this value"`.
17
14
 
18
15
  #### Also see
19
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.0.0.beta.10
1
+ 2.0.0.beta.11
@@ -1,6 +1,7 @@
1
1
  module RSpec
2
- # RSpec ships with a number of useful Expression Matchers. An Expression Matcher
3
- # is any object that responds to the following methods:
2
+ # rspec-expecations provides a number of useful Matchers we use to compose
3
+ # expectations. A Matcher is any object that responds to the following
4
+ # methods:
4
5
  #
5
6
  # matches?(actual)
6
7
  # failure_message_for_should
@@ -11,14 +12,6 @@ module RSpec
11
12
  # failure_message_for_should_not
12
13
  # description #optional
13
14
  #
14
- # These methods are from older versions of the protocol. They are still supported,
15
- # but are not recommended:
16
- #
17
- # failure_message (use failure_message_for_should instead)
18
- # negative_failure_message (use failure_message_for_should_not instead)
19
- #
20
- # See RSpec::Expectations to learn how to use these as Expectation Matchers.
21
- #
22
15
  # == Predicates
23
16
  #
24
17
  # In addition to those Expression Matchers that are defined explicitly, RSpec will
@@ -30,11 +30,11 @@ module RSpec
30
30
  end
31
31
  end
32
32
 
33
- def comparing_hash_keys?(actual, expected)
33
+ def comparing_hash_keys?(actual, expected) # :nodoc:
34
34
  actual.is_a?(Hash) && !expected.is_a?(Hash)
35
35
  end
36
36
 
37
- def comparing_hash_values?(actual, expected)
37
+ def comparing_hash_values?(actual, expected) # :nodoc:
38
38
  actual.is_a?(Hash) && expected.is_a?(Hash)
39
39
  end
40
40
 
@@ -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.10"
8
+ s.version = "2.0.0.beta.11"
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-06-02}
12
+ s.date = %q{2010-06-06}
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 = [
@@ -110,7 +110,7 @@ Gem::Specification.new do |s|
110
110
  s.homepage = %q{http://github.com/rspec/expectations}
111
111
  s.post_install_message = %q{**************************************************
112
112
 
113
- Thank you for installing rspec-expectations-2.0.0.beta.10
113
+ Thank you for installing rspec-expectations-2.0.0.beta.11
114
114
 
115
115
  This is beta software. If you are looking
116
116
  for a supported production release, please
@@ -122,7 +122,7 @@ Gem::Specification.new do |s|
122
122
  s.require_paths = ["lib"]
123
123
  s.rubyforge_project = %q{rspec}
124
124
  s.rubygems_version = %q{1.3.6}
125
- s.summary = %q{rspec-expectations-2.0.0.beta.10}
125
+ s.summary = %q{rspec-expectations-2.0.0.beta.11}
126
126
  s.test_files = [
127
127
  "spec/rspec/expectations/differ_spec.rb",
128
128
  "spec/rspec/expectations/extensions/kernel_spec.rb",
@@ -165,21 +165,21 @@ Gem::Specification.new do |s|
165
165
  s.add_runtime_dependency(%q<diff-lcs>, [">= 1.1.2"])
166
166
  s.add_development_dependency(%q<cucumber>, [">= 0.6.2"])
167
167
  s.add_development_dependency(%q<aruba>, [">= 0.1.1"])
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"])
168
+ s.add_development_dependency(%q<rspec-core>, [">= 2.0.0.beta.11"])
169
+ s.add_development_dependency(%q<rspec-mocks>, [">= 2.0.0.beta.11"])
170
170
  else
171
171
  s.add_dependency(%q<diff-lcs>, [">= 1.1.2"])
172
172
  s.add_dependency(%q<cucumber>, [">= 0.6.2"])
173
173
  s.add_dependency(%q<aruba>, [">= 0.1.1"])
174
- s.add_dependency(%q<rspec-core>, [">= 2.0.0.beta.10"])
175
- s.add_dependency(%q<rspec-mocks>, [">= 2.0.0.beta.10"])
174
+ s.add_dependency(%q<rspec-core>, [">= 2.0.0.beta.11"])
175
+ s.add_dependency(%q<rspec-mocks>, [">= 2.0.0.beta.11"])
176
176
  end
177
177
  else
178
178
  s.add_dependency(%q<diff-lcs>, [">= 1.1.2"])
179
179
  s.add_dependency(%q<cucumber>, [">= 0.6.2"])
180
180
  s.add_dependency(%q<aruba>, [">= 0.1.1"])
181
- s.add_dependency(%q<rspec-core>, [">= 2.0.0.beta.10"])
182
- s.add_dependency(%q<rspec-mocks>, [">= 2.0.0.beta.10"])
181
+ s.add_dependency(%q<rspec-core>, [">= 2.0.0.beta.11"])
182
+ s.add_dependency(%q<rspec-mocks>, [">= 2.0.0.beta.11"])
183
183
  end
184
184
  end
185
185
 
metadata CHANGED
@@ -7,8 +7,8 @@ version: !ruby/object:Gem::Version
7
7
  - 0
8
8
  - 0
9
9
  - beta
10
- - 10
11
- version: 2.0.0.beta.10
10
+ - 11
11
+ version: 2.0.0.beta.11
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-06-02 00:00:00 -05:00
20
+ date: 2010-06-06 00:00:00 -04: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
- - 10
78
- version: 2.0.0.beta.10
77
+ - 11
78
+ version: 2.0.0.beta.11
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
- - 10
94
- version: 2.0.0.beta.10
93
+ - 11
94
+ version: 2.0.0.beta.11
95
95
  type: :development
96
96
  version_requirements: *id005
97
97
  description: rspec expectations (should[_not] and matchers)
@@ -200,7 +200,7 @@ licenses: []
200
200
  post_install_message: |
201
201
  **************************************************
202
202
 
203
- Thank you for installing rspec-expectations-2.0.0.beta.10
203
+ Thank you for installing rspec-expectations-2.0.0.beta.11
204
204
 
205
205
  This is beta software. If you are looking
206
206
  for a supported production release, please
@@ -234,7 +234,7 @@ rubyforge_project: rspec
234
234
  rubygems_version: 1.3.6
235
235
  signing_key:
236
236
  specification_version: 3
237
- summary: rspec-expectations-2.0.0.beta.10
237
+ summary: rspec-expectations-2.0.0.beta.11
238
238
  test_files:
239
239
  - spec/rspec/expectations/differ_spec.rb
240
240
  - spec/rspec/expectations/extensions/kernel_spec.rb