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 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
@@ -111,7 +111,7 @@ module Spec
111
111
  end
112
112
 
113
113
  def is_matcher?(obj)
114
- return obj.respond_to?(:matches?) && obj.respond_to?(:failure_message)
114
+ return obj.respond_to?(:matches?) && obj.respond_to?(:description)
115
115
  end
116
116
 
117
117
  def check_args(args)
@@ -11,11 +11,11 @@ module Spec
11
11
  unless defined? MAJOR
12
12
  MAJOR = 0
13
13
  MINOR = 8
14
- TINY = 1
14
+ TINY = 2
15
15
  # RELEASE_CANDIDATE = "RC1"
16
16
 
17
- # RANDOM_TOKEN: 0.749142077161729
18
- REV = "$LastChangedRevision: 1553 $".match(/LastChangedRevision: (\d+)/)[1]
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
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.1
7
- date: 2007-02-28 00:00:00 -06:00
8
- summary: RSpec-0.8.1 (r1553) - BDD for Ruby http://rspec.rubyforge.org/
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