rspec 1.3.1.rc → 1.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/History.rdoc +1 -1
- data/lib/spec/example/subject.rb +1 -1
- data/lib/spec/interop/test/unit/testsuite_adapter.rb +2 -0
- data/lib/spec/version.rb +1 -1
- data/spec/spec/example/example_group_proxy_spec.rb +1 -1
- data/spec/spec/example/example_group_spec.rb +1 -12
- data/spec/spec/matchers/match_array_spec.rb +3 -1
- data/spec/spec_helper.rb +1 -0
- metadata +10 -13
data/History.rdoc
CHANGED
data/lib/spec/example/subject.rb
CHANGED
data/lib/spec/version.rb
CHANGED
@@ -19,20 +19,9 @@ module Spec
|
|
19
19
|
@@class_variable = "a class variable"
|
20
20
|
|
21
21
|
it "can access class variables in examples in Ruby 1.8" do
|
22
|
-
|
23
|
-
@@class_variable.should == "a class variable"
|
24
|
-
end
|
22
|
+
@@class_variable.should == "a class variable"
|
25
23
|
end
|
26
24
|
|
27
|
-
it "can NOT access class variables in examples in Ruby 1.9" do
|
28
|
-
with_ruby 1.9 do
|
29
|
-
lambda do
|
30
|
-
@@class_variable.should == "a class variable"
|
31
|
-
end.should raise_error(NameError)
|
32
|
-
end
|
33
|
-
end
|
34
|
-
|
35
|
-
|
36
25
|
end
|
37
26
|
|
38
27
|
class ExampleClassVariablePollutionSpec < ExampleGroup
|
@@ -66,7 +66,8 @@ the extra elements were: [5, 6]
|
|
66
66
|
MESSAGE
|
67
67
|
end
|
68
68
|
|
69
|
-
|
69
|
+
it "should not sort items in the error message if they don't all respond to <=>" do
|
70
|
+
with_ruby 1.8 do
|
70
71
|
lambda {
|
71
72
|
[UnsortableObject.new(2), UnsortableObject.new(1)].should =~ [UnsortableObject.new(4), UnsortableObject.new(3)]
|
72
73
|
}.should fail_with(<<-MESSAGE)
|
@@ -76,6 +77,7 @@ the missing elements were: [4, 3]
|
|
76
77
|
the extra elements were: [2, 1]
|
77
78
|
MESSAGE
|
78
79
|
end
|
80
|
+
end
|
79
81
|
|
80
82
|
it "should accurately report extra elements when there are duplicates" do
|
81
83
|
lambda {
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
5
|
-
prerelease:
|
4
|
+
hash: 25
|
5
|
+
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 3
|
9
9
|
- 1
|
10
|
-
|
11
|
-
version: 1.3.1.rc
|
10
|
+
version: 1.3.1
|
12
11
|
platform: ruby
|
13
12
|
authors:
|
14
13
|
- RSpec Development Team
|
@@ -16,7 +15,7 @@ autorequire:
|
|
16
15
|
bindir: bin
|
17
16
|
cert_chain: []
|
18
17
|
|
19
|
-
date: 2010-10-
|
18
|
+
date: 2010-10-09 00:00:00 -05:00
|
20
19
|
default_executable:
|
21
20
|
dependencies:
|
22
21
|
- !ruby/object:Gem::Dependency
|
@@ -534,7 +533,7 @@ licenses: []
|
|
534
533
|
post_install_message: |
|
535
534
|
**************************************************
|
536
535
|
|
537
|
-
Thank you for installing rspec-1.3.1
|
536
|
+
Thank you for installing rspec-1.3.1
|
538
537
|
|
539
538
|
Please be sure to read History.rdoc and Upgrade.rdoc
|
540
539
|
for useful information about this release.
|
@@ -558,20 +557,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
558
557
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
559
558
|
none: false
|
560
559
|
requirements:
|
561
|
-
- - "
|
560
|
+
- - ">="
|
562
561
|
- !ruby/object:Gem::Version
|
563
|
-
hash:
|
562
|
+
hash: 3
|
564
563
|
segments:
|
565
|
-
-
|
566
|
-
|
567
|
-
- 1
|
568
|
-
version: 1.3.1
|
564
|
+
- 0
|
565
|
+
version: "0"
|
569
566
|
requirements: []
|
570
567
|
|
571
568
|
rubyforge_project: rspec
|
572
569
|
rubygems_version: 1.3.7
|
573
570
|
signing_key:
|
574
571
|
specification_version: 3
|
575
|
-
summary: rspec 1.3.1
|
572
|
+
summary: rspec 1.3.1
|
576
573
|
test_files: []
|
577
574
|
|