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.
@@ -1,4 +1,4 @@
1
- === Version 1.3.1 / (Date TBD)
1
+ === Version 1.3.1 / 2010-10-09
2
2
 
3
3
  * enhancements
4
4
  * Array =~ matcher works with subclasses of Array (Matthew Peychich & Pat Maddox)
@@ -46,7 +46,7 @@ module Spec
46
46
  end
47
47
 
48
48
  def implicit_subject
49
- (described_class ? lambda {described_class.new} : lambda {description_args.first})
49
+ (described_class ? proc {described_class.new} : proc {description_args.first})
50
50
  end
51
51
  end
52
52
 
@@ -1,3 +1,5 @@
1
+ require 'test/unit/testsuite'
2
+
1
3
  module Test
2
4
  module Unit
3
5
  class TestSuiteAdapter < TestSuite
@@ -4,7 +4,7 @@ module Spec # :nodoc:
4
4
  MAJOR = 1
5
5
  MINOR = 3
6
6
  TINY = 1
7
- PRE = 'rc'
7
+ PRE = nil
8
8
 
9
9
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.')
10
10
 
@@ -4,7 +4,7 @@ module Spec
4
4
  module Example
5
5
  describe ExampleGroupProxy do
6
6
  before(:each) do
7
- @group = stub("example group").as_null_object
7
+ @group = stub("example group",:nested_descriptions => []).as_null_object
8
8
  end
9
9
 
10
10
  attr_reader :group
@@ -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
- with_ruby 1.8 do
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
- it "should not sort items in the error message if they don't all respond to <=>" do
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 {
@@ -1,3 +1,4 @@
1
+ $: << '.' # for ruby 1.9
1
2
  require 'stringio'
2
3
 
3
4
  $_spec_spec = true # Prevents Kernel.exit in various places
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: 7712022
5
- prerelease: true
4
+ hash: 25
5
+ prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 3
9
9
  - 1
10
- - rc
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-03 00:00:00 -05:00
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.rc
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: 25
562
+ hash: 3
564
563
  segments:
565
- - 1
566
- - 3
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.rc
572
+ summary: rspec 1.3.1
576
573
  test_files: []
577
574