rspec 0.8.1 → 0.8.2
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/CHANGES +4 -0
- data/lib/spec/mocks/argument_expectation.rb +1 -1
- data/lib/spec/version.rb +3 -3
- data/spec/spec/mocks/argument_expectation_spec.rb +19 -0
- metadata +5 -4
data/CHANGES
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
= RSpec Changelog
|
2
2
|
|
3
|
+
== Version 0.8.2
|
4
|
+
|
5
|
+
Replaced assert_select fork with an assert_select wrapper for have_tag. This means that "should have_rjs" no longer supports :hide or :effect, but you can still use should_have_rjs for those.
|
6
|
+
|
3
7
|
== Version 0.8.1
|
4
8
|
|
5
9
|
Quick "in house" bug-fix
|
data/lib/spec/version.rb
CHANGED
@@ -11,11 +11,11 @@ module Spec
|
|
11
11
|
unless defined? MAJOR
|
12
12
|
MAJOR = 0
|
13
13
|
MINOR = 8
|
14
|
-
TINY =
|
14
|
+
TINY = 2
|
15
15
|
# RELEASE_CANDIDATE = "RC1"
|
16
16
|
|
17
|
-
# RANDOM_TOKEN: 0.
|
18
|
-
REV = "$LastChangedRevision:
|
17
|
+
# RANDOM_TOKEN: 0.375509844656552
|
18
|
+
REV = "$LastChangedRevision: 1560 $".match(/LastChangedRevision: (\d+)/)[1]
|
19
19
|
|
20
20
|
STRING = [MAJOR, MINOR, TINY].join('.')
|
21
21
|
FULL_VERSION = "#{STRING} (r#{REV})"
|
@@ -0,0 +1,19 @@
|
|
1
|
+
require File.dirname(__FILE__) + '/../../spec_helper.rb'
|
2
|
+
|
3
|
+
context "An ArgumentExpectation" do
|
4
|
+
specify "should consider an object that responds to #matches? and #description to be a matcher" do
|
5
|
+
argument_expecatation = Spec::Mocks::ArgumentExpectation.new([])
|
6
|
+
obj = mock("matcher")
|
7
|
+
obj.should_receive(:respond_to?).with(:matches?).and_return(true)
|
8
|
+
obj.should_receive(:respond_to?).with(:description).and_return(true)
|
9
|
+
argument_expecatation.is_matcher?(obj).should be_true
|
10
|
+
end
|
11
|
+
|
12
|
+
specify "should NOT consider an object that only responds to #matches? to be a matcher" do
|
13
|
+
argument_expecatation = Spec::Mocks::ArgumentExpectation.new([])
|
14
|
+
obj = mock("matcher")
|
15
|
+
obj.should_receive(:respond_to?).with(:matches?).and_return(true)
|
16
|
+
obj.should_receive(:respond_to?).with(:description).and_return(false)
|
17
|
+
argument_expecatation.is_matcher?(obj).should be_false
|
18
|
+
end
|
19
|
+
end
|
metadata
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
|
-
rubygems_version: 0.9.
|
2
|
+
rubygems_version: 0.9.1
|
3
3
|
specification_version: 1
|
4
4
|
name: rspec
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.8.
|
7
|
-
date: 2007-02
|
8
|
-
summary: RSpec-0.8.
|
6
|
+
version: 0.8.2
|
7
|
+
date: 2007-03-02 00:00:00 +00:00
|
8
|
+
summary: RSpec-0.8.2 (r1560) - BDD for Ruby http://rspec.rubyforge.org/
|
9
9
|
require_paths:
|
10
10
|
- lib
|
11
11
|
email: rspec-devel@rubyforge.org
|
@@ -172,6 +172,7 @@ files:
|
|
172
172
|
- spec/spec/matchers/satisfy_spec.rb
|
173
173
|
- spec/spec/matchers/throw_symbol_spec.rb
|
174
174
|
- spec/spec/mocks/any_number_of_times_spec.rb
|
175
|
+
- spec/spec/mocks/argument_expectation_spec.rb
|
175
176
|
- spec/spec/mocks/at_least_spec.rb
|
176
177
|
- spec/spec/mocks/at_most_spec.rb
|
177
178
|
- spec/spec/mocks/bug_report_7611_spec.rb
|