rspec-expectations 2.0.0.beta.12 → 2.0.0.beta.13
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -0
- data/Gemfile +9 -0
- data/Rakefile +3 -0
- data/VERSION +1 -1
- data/features/support/env.rb +17 -2
- data/lib/rspec-expectations.rb +1 -0
- data/rspec-expectations.gemspec +12 -10
- data/spec/rspec/expectations/fail_with_spec.rb +1 -1
- data/spec/rspec/matchers/be_spec.rb +1 -0
- data/spec/rspec/matchers/matcher_spec.rb +3 -3
- metadata +31 -29
data/.gitignore
CHANGED
data/Gemfile
ADDED
data/Rakefile
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.0.0.beta.
|
1
|
+
2.0.0.beta.13
|
data/features/support/env.rb
CHANGED
@@ -1,5 +1,20 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
require 'bundler'
|
2
|
+
Bundler.setup
|
3
|
+
|
3
4
|
require 'aruba'
|
5
|
+
require 'rspec/expectations'
|
6
|
+
|
7
|
+
module ArubaOverrides
|
8
|
+
def detect_ruby_script(cmd)
|
9
|
+
if cmd =~ /^rspec /
|
10
|
+
"bundle exec ../../../rspec-core/bin/#{cmd}"
|
11
|
+
elsif cmd =~ /^ruby /
|
12
|
+
"bundle exec #{cmd}"
|
13
|
+
else
|
14
|
+
super(cmd)
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
4
18
|
|
19
|
+
World(ArubaOverrides)
|
5
20
|
|
@@ -0,0 +1 @@
|
|
1
|
+
require "rspec/expectations"
|
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.13"
|
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-
|
12
|
+
s.date = %q{2010-06-23}
|
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 = [
|
@@ -18,6 +18,7 @@ Gem::Specification.new do |s|
|
|
18
18
|
s.files = [
|
19
19
|
".document",
|
20
20
|
".gitignore",
|
21
|
+
"Gemfile",
|
21
22
|
"License.txt",
|
22
23
|
"README.markdown",
|
23
24
|
"Rakefile",
|
@@ -35,6 +36,7 @@ Gem::Specification.new do |s|
|
|
35
36
|
"features/matchers/expect_change.feature",
|
36
37
|
"features/matchers/expect_error.feature",
|
37
38
|
"features/support/env.rb",
|
39
|
+
"lib/rspec-expectations.rb",
|
38
40
|
"lib/rspec/expectations.rb",
|
39
41
|
"lib/rspec/expectations/backward_compatibility.rb",
|
40
42
|
"lib/rspec/expectations/differ.rb",
|
@@ -110,7 +112,7 @@ Gem::Specification.new do |s|
|
|
110
112
|
s.homepage = %q{http://github.com/rspec/expectations}
|
111
113
|
s.post_install_message = %q{**************************************************
|
112
114
|
|
113
|
-
Thank you for installing rspec-expectations-2.0.0.beta.
|
115
|
+
Thank you for installing rspec-expectations-2.0.0.beta.13
|
114
116
|
|
115
117
|
**************************************************
|
116
118
|
}
|
@@ -118,7 +120,7 @@ Gem::Specification.new do |s|
|
|
118
120
|
s.require_paths = ["lib"]
|
119
121
|
s.rubyforge_project = %q{rspec}
|
120
122
|
s.rubygems_version = %q{1.3.6}
|
121
|
-
s.summary = %q{rspec-expectations-2.0.0.beta.
|
123
|
+
s.summary = %q{rspec-expectations-2.0.0.beta.13}
|
122
124
|
s.test_files = [
|
123
125
|
"spec/rspec/expectations/differ_spec.rb",
|
124
126
|
"spec/rspec/expectations/extensions/kernel_spec.rb",
|
@@ -161,21 +163,21 @@ Gem::Specification.new do |s|
|
|
161
163
|
s.add_runtime_dependency(%q<diff-lcs>, [">= 1.1.2"])
|
162
164
|
s.add_development_dependency(%q<cucumber>, [">= 0.6.2"])
|
163
165
|
s.add_development_dependency(%q<aruba>, [">= 0.1.1"])
|
164
|
-
s.add_development_dependency(%q<rspec-core>, [">= 2.0.0.beta.
|
165
|
-
s.add_development_dependency(%q<rspec-mocks>, [">= 2.0.0.beta.
|
166
|
+
s.add_development_dependency(%q<rspec-core>, [">= 2.0.0.beta.13"])
|
167
|
+
s.add_development_dependency(%q<rspec-mocks>, [">= 2.0.0.beta.13"])
|
166
168
|
else
|
167
169
|
s.add_dependency(%q<diff-lcs>, [">= 1.1.2"])
|
168
170
|
s.add_dependency(%q<cucumber>, [">= 0.6.2"])
|
169
171
|
s.add_dependency(%q<aruba>, [">= 0.1.1"])
|
170
|
-
s.add_dependency(%q<rspec-core>, [">= 2.0.0.beta.
|
171
|
-
s.add_dependency(%q<rspec-mocks>, [">= 2.0.0.beta.
|
172
|
+
s.add_dependency(%q<rspec-core>, [">= 2.0.0.beta.13"])
|
173
|
+
s.add_dependency(%q<rspec-mocks>, [">= 2.0.0.beta.13"])
|
172
174
|
end
|
173
175
|
else
|
174
176
|
s.add_dependency(%q<diff-lcs>, [">= 1.1.2"])
|
175
177
|
s.add_dependency(%q<cucumber>, [">= 0.6.2"])
|
176
178
|
s.add_dependency(%q<aruba>, [">= 0.1.1"])
|
177
|
-
s.add_dependency(%q<rspec-core>, [">= 2.0.0.beta.
|
178
|
-
s.add_dependency(%q<rspec-mocks>, [">= 2.0.0.beta.
|
179
|
+
s.add_dependency(%q<rspec-core>, [">= 2.0.0.beta.13"])
|
180
|
+
s.add_dependency(%q<rspec-mocks>, [">= 2.0.0.beta.13"])
|
179
181
|
end
|
180
182
|
end
|
181
183
|
|
@@ -22,7 +22,7 @@ describe RSpec::Expectations, "#fail_with with diff" do
|
|
22
22
|
|
23
23
|
it "does not call differ if expected/actual are single line strings" do
|
24
24
|
differ.should_not_receive(:diff_as_string)
|
25
|
-
RSpec::Expectations.fail_with
|
25
|
+
RSpec::Expectations.fail_with("the message", "expected", "actual") rescue nil
|
26
26
|
end
|
27
27
|
|
28
28
|
it "calls differ if expected/actual are not strings" do
|
@@ -420,6 +420,7 @@ end
|
|
420
420
|
|
421
421
|
describe "arbitrary predicate with DelegateClass" do
|
422
422
|
it "should access methods defined in the delegating class (LH[#48])" do
|
423
|
+
pending("this fails in 1.9.2-preview3") unless RUBY_VERSION.to_s =~ /^1.8/
|
423
424
|
require 'delegate'
|
424
425
|
class ArrayDelegate < DelegateClass(Array)
|
425
426
|
def initialize(array)
|
@@ -302,13 +302,13 @@ module RSpec
|
|
302
302
|
"method defined in the example"
|
303
303
|
end
|
304
304
|
|
305
|
-
it "can access methods in the
|
305
|
+
it "can access methods in the running example" do
|
306
306
|
RSpec::Matchers.define(:__access_running_example) do
|
307
307
|
match do |actual|
|
308
308
|
a_method_in_the_example == "method defined in the example"
|
309
309
|
end
|
310
310
|
end
|
311
|
-
|
311
|
+
example.should __access_running_example
|
312
312
|
end
|
313
313
|
|
314
314
|
it "raises NoMethodError for methods not in the running_example" do
|
@@ -319,7 +319,7 @@ module RSpec
|
|
319
319
|
end
|
320
320
|
|
321
321
|
expect do
|
322
|
-
|
322
|
+
example.should __raise_no_method_error
|
323
323
|
end.to raise_error(/RSpec::Matchers::Matcher/)
|
324
324
|
end
|
325
325
|
end
|
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
|
+
- 13
|
11
|
+
version: 2.0.0.beta.13
|
12
12
|
platform: ruby
|
13
13
|
authors:
|
14
14
|
- David Chelimsky
|
@@ -17,13 +17,13 @@ autorequire:
|
|
17
17
|
bindir: bin
|
18
18
|
cert_chain: []
|
19
19
|
|
20
|
-
date: 2010-06-
|
20
|
+
date: 2010-06-23 00:00:00 -05:00
|
21
21
|
default_executable:
|
22
22
|
dependencies:
|
23
23
|
- !ruby/object:Gem::Dependency
|
24
|
+
type: :runtime
|
24
25
|
name: diff-lcs
|
25
|
-
|
26
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
26
|
+
version_requirements: &id001 !ruby/object:Gem::Requirement
|
27
27
|
requirements:
|
28
28
|
- - ">="
|
29
29
|
- !ruby/object:Gem::Version
|
@@ -32,12 +32,12 @@ dependencies:
|
|
32
32
|
- 1
|
33
33
|
- 2
|
34
34
|
version: 1.1.2
|
35
|
-
|
36
|
-
|
35
|
+
requirement: *id001
|
36
|
+
prerelease: false
|
37
37
|
- !ruby/object:Gem::Dependency
|
38
|
+
type: :development
|
38
39
|
name: cucumber
|
39
|
-
|
40
|
-
requirement: &id002 !ruby/object:Gem::Requirement
|
40
|
+
version_requirements: &id002 !ruby/object:Gem::Requirement
|
41
41
|
requirements:
|
42
42
|
- - ">="
|
43
43
|
- !ruby/object:Gem::Version
|
@@ -46,12 +46,12 @@ dependencies:
|
|
46
46
|
- 6
|
47
47
|
- 2
|
48
48
|
version: 0.6.2
|
49
|
-
|
50
|
-
|
49
|
+
requirement: *id002
|
50
|
+
prerelease: false
|
51
51
|
- !ruby/object:Gem::Dependency
|
52
|
+
type: :development
|
52
53
|
name: aruba
|
53
|
-
|
54
|
-
requirement: &id003 !ruby/object:Gem::Requirement
|
54
|
+
version_requirements: &id003 !ruby/object:Gem::Requirement
|
55
55
|
requirements:
|
56
56
|
- - ">="
|
57
57
|
- !ruby/object:Gem::Version
|
@@ -60,12 +60,12 @@ dependencies:
|
|
60
60
|
- 1
|
61
61
|
- 1
|
62
62
|
version: 0.1.1
|
63
|
-
|
64
|
-
|
63
|
+
requirement: *id003
|
64
|
+
prerelease: false
|
65
65
|
- !ruby/object:Gem::Dependency
|
66
|
+
type: :development
|
66
67
|
name: rspec-core
|
67
|
-
|
68
|
-
requirement: &id004 !ruby/object:Gem::Requirement
|
68
|
+
version_requirements: &id004 !ruby/object:Gem::Requirement
|
69
69
|
requirements:
|
70
70
|
- - ">="
|
71
71
|
- !ruby/object:Gem::Version
|
@@ -74,14 +74,14 @@ dependencies:
|
|
74
74
|
- 0
|
75
75
|
- 0
|
76
76
|
- beta
|
77
|
-
-
|
78
|
-
version: 2.0.0.beta.
|
79
|
-
|
80
|
-
|
77
|
+
- 13
|
78
|
+
version: 2.0.0.beta.13
|
79
|
+
requirement: *id004
|
80
|
+
prerelease: false
|
81
81
|
- !ruby/object:Gem::Dependency
|
82
|
+
type: :development
|
82
83
|
name: rspec-mocks
|
83
|
-
|
84
|
-
requirement: &id005 !ruby/object:Gem::Requirement
|
84
|
+
version_requirements: &id005 !ruby/object:Gem::Requirement
|
85
85
|
requirements:
|
86
86
|
- - ">="
|
87
87
|
- !ruby/object:Gem::Version
|
@@ -90,10 +90,10 @@ dependencies:
|
|
90
90
|
- 0
|
91
91
|
- 0
|
92
92
|
- beta
|
93
|
-
-
|
94
|
-
version: 2.0.0.beta.
|
95
|
-
|
96
|
-
|
93
|
+
- 13
|
94
|
+
version: 2.0.0.beta.13
|
95
|
+
requirement: *id005
|
96
|
+
prerelease: false
|
97
97
|
description: rspec expectations (should[_not] and matchers)
|
98
98
|
email: dchelimsky@gmail.com;chad.humphries@gmail.com
|
99
99
|
executables: []
|
@@ -105,6 +105,7 @@ extra_rdoc_files:
|
|
105
105
|
files:
|
106
106
|
- .document
|
107
107
|
- .gitignore
|
108
|
+
- Gemfile
|
108
109
|
- License.txt
|
109
110
|
- README.markdown
|
110
111
|
- Rakefile
|
@@ -122,6 +123,7 @@ files:
|
|
122
123
|
- features/matchers/expect_change.feature
|
123
124
|
- features/matchers/expect_error.feature
|
124
125
|
- features/support/env.rb
|
126
|
+
- lib/rspec-expectations.rb
|
125
127
|
- lib/rspec/expectations.rb
|
126
128
|
- lib/rspec/expectations/backward_compatibility.rb
|
127
129
|
- lib/rspec/expectations/differ.rb
|
@@ -200,7 +202,7 @@ licenses: []
|
|
200
202
|
post_install_message: |
|
201
203
|
**************************************************
|
202
204
|
|
203
|
-
Thank you for installing rspec-expectations-2.0.0.beta.
|
205
|
+
Thank you for installing rspec-expectations-2.0.0.beta.13
|
204
206
|
|
205
207
|
**************************************************
|
206
208
|
|
@@ -230,7 +232,7 @@ rubyforge_project: rspec
|
|
230
232
|
rubygems_version: 1.3.6
|
231
233
|
signing_key:
|
232
234
|
specification_version: 3
|
233
|
-
summary: rspec-expectations-2.0.0.beta.
|
235
|
+
summary: rspec-expectations-2.0.0.beta.13
|
234
236
|
test_files:
|
235
237
|
- spec/rspec/expectations/differ_spec.rb
|
236
238
|
- spec/rspec/expectations/extensions/kernel_spec.rb
|