rspec-expectations 2.0.0.a1 → 2.0.0.a2
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/.document +3 -3
- data/.gitignore +1 -0
- data/License.txt +2 -2
- data/Rakefile +17 -10
- data/Upgrade.markdown +38 -0
- data/lib/rspec/expectations.rb +1 -0
- data/lib/rspec/expectations/extensions.rb +1 -0
- data/lib/rspec/expectations/extensions/rspec/core/example_group.rb +19 -0
- data/lib/rspec/expectations/version.rb +16 -0
- data/lib/rspec/matchers.rb +0 -2
- data/lib/rspec/matchers/exist.rb +2 -2
- data/lib/rspec/matchers/extensions/instance_exec.rb +27 -19
- data/lib/rspec/matchers/include.rb +17 -16
- data/lib/rspec/matchers/matcher.rb +71 -25
- data/rspec-expectations.gemspec +66 -19
- data/spec/rspec/matchers/be_close_spec.rb +50 -0
- data/spec/rspec/matchers/be_instance_of_spec.rb +36 -0
- data/spec/rspec/matchers/be_kind_of_spec.rb +33 -0
- data/spec/rspec/matchers/be_spec.rb +311 -0
- data/spec/rspec/matchers/change_spec.rb +349 -0
- data/spec/rspec/matchers/compatibility_spec.rb +28 -0
- data/spec/rspec/matchers/description_generation_spec.rb +160 -0
- data/spec/rspec/matchers/dsl_spec.rb +25 -0
- data/spec/rspec/matchers/eql_spec.rb +33 -0
- data/spec/rspec/matchers/equal_spec.rb +57 -0
- data/spec/rspec/matchers/exist_spec.rb +65 -0
- data/spec/rspec/matchers/has_spec.rb +81 -0
- data/spec/rspec/matchers/have_spec.rb +407 -0
- data/spec/rspec/matchers/include_spec.rb +88 -0
- data/spec/rspec/matchers/match_array_spec.rb +108 -0
- data/spec/rspec/matchers/match_spec.rb +57 -0
- data/spec/rspec/matchers/matcher_methods_spec.rb +63 -0
- data/spec/rspec/matchers/matcher_spec.rb +289 -0
- data/spec/rspec/matchers/matchers_spec.rb +2 -0
- data/spec/rspec/matchers/operator_matcher_spec.rb +191 -0
- data/spec/rspec/matchers/raise_error_spec.rb +333 -0
- data/spec/rspec/matchers/respond_to_spec.rb +116 -0
- data/spec/rspec/matchers/satisfy_spec.rb +36 -0
- data/spec/rspec/matchers/throw_symbol_spec.rb +96 -0
- data/spec/spec_helper.rb +13 -1
- data/spec/support/classes.rb +51 -0
- metadata +60 -15
- data/VERSION +0 -1
- data/VERSION.yml +0 -5
- data/lib/rspec/matchers/simple_matcher.rb +0 -133
- data/lib/rspec/matchers/wrap_expectation.rb +0 -55
- data/spec/rspec/expectations/wrap_expectation_spec.rb +0 -30
- data/spec/support/macros.rb +0 -29
data/.document
CHANGED
data/.gitignore
CHANGED
data/License.txt
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
(The MIT License)
|
2
2
|
|
3
|
-
Copyright (c) 2005-
|
3
|
+
Copyright (c) 2005-2010 The RSpec Development Team
|
4
4
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining
|
6
6
|
a copy of this software and associated documentation files (the
|
@@ -19,4 +19,4 @@ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
19
19
|
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
20
20
|
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
21
21
|
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
22
|
-
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
22
|
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/Rakefile
CHANGED
@@ -1,30 +1,37 @@
|
|
1
1
|
require 'rubygems'
|
2
|
+
gem 'jeweler', '>= 1.4.0'
|
2
3
|
require 'rake'
|
4
|
+
$:.unshift File.expand_path(File.join(File.dirname(__FILE__),'lib'))
|
5
|
+
require 'rspec/expectations/version'
|
3
6
|
|
4
7
|
begin
|
5
8
|
require 'jeweler'
|
6
9
|
Jeweler::Tasks.new do |gem|
|
7
10
|
gem.name = "rspec-expectations"
|
11
|
+
gem.version = Rspec::Expectations::Version::STRING
|
8
12
|
gem.summary = "rspec expectations (should[_not] and matchers)"
|
13
|
+
gem.rubyforge_project = "rspec"
|
9
14
|
gem.email = "dchelimsky@gmail.com;chad.humphries@gmail.com"
|
10
15
|
gem.homepage = "http://github.com/rspec/expectations"
|
11
16
|
gem.authors = ["David Chelimsky", "Chad Humphries"]
|
12
|
-
gem.add_development_dependency('rspec-core',
|
13
|
-
gem.add_development_dependency('rspec-mocks',
|
14
|
-
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
|
17
|
+
gem.add_development_dependency('rspec-core', ">= #{Rspec::Expectations::Version::STRING}")
|
18
|
+
gem.add_development_dependency('rspec-mocks', ">= #{Rspec::Expectations::Version::STRING}")
|
15
19
|
end
|
16
|
-
|
20
|
+
Jeweler::GemcutterTasks.new
|
17
21
|
rescue LoadError
|
18
|
-
puts "Jeweler (or a dependency) not available. Install it with:
|
22
|
+
puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
|
19
23
|
end
|
20
24
|
|
21
|
-
|
22
|
-
require 'rspec/core/rake_task'
|
23
|
-
Rspec::Core::RakeTask.new(:spec) do |spec|
|
24
|
-
|
25
|
+
begin
|
26
|
+
require 'rspec/core/rake_task'
|
27
|
+
Rspec::Core::RakeTask.new(:spec) do |spec|
|
28
|
+
spec.pattern = "spec/**/*_spec.rb"
|
29
|
+
end
|
30
|
+
rescue LoadError
|
31
|
+
puts "Rspec core or one of its dependencies is not installed. Install it with: gem install rspec-meta"
|
25
32
|
end
|
26
33
|
|
27
|
-
task :default => :spec
|
34
|
+
task :default => [:check_dependencies, :spec]
|
28
35
|
|
29
36
|
require 'rake/rdoctask'
|
30
37
|
Rake::RDocTask.new do |rdoc|
|
data/Upgrade.markdown
ADDED
@@ -0,0 +1,38 @@
|
|
1
|
+
# Upgrade to rspec-2.0
|
2
|
+
|
3
|
+
## What's been removed
|
4
|
+
|
5
|
+
### simple_matcher
|
6
|
+
|
7
|
+
Use Rspec::Matchers.define instead. For example, if you had:
|
8
|
+
|
9
|
+
def eat_cheese
|
10
|
+
simple_matcher("eat cheese") do |actual|
|
11
|
+
actual.eat?(:cheese)
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
Change it to:
|
16
|
+
|
17
|
+
Rspec::Matchers.define :eat_cheese do
|
18
|
+
match do |actual|
|
19
|
+
actual.eat?(:cheese)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
### wrap_expectation
|
24
|
+
|
25
|
+
Use Rspec::Matchers.define instead.
|
26
|
+
|
27
|
+
Rspec::Matchers.define :eat_cheese do
|
28
|
+
match do |actual|
|
29
|
+
actual.should eat?(:cheese)
|
30
|
+
end
|
31
|
+
end
|
32
|
+
|
33
|
+
Rspec::Matchers.define :eat_cheese do
|
34
|
+
include MyCheesyAssertions
|
35
|
+
match_unless_raises Test::Unit::AssertionFailedError do |actual|
|
36
|
+
assert_eats_chesse actual
|
37
|
+
end
|
38
|
+
end
|
data/lib/rspec/expectations.rb
CHANGED
@@ -0,0 +1,19 @@
|
|
1
|
+
module Rspec
|
2
|
+
module Core
|
3
|
+
class ExampleGroup
|
4
|
+
module BlockAliases
|
5
|
+
alias_method :to, :should
|
6
|
+
alias_method :to_not, :should_not
|
7
|
+
end
|
8
|
+
|
9
|
+
# Extends the submitted block with aliases to and to_not
|
10
|
+
# for should and should_not. Allows expectations like this:
|
11
|
+
#
|
12
|
+
# expect { this_block }.to change{this.expression}.from(old_value).to(new_value)
|
13
|
+
# expect { this_block }.to raise_error
|
14
|
+
def expect(&block)
|
15
|
+
block.extend BlockAliases
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
module Rspec # :nodoc:
|
2
|
+
module Expectations # :nodoc:
|
3
|
+
module Version # :nodoc:
|
4
|
+
unless defined?(MAJOR)
|
5
|
+
MAJOR = 2
|
6
|
+
MINOR = 0
|
7
|
+
TINY = 0
|
8
|
+
PRE = 'a2'
|
9
|
+
|
10
|
+
STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.')
|
11
|
+
|
12
|
+
SUMMARY = "rspec-expectations " + STRING
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
data/lib/rspec/matchers.rb
CHANGED
@@ -21,9 +21,7 @@ require 'rspec/matchers/method_missing'
|
|
21
21
|
require 'rspec/matchers/raise_error'
|
22
22
|
require 'rspec/matchers/respond_to'
|
23
23
|
require 'rspec/matchers/satisfy'
|
24
|
-
require 'rspec/matchers/simple_matcher'
|
25
24
|
require 'rspec/matchers/throw_symbol'
|
26
|
-
require 'rspec/matchers/wrap_expectation'
|
27
25
|
require 'rspec/matchers/compatibility'
|
28
26
|
require 'rspec/matchers/dsl'
|
29
27
|
|
data/lib/rspec/matchers/exist.rb
CHANGED
@@ -1,22 +1,30 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
1
|
+
module Rspec
|
2
|
+
module Matchers
|
3
|
+
module InstanceExec
|
4
|
+
unless respond_to?(:instance_exec)
|
5
|
+
# based on Bounded Spec InstanceExec (Mauricio Fernandez)
|
6
|
+
# http://eigenclass.org/hiki/bounded+space+instance_exec
|
7
|
+
# - uses singleton_class of matcher instead of global
|
8
|
+
# InstanceExecHelper module
|
9
|
+
# - this keeps it scoped to this class only, which is the
|
10
|
+
# only place we need it
|
11
|
+
# - only necessary for ruby 1.8.6
|
12
|
+
def instance_exec(*args, &block)
|
13
|
+
singleton_class = (class << self; self; end)
|
14
|
+
begin
|
15
|
+
orig_critical, Thread.critical = Thread.critical, true
|
16
|
+
n = 0
|
17
|
+
n += 1 while respond_to?(method_name="__instance_exec#{n}")
|
18
|
+
singleton_class.module_eval{ define_method(:__instance_exec, &block) }
|
19
|
+
ensure
|
20
|
+
Thread.critical = orig_critical
|
21
|
+
end
|
22
|
+
begin
|
23
|
+
return send(:__instance_exec, *args)
|
24
|
+
ensure
|
25
|
+
singleton_class.module_eval{ remove_method(:__instance_exec) } rescue nil
|
26
|
+
end
|
27
|
+
end
|
20
28
|
end
|
21
29
|
end
|
22
30
|
end
|
@@ -17,28 +17,29 @@ module Rspec
|
|
17
17
|
# "spread".should include("read")
|
18
18
|
# "spread".should_not include("red")
|
19
19
|
def include(*expected)
|
20
|
-
Matcher.new :include, *expected do |*
|
20
|
+
Matcher.new :include, *expected do |*_expected|
|
21
21
|
match do |actual|
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
if actual.is_a?(Hash)
|
28
|
-
if expected.is_a?(Hash)
|
29
|
-
expected.each_pair do |k,v|
|
30
|
-
return false unless actual[k] == v
|
31
|
-
end
|
32
|
-
else
|
33
|
-
return false unless actual.has_key?(expected)
|
34
|
-
end
|
22
|
+
_expected.all? do |expected|
|
23
|
+
if comparing_hash_values?(actual, expected)
|
24
|
+
expected.all? {|k,v| actual[k] == v}
|
25
|
+
elsif comparing_hash_keys?(actual, expected)
|
26
|
+
actual.has_key?(expected)
|
35
27
|
else
|
36
|
-
|
28
|
+
actual.include?(expected)
|
37
29
|
end
|
38
30
|
end
|
39
|
-
true
|
40
31
|
end
|
32
|
+
|
33
|
+
def comparing_hash_keys?(actual, expected)
|
34
|
+
actual.is_a?(Hash) && !expected.is_a?(Hash)
|
35
|
+
end
|
36
|
+
|
37
|
+
def comparing_hash_values?(actual, expected)
|
38
|
+
actual.is_a?(Hash) && expected.is_a?(Hash)
|
39
|
+
end
|
40
|
+
|
41
41
|
end
|
42
|
+
|
42
43
|
end
|
43
44
|
end
|
44
45
|
end
|
@@ -1,15 +1,18 @@
|
|
1
1
|
module Rspec
|
2
2
|
module Matchers
|
3
3
|
class Matcher
|
4
|
+
include Rspec::Matchers::InstanceExec
|
4
5
|
include Rspec::Matchers::Pretty
|
5
|
-
|
6
|
+
include Rspec::Matchers
|
7
|
+
|
6
8
|
attr_reader :expected, :actual
|
7
|
-
|
9
|
+
|
8
10
|
def initialize(name, *expected, &declarations)
|
9
11
|
@name = name
|
10
12
|
@expected = expected
|
11
13
|
@actual = nil
|
12
14
|
@diffable = false
|
15
|
+
@expected_exception = nil
|
13
16
|
@messages = {
|
14
17
|
:description => lambda {"#{name_to_sentence}#{expected_to_sentence}"},
|
15
18
|
:failure_message_for_should => lambda {|actual| "expected #{actual.inspect} to #{name_to_sentence}#{expected_to_sentence}"},
|
@@ -19,36 +22,72 @@ module Rspec
|
|
19
22
|
instance_exec(*@expected, &declarations)
|
20
23
|
end
|
21
24
|
end
|
22
|
-
|
25
|
+
|
26
|
+
#Used internally by objects returns by +should+ and +should_not+.
|
23
27
|
def matches?(actual)
|
24
28
|
@actual = actual
|
25
|
-
|
29
|
+
if @expected_exception
|
30
|
+
begin
|
31
|
+
instance_exec(actual, &@match_block)
|
32
|
+
true
|
33
|
+
rescue @expected_exception
|
34
|
+
false
|
35
|
+
end
|
36
|
+
else
|
37
|
+
begin
|
38
|
+
instance_exec(actual, &@match_block)
|
39
|
+
rescue Rspec::Expectations::ExpectationNotMetError
|
40
|
+
false
|
41
|
+
end
|
42
|
+
end
|
26
43
|
end
|
27
|
-
|
28
|
-
|
29
|
-
|
44
|
+
|
45
|
+
# See Rspec::Matchers
|
46
|
+
def match(&block)
|
47
|
+
@match_block = block
|
30
48
|
end
|
31
|
-
|
49
|
+
|
50
|
+
# See Rspec::Matchers
|
51
|
+
def match_unless_raises(exception=Exception, &block)
|
52
|
+
@expected_exception = exception
|
53
|
+
match(&block)
|
54
|
+
end
|
55
|
+
|
56
|
+
# See Rspec::Matchers
|
32
57
|
def failure_message_for_should(&block)
|
33
|
-
cache_or_call_cached(:failure_message_for_should,
|
58
|
+
cache_or_call_cached(:failure_message_for_should, &block)
|
34
59
|
end
|
35
|
-
|
60
|
+
|
61
|
+
# See Rspec::Matchers
|
36
62
|
def failure_message_for_should_not(&block)
|
37
|
-
cache_or_call_cached(:failure_message_for_should_not,
|
63
|
+
cache_or_call_cached(:failure_message_for_should_not, &block)
|
38
64
|
end
|
39
|
-
|
40
|
-
|
41
|
-
|
65
|
+
|
66
|
+
# See Rspec::Matchers
|
67
|
+
def description(&block)
|
68
|
+
cache_or_call_cached(:description, &block)
|
42
69
|
end
|
43
|
-
|
70
|
+
|
71
|
+
#Used internally by objects returns by +should+ and +should_not+.
|
44
72
|
def diffable?
|
45
73
|
@diffable
|
46
74
|
end
|
47
|
-
|
75
|
+
|
76
|
+
# See Rspec::Matchers
|
48
77
|
def diffable
|
49
78
|
@diffable = true
|
50
79
|
end
|
51
|
-
|
80
|
+
|
81
|
+
# See Rspec::Matchers
|
82
|
+
def chain(method, &block)
|
83
|
+
self.class.class_eval do
|
84
|
+
define_method method do |*args|
|
85
|
+
block.call(*args)
|
86
|
+
self
|
87
|
+
end
|
88
|
+
end
|
89
|
+
end
|
90
|
+
|
52
91
|
private
|
53
92
|
|
54
93
|
def making_declared_methods_public # :nodoc:
|
@@ -56,7 +95,7 @@ module Rspec
|
|
56
95
|
# declared in the block eval'd by instance_exec in the block to which we
|
57
96
|
# are yielding here are scoped private. This is NOT the case for Ruby
|
58
97
|
# 1.8.7 or 1.9.
|
59
|
-
#
|
98
|
+
#
|
60
99
|
# Also, due some crazy scoping that I don't understand, these methods
|
61
100
|
# are actually available in the specs (something about the matcher being
|
62
101
|
# defined in the scope of Rspec::Matchers or within an example), so not
|
@@ -68,19 +107,26 @@ module Rspec
|
|
68
107
|
(private_methods - orig_private_methods).each {|m| st.__send__ :public, m}
|
69
108
|
end
|
70
109
|
|
71
|
-
def cache_or_call_cached(key,
|
72
|
-
block ?
|
73
|
-
|
110
|
+
def cache_or_call_cached(key, &block)
|
111
|
+
block ? cache(key, &block) : call_cached(key)
|
112
|
+
end
|
113
|
+
|
114
|
+
def cache(key, &block)
|
115
|
+
@messages[key] = block
|
116
|
+
end
|
117
|
+
|
118
|
+
def call_cached(key)
|
119
|
+
@messages[key].arity == 1 ? @messages[key].call(@actual) : @messages[key].call
|
74
120
|
end
|
75
|
-
|
121
|
+
|
76
122
|
def name_to_sentence
|
77
123
|
split_words(@name)
|
78
124
|
end
|
79
|
-
|
125
|
+
|
80
126
|
def expected_to_sentence
|
81
127
|
to_sentence(@expected)
|
82
128
|
end
|
83
|
-
|
129
|
+
|
84
130
|
end
|
85
131
|
end
|
86
|
-
end
|
132
|
+
end
|
data/rspec-expectations.gemspec
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
# Generated by jeweler
|
2
|
-
# DO NOT EDIT THIS FILE
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{rspec-expectations}
|
8
|
-
s.version = "2.0.0.
|
8
|
+
s.version = "2.0.0.a2"
|
9
9
|
|
10
|
-
s.required_rubygems_version = Gem::Requirement.new("
|
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{
|
12
|
+
s.date = %q{2010-01-24}
|
13
13
|
s.email = %q{dchelimsky@gmail.com;chad.humphries@gmail.com}
|
14
14
|
s.extra_rdoc_files = [
|
15
15
|
"README.markdown"
|
@@ -20,16 +20,17 @@ Gem::Specification.new do |s|
|
|
20
20
|
"License.txt",
|
21
21
|
"README.markdown",
|
22
22
|
"Rakefile",
|
23
|
-
"
|
24
|
-
"VERSION.yml",
|
23
|
+
"Upgrade.markdown",
|
25
24
|
"lib/rspec/expectations.rb",
|
26
25
|
"lib/rspec/expectations/differs/default.rb",
|
27
26
|
"lib/rspec/expectations/differs/load-diff-lcs.rb",
|
28
27
|
"lib/rspec/expectations/errors.rb",
|
29
28
|
"lib/rspec/expectations/extensions.rb",
|
30
29
|
"lib/rspec/expectations/extensions/kernel.rb",
|
30
|
+
"lib/rspec/expectations/extensions/rspec/core/example_group.rb",
|
31
31
|
"lib/rspec/expectations/fail_with.rb",
|
32
32
|
"lib/rspec/expectations/handler.rb",
|
33
|
+
"lib/rspec/expectations/version.rb",
|
33
34
|
"lib/rspec/matchers.rb",
|
34
35
|
"lib/rspec/matchers/be.rb",
|
35
36
|
"lib/rspec/matchers/be_close.rb",
|
@@ -56,23 +57,45 @@ Gem::Specification.new do |s|
|
|
56
57
|
"lib/rspec/matchers/raise_error.rb",
|
57
58
|
"lib/rspec/matchers/respond_to.rb",
|
58
59
|
"lib/rspec/matchers/satisfy.rb",
|
59
|
-
"lib/rspec/matchers/simple_matcher.rb",
|
60
60
|
"lib/rspec/matchers/throw_symbol.rb",
|
61
|
-
"lib/rspec/matchers/wrap_expectation.rb",
|
62
61
|
"rspec-expectations.gemspec",
|
63
62
|
"spec/rspec/expectations/differs/default_spec.rb",
|
64
63
|
"spec/rspec/expectations/extensions/kernel_spec.rb",
|
65
64
|
"spec/rspec/expectations/fail_with_spec.rb",
|
66
65
|
"spec/rspec/expectations/handler_spec.rb",
|
67
|
-
"spec/rspec/
|
66
|
+
"spec/rspec/matchers/be_close_spec.rb",
|
67
|
+
"spec/rspec/matchers/be_instance_of_spec.rb",
|
68
|
+
"spec/rspec/matchers/be_kind_of_spec.rb",
|
69
|
+
"spec/rspec/matchers/be_spec.rb",
|
70
|
+
"spec/rspec/matchers/change_spec.rb",
|
71
|
+
"spec/rspec/matchers/compatibility_spec.rb",
|
72
|
+
"spec/rspec/matchers/description_generation_spec.rb",
|
73
|
+
"spec/rspec/matchers/dsl_spec.rb",
|
74
|
+
"spec/rspec/matchers/eql_spec.rb",
|
75
|
+
"spec/rspec/matchers/equal_spec.rb",
|
76
|
+
"spec/rspec/matchers/exist_spec.rb",
|
77
|
+
"spec/rspec/matchers/has_spec.rb",
|
78
|
+
"spec/rspec/matchers/have_spec.rb",
|
79
|
+
"spec/rspec/matchers/include_spec.rb",
|
80
|
+
"spec/rspec/matchers/match_array_spec.rb",
|
81
|
+
"spec/rspec/matchers/match_spec.rb",
|
82
|
+
"spec/rspec/matchers/matcher_methods_spec.rb",
|
83
|
+
"spec/rspec/matchers/matcher_spec.rb",
|
84
|
+
"spec/rspec/matchers/matchers_spec.rb",
|
85
|
+
"spec/rspec/matchers/operator_matcher_spec.rb",
|
86
|
+
"spec/rspec/matchers/raise_error_spec.rb",
|
87
|
+
"spec/rspec/matchers/respond_to_spec.rb",
|
88
|
+
"spec/rspec/matchers/satisfy_spec.rb",
|
89
|
+
"spec/rspec/matchers/throw_symbol_spec.rb",
|
68
90
|
"spec/spec.opts",
|
69
91
|
"spec/spec_helper.rb",
|
70
92
|
"spec/suite.rb",
|
71
|
-
"spec/support/
|
93
|
+
"spec/support/classes.rb"
|
72
94
|
]
|
73
95
|
s.homepage = %q{http://github.com/rspec/expectations}
|
74
96
|
s.rdoc_options = ["--charset=UTF-8"]
|
75
97
|
s.require_paths = ["lib"]
|
98
|
+
s.rubyforge_project = %q{rspec}
|
76
99
|
s.rubygems_version = %q{1.3.5}
|
77
100
|
s.summary = %q{rspec expectations (should[_not] and matchers)}
|
78
101
|
s.test_files = [
|
@@ -80,10 +103,33 @@ Gem::Specification.new do |s|
|
|
80
103
|
"spec/rspec/expectations/extensions/kernel_spec.rb",
|
81
104
|
"spec/rspec/expectations/fail_with_spec.rb",
|
82
105
|
"spec/rspec/expectations/handler_spec.rb",
|
83
|
-
"spec/rspec/
|
106
|
+
"spec/rspec/matchers/be_close_spec.rb",
|
107
|
+
"spec/rspec/matchers/be_instance_of_spec.rb",
|
108
|
+
"spec/rspec/matchers/be_kind_of_spec.rb",
|
109
|
+
"spec/rspec/matchers/be_spec.rb",
|
110
|
+
"spec/rspec/matchers/change_spec.rb",
|
111
|
+
"spec/rspec/matchers/compatibility_spec.rb",
|
112
|
+
"spec/rspec/matchers/description_generation_spec.rb",
|
113
|
+
"spec/rspec/matchers/dsl_spec.rb",
|
114
|
+
"spec/rspec/matchers/eql_spec.rb",
|
115
|
+
"spec/rspec/matchers/equal_spec.rb",
|
116
|
+
"spec/rspec/matchers/exist_spec.rb",
|
117
|
+
"spec/rspec/matchers/has_spec.rb",
|
118
|
+
"spec/rspec/matchers/have_spec.rb",
|
119
|
+
"spec/rspec/matchers/include_spec.rb",
|
120
|
+
"spec/rspec/matchers/match_array_spec.rb",
|
121
|
+
"spec/rspec/matchers/match_spec.rb",
|
122
|
+
"spec/rspec/matchers/matcher_methods_spec.rb",
|
123
|
+
"spec/rspec/matchers/matcher_spec.rb",
|
124
|
+
"spec/rspec/matchers/matchers_spec.rb",
|
125
|
+
"spec/rspec/matchers/operator_matcher_spec.rb",
|
126
|
+
"spec/rspec/matchers/raise_error_spec.rb",
|
127
|
+
"spec/rspec/matchers/respond_to_spec.rb",
|
128
|
+
"spec/rspec/matchers/satisfy_spec.rb",
|
129
|
+
"spec/rspec/matchers/throw_symbol_spec.rb",
|
84
130
|
"spec/spec_helper.rb",
|
85
131
|
"spec/suite.rb",
|
86
|
-
"spec/support/
|
132
|
+
"spec/support/classes.rb"
|
87
133
|
]
|
88
134
|
|
89
135
|
if s.respond_to? :specification_version then
|
@@ -91,14 +137,15 @@ Gem::Specification.new do |s|
|
|
91
137
|
s.specification_version = 3
|
92
138
|
|
93
139
|
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
94
|
-
s.add_development_dependency(%q<rspec-core>, [">= 2.0.0.
|
95
|
-
s.add_development_dependency(%q<rspec-mocks>, [">= 2.0.0.
|
140
|
+
s.add_development_dependency(%q<rspec-core>, [">= 2.0.0.a2"])
|
141
|
+
s.add_development_dependency(%q<rspec-mocks>, [">= 2.0.0.a2"])
|
96
142
|
else
|
97
|
-
s.add_dependency(%q<rspec-core>, [">= 2.0.0.
|
98
|
-
s.add_dependency(%q<rspec-mocks>, [">= 2.0.0.
|
143
|
+
s.add_dependency(%q<rspec-core>, [">= 2.0.0.a2"])
|
144
|
+
s.add_dependency(%q<rspec-mocks>, [">= 2.0.0.a2"])
|
99
145
|
end
|
100
146
|
else
|
101
|
-
s.add_dependency(%q<rspec-core>, [">= 2.0.0.
|
102
|
-
s.add_dependency(%q<rspec-mocks>, [">= 2.0.0.
|
147
|
+
s.add_dependency(%q<rspec-core>, [">= 2.0.0.a2"])
|
148
|
+
s.add_dependency(%q<rspec-mocks>, [">= 2.0.0.a2"])
|
103
149
|
end
|
104
150
|
end
|
151
|
+
|