rspec-core 2.0.1 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +8 -3
- data/Guardfile +5 -0
- data/History.markdown +32 -2
- data/README.markdown +10 -3
- data/Rakefile +12 -13
- data/Upgrade.markdown +175 -121
- data/bin/autospec +13 -0
- data/bin/rspec +24 -1
- data/features/command_line/line_number_appended_to_path.feature +3 -1
- data/features/command_line/line_number_option.feature +3 -1
- data/features/command_line/tag.feature +74 -0
- data/features/filtering/exclusion_filters.feature +1 -1
- data/features/filtering/implicit_filters.feature +166 -0
- data/features/hooks/around_hooks.feature +51 -44
- data/features/metadata/described_class.feature +3 -0
- data/features/pending/pending_examples.feature +76 -0
- data/features/step_definitions/additional_cli_steps.rb +11 -0
- data/features/subject/attribute_of_subject.feature +8 -0
- data/features/subject/explicit_subject.feature +8 -13
- data/features/subject/implicit_receiver.feature +29 -0
- data/features/subject/implicit_subject.feature +6 -7
- data/lib/rspec/core.rb +3 -21
- data/lib/rspec/core/backward_compatibility.rb +22 -3
- data/lib/rspec/core/command_line.rb +1 -0
- data/lib/rspec/core/configuration.rb +34 -6
- data/lib/rspec/core/configuration_options.rb +1 -3
- data/lib/rspec/core/example.rb +0 -5
- data/lib/rspec/core/example_group.rb +9 -8
- data/lib/rspec/core/expecting/with_rspec.rb +11 -0
- data/lib/rspec/core/extensions/object.rb +1 -1
- data/lib/rspec/core/formatters/base_formatter.rb +1 -6
- data/lib/rspec/core/hooks.rb +1 -1
- data/lib/rspec/core/metadata.rb +15 -5
- data/lib/rspec/core/option_parser.rb +17 -0
- data/lib/rspec/core/pending.rb +10 -1
- data/lib/rspec/core/rake_task.rb +32 -10
- data/lib/rspec/core/reporter.rb +1 -0
- data/lib/rspec/core/subject.rb +58 -59
- data/lib/rspec/core/version.rb +1 -1
- data/lib/rspec/core/world.rb +9 -4
- data/rspec-core.gemspec +4 -11
- data/spec/rspec/core/command_line_spec.rb +16 -5
- data/spec/rspec/core/configuration_options_spec.rb +6 -0
- data/spec/rspec/core/configuration_spec.rb +89 -6
- data/spec/rspec/core/deprecations_spec.rb +17 -1
- data/spec/rspec/core/example_group_spec.rb +29 -14
- data/spec/rspec/core/example_spec.rb +0 -7
- data/spec/rspec/core/formatters/html_formatted-1.8.6.html +49 -33
- data/spec/rspec/core/formatters/html_formatted-1.8.7.html +5 -5
- data/spec/rspec/core/formatters/html_formatted-1.9.1.html +46 -26
- data/spec/rspec/core/formatters/html_formatted-1.9.2.html +5 -5
- data/spec/rspec/core/formatters/text_mate_formatted-1.8.6.html +49 -33
- data/spec/rspec/core/formatters/text_mate_formatted-1.8.7.html +19 -19
- data/spec/rspec/core/formatters/text_mate_formatted-1.9.1.html +56 -33
- data/spec/rspec/core/formatters/text_mate_formatted-1.9.2.html +26 -38
- data/spec/rspec/core/metadata_spec.rb +153 -132
- data/spec/rspec/core/pending_example_spec.rb +133 -25
- data/spec/rspec/core/rake_task_spec.rb +25 -32
- data/spec/rspec/core/subject_spec.rb +15 -0
- data/spec/rspec/core/world_spec.rb +72 -61
- data/spec/spec_helper.rb +0 -14
- metadata +25 -135
- data/features/hooks/halt.feature +0 -26
@@ -10,6 +10,7 @@ module RSpec::Core
|
|
10
10
|
end
|
11
11
|
|
12
12
|
def with_bundler
|
13
|
+
task.skip_bundler = false
|
13
14
|
File.stub(:exist?) { true }
|
14
15
|
yield
|
15
16
|
end
|
@@ -30,9 +31,28 @@ module RSpec::Core
|
|
30
31
|
end
|
31
32
|
|
32
33
|
context "with bundler" do
|
33
|
-
|
34
|
-
|
35
|
-
|
34
|
+
context "with Gemfile" do
|
35
|
+
it "renders bundle exec rspec" do
|
36
|
+
File.stub(:exist?) { true }
|
37
|
+
task.skip_bundler = false
|
38
|
+
spec_command.should match(/bundle exec/)
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
context "with non-standard Gemfile" do
|
43
|
+
it "renders bundle exec rspec" do
|
44
|
+
File.stub(:exist?) {|f| f =~ /AltGemfile/}
|
45
|
+
task.gemfile = 'AltGemfile'
|
46
|
+
task.skip_bundler = false
|
47
|
+
spec_command.should match(/bundle exec/)
|
48
|
+
end
|
49
|
+
end
|
50
|
+
|
51
|
+
context "without Gemfile" do
|
52
|
+
it "renders bundle exec rspec" do
|
53
|
+
File.stub(:exist?) { false }
|
54
|
+
task.skip_bundler = false
|
55
|
+
spec_command.should_not match(/bundle exec/)
|
36
56
|
end
|
37
57
|
end
|
38
58
|
end
|
@@ -55,20 +75,6 @@ module RSpec::Core
|
|
55
75
|
end
|
56
76
|
end
|
57
77
|
|
58
|
-
context "with warnings on" do
|
59
|
-
before { RSpec.stub(:deprecate) }
|
60
|
-
|
61
|
-
it "renders -w before the -S" do
|
62
|
-
task.warning = true
|
63
|
-
spec_command.should =~ /^-w -S rspec/
|
64
|
-
end
|
65
|
-
|
66
|
-
it "warns about deprecation" do
|
67
|
-
RSpec.should_receive(:deprecate)
|
68
|
-
task.warning = true
|
69
|
-
end
|
70
|
-
end
|
71
|
-
|
72
78
|
context "with ruby options" do
|
73
79
|
it "renders them before -S" do
|
74
80
|
task.ruby_opts = "-w"
|
@@ -91,10 +97,11 @@ module RSpec::Core
|
|
91
97
|
spec_command.should =~ /rcov.*--exclude "mocks"/
|
92
98
|
end
|
93
99
|
|
94
|
-
it "ensures that -Ispec
|
100
|
+
it "ensures that -Ispec and -Ilib are in the resulting command" do
|
95
101
|
task.rcov = true
|
96
102
|
task.rcov_opts = '--exclude "mocks"'
|
97
103
|
spec_command.should =~ /rcov.*-Ispec/
|
104
|
+
spec_command.should =~ /rcov.*-Ilib/
|
98
105
|
end
|
99
106
|
end
|
100
107
|
end
|
@@ -116,20 +123,6 @@ module RSpec::Core
|
|
116
123
|
end
|
117
124
|
end
|
118
125
|
|
119
|
-
context "with spec_opts" do
|
120
|
-
before { RSpec.stub(:deprecate) }
|
121
|
-
|
122
|
-
it "warns about deprecation" do
|
123
|
-
RSpec.should_receive(:deprecate)
|
124
|
-
task.spec_opts = "-Ifoo"
|
125
|
-
end
|
126
|
-
|
127
|
-
it "adds options as rspec_opts" do
|
128
|
-
task.spec_opts = "-Ifoo"
|
129
|
-
spec_command.should =~ /rspec -Ifoo/
|
130
|
-
end
|
131
|
-
end
|
132
|
-
|
133
126
|
context "with SPEC=path/to/file" do
|
134
127
|
before do
|
135
128
|
@orig_spec = ENV["SPEC"]
|
@@ -59,5 +59,20 @@ module RSpec::Core
|
|
59
59
|
end
|
60
60
|
end
|
61
61
|
end
|
62
|
+
|
63
|
+
context "using 'self' as an explicit subject" do
|
64
|
+
it "delegates matcher to the ExampleGroup" do
|
65
|
+
group = ExampleGroup.describe("group") do
|
66
|
+
subject { self }
|
67
|
+
def ok?; true; end
|
68
|
+
|
69
|
+
it { should eq self }
|
70
|
+
it { should be_ok }
|
71
|
+
end
|
72
|
+
|
73
|
+
group.run.should be_true
|
74
|
+
end
|
75
|
+
end
|
76
|
+
|
62
77
|
end
|
63
78
|
end
|
@@ -6,82 +6,93 @@ class Foo; end
|
|
6
6
|
module RSpec::Core
|
7
7
|
|
8
8
|
describe World do
|
9
|
+
let(:world) { RSpec::Core::World.new }
|
9
10
|
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
it "should contain all defined example groups" do
|
17
|
-
group = RSpec::Core::ExampleGroup.describe("group") {}
|
18
|
-
@world.example_groups.should include(group)
|
11
|
+
describe "#example_groups" do
|
12
|
+
it "contains all registered example groups" do
|
13
|
+
group = RSpec::Core::ExampleGroup.describe("group"){}
|
14
|
+
world.register(group)
|
15
|
+
world.example_groups.should include(group)
|
19
16
|
end
|
20
|
-
|
21
17
|
end
|
22
18
|
|
23
|
-
describe "
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
19
|
+
describe "#apply_inclusion_filters" do
|
20
|
+
let(:group1) {
|
21
|
+
RSpec::Core::ExampleGroup.describe(Bar, "find group-1",
|
22
|
+
{ :foo => 1, :color => 'blue', :feature => 'reporting' }
|
23
|
+
) {}
|
24
|
+
}
|
25
|
+
|
26
|
+
let(:group2) {
|
27
|
+
RSpec::Core::ExampleGroup.describe(Bar, "find group-2",
|
28
|
+
{ :pending => true, :feature => 'reporting' }
|
29
|
+
) {}
|
30
|
+
}
|
31
|
+
|
32
|
+
let(:group3) {
|
33
|
+
RSpec::Core::ExampleGroup.describe(Bar, "find group-3",
|
34
|
+
{ :array => [1,2,3,4], :color => 'blue' }
|
35
|
+
) {}
|
36
|
+
}
|
37
|
+
|
38
|
+
let(:group4) {
|
39
|
+
RSpec::Core::ExampleGroup.describe(Foo, "find these examples") do
|
33
40
|
it('I have no options') {}
|
34
41
|
it("this is awesome", :awesome => true) {}
|
35
42
|
it("this is too", :awesome => true) {}
|
36
43
|
it("not so awesome", :awesome => false) {}
|
37
44
|
it("I also have no options") {}
|
38
45
|
end
|
39
|
-
|
40
|
-
|
46
|
+
}
|
47
|
+
|
48
|
+
let(:example_groups) { [group1, group2, group3, group4] }
|
41
49
|
|
42
50
|
it "finds no groups when given no search parameters" do
|
43
|
-
|
51
|
+
world.apply_inclusion_filters([]).should == []
|
44
52
|
end
|
45
53
|
|
46
54
|
it "finds matching groups when filtering on :describes (described class or module)" do
|
47
|
-
|
55
|
+
world.apply_inclusion_filters(example_groups, :example_group => { :describes => Bar }).should == [group1, group2, group3]
|
48
56
|
end
|
49
57
|
|
50
58
|
it "finds matching groups when filtering on :description with text" do
|
51
|
-
|
59
|
+
world.apply_inclusion_filters(example_groups, :example_group => { :description => 'Bar find group-1' }).should == [group1]
|
52
60
|
end
|
53
61
|
|
54
62
|
it "finds matching groups when filtering on :description with a lambda" do
|
55
|
-
|
63
|
+
world.apply_inclusion_filters(example_groups, :example_group => { :description => lambda { |v| v.include?('-1') || v.include?('-3') } }).should == [group1, group3]
|
56
64
|
end
|
57
65
|
|
58
66
|
it "finds matching groups when filtering on :description with a regular expression" do
|
59
|
-
|
67
|
+
world.apply_inclusion_filters(example_groups, :example_group => { :description => /find group/ }).should == [group1, group2, group3]
|
60
68
|
end
|
61
69
|
|
62
70
|
it "finds one group when searching for :pending => true" do
|
63
|
-
|
71
|
+
world.apply_inclusion_filters(example_groups, :pending => true ).should == [group2]
|
64
72
|
end
|
65
73
|
|
66
74
|
it "finds matching groups when filtering on arbitrary metadata with a number" do
|
67
|
-
|
75
|
+
world.apply_inclusion_filters(example_groups, :foo => 1 ).should == [group1]
|
68
76
|
end
|
69
77
|
|
70
78
|
it "finds matching groups when filtering on arbitrary metadata with an array" do
|
71
|
-
|
79
|
+
world.apply_inclusion_filters(example_groups, :array => [1,2,3,4]).should == [group3]
|
72
80
|
end
|
73
81
|
|
74
82
|
it "finds no groups when filtering on arbitrary metadata with an array but the arrays do not match" do
|
75
|
-
|
83
|
+
world.apply_inclusion_filters(example_groups, :array => [4,3,2,1]).should be_empty
|
76
84
|
end
|
77
85
|
|
78
86
|
it "finds matching examples when filtering on arbitrary metadata" do
|
79
|
-
|
87
|
+
world.apply_inclusion_filters(group4.examples, :awesome => true).should == [group4.examples[1], group4.examples[2]]
|
80
88
|
end
|
81
89
|
|
90
|
+
it "finds matching examples for example that match any of the filters" do
|
91
|
+
world.apply_inclusion_filters(group4.examples, :awesome => true, :something => :else).should == [group4.examples[1], group4.examples[2]]
|
92
|
+
end
|
82
93
|
end
|
83
94
|
|
84
|
-
describe "
|
95
|
+
describe "#apply_exclusion_filters" do
|
85
96
|
|
86
97
|
it "finds nothing if all describes match the exclusion filter" do
|
87
98
|
options = { :network_access => true }
|
@@ -91,15 +102,18 @@ module RSpec::Core
|
|
91
102
|
it("bar") {}
|
92
103
|
end
|
93
104
|
|
94
|
-
|
105
|
+
world.register(group1)
|
106
|
+
|
107
|
+
world.apply_exclusion_filters(group1.examples, :network_access => true).should == []
|
95
108
|
|
96
109
|
group2 = ExampleGroup.describe(Bar, "find group-1") do
|
97
110
|
it("foo", :network_access => true) {}
|
98
111
|
it("bar") {}
|
99
112
|
end
|
100
113
|
|
101
|
-
|
114
|
+
world.register(group2)
|
102
115
|
|
116
|
+
world.apply_exclusion_filters(group2.examples, :network_access => true).should == [group2.examples.last]
|
103
117
|
end
|
104
118
|
|
105
119
|
it "finds nothing if a regexp matches the exclusion filter" do
|
@@ -107,57 +121,54 @@ module RSpec::Core
|
|
107
121
|
it("foo") {}
|
108
122
|
it("bar") {}
|
109
123
|
end
|
110
|
-
|
111
|
-
|
112
|
-
|
124
|
+
world.register(group)
|
125
|
+
world.apply_exclusion_filters(group.examples, :name => /exclude/).should == []
|
126
|
+
world.apply_exclusion_filters(group.examples, :name => /exclude/, :another => "foo").should == []
|
127
|
+
world.apply_exclusion_filters(group.examples, :name => /exclude/, :another => "foo", :example_group => {
|
113
128
|
:describes => lambda { |b| b == Bar } } ).should == []
|
114
129
|
|
115
|
-
|
116
|
-
|
117
|
-
|
130
|
+
world.apply_exclusion_filters(group.examples, :name => /exclude not/).should == group.examples
|
131
|
+
world.apply_exclusion_filters(group.examples, :name => /exclude/, "another_condition" => "foo").should == []
|
132
|
+
world.apply_exclusion_filters(group.examples, :name => /exclude/, "another_condition" => "foo1").should == []
|
118
133
|
end
|
119
134
|
end
|
120
135
|
|
136
|
+
describe "#preceding_declaration_line (again)" do
|
137
|
+
|
138
|
+
let(:group) do
|
139
|
+
RSpec::Core::ExampleGroup.describe("group") do
|
121
140
|
|
122
|
-
|
123
|
-
before(:each) do
|
124
|
-
@group1_line = 10
|
125
|
-
@group2_line = 20
|
126
|
-
@group2_example1_line = 30
|
127
|
-
@group2_example2_line = 40
|
141
|
+
example("example") {}
|
128
142
|
|
129
|
-
@group1 = RSpec::Core::ExampleGroup.describe(Bar, "group-1") { }
|
130
|
-
@group2 = RSpec::Core::ExampleGroup.describe(Bar, "group-2") do
|
131
|
-
it('example 1') {}
|
132
|
-
it("example 2") {}
|
133
143
|
end
|
134
|
-
@group1.metadata[:example_group][:line_number] = @group1_line
|
135
|
-
@group2.metadata[:example_group][:line_number] = @group2_line
|
136
|
-
@group2.examples[0].metadata[:line_number] = @group2_example1_line
|
137
|
-
@group2.examples[1].metadata[:line_number] = @group2_example2_line
|
138
144
|
end
|
139
145
|
|
146
|
+
let(:group_declaration_line) { group.metadata[:example_group][:line_number] }
|
147
|
+
let(:example_declaration_line) { group_declaration_line + 2 }
|
148
|
+
|
149
|
+
before { world.register(group) }
|
150
|
+
|
140
151
|
it "returns nil if no example or group precedes the line" do
|
141
|
-
|
152
|
+
world.preceding_declaration_line(group_declaration_line - 1).should be_nil
|
142
153
|
end
|
143
154
|
|
144
155
|
it "returns the argument line number if a group starts on that line" do
|
145
|
-
|
156
|
+
world.preceding_declaration_line(group_declaration_line).should eq(group_declaration_line)
|
146
157
|
end
|
147
158
|
|
148
159
|
it "returns the argument line number if an example starts on that line" do
|
149
|
-
|
160
|
+
world.preceding_declaration_line(example_declaration_line).should eq(example_declaration_line)
|
150
161
|
end
|
151
162
|
|
152
163
|
it "returns line number of a group that immediately precedes the argument line" do
|
153
|
-
|
164
|
+
world.preceding_declaration_line(group_declaration_line + 1).should eq(group_declaration_line)
|
154
165
|
end
|
155
166
|
|
156
167
|
it "returns line number of an example that immediately precedes the argument line" do
|
157
|
-
|
168
|
+
world.preceding_declaration_line(example_declaration_line + 1).should eq(example_declaration_line)
|
158
169
|
end
|
159
|
-
|
160
170
|
end
|
171
|
+
|
161
172
|
end
|
162
173
|
|
163
174
|
end
|
data/spec/spec_helper.rb
CHANGED
@@ -3,20 +3,6 @@ require 'autotest/rspec2'
|
|
3
3
|
|
4
4
|
Dir['./spec/support/**/*.rb'].map {|f| require f}
|
5
5
|
|
6
|
-
module RSpec
|
7
|
-
module Core
|
8
|
-
module Matchers
|
9
|
-
def fail
|
10
|
-
raise_error(::RSpec::Expectations::ExpectationNotMetError)
|
11
|
-
end
|
12
|
-
|
13
|
-
def fail_with(message)
|
14
|
-
raise_error(::RSpec::Expectations::ExpectationNotMetError, message)
|
15
|
-
end
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|
19
|
-
|
20
6
|
class NullObject
|
21
7
|
def method_missing(method, *args, &block)
|
22
8
|
# ignore
|
metadata
CHANGED
@@ -1,13 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash: 13
|
5
4
|
prerelease: false
|
6
5
|
segments:
|
7
6
|
- 2
|
8
|
-
- 0
|
9
7
|
- 1
|
10
|
-
|
8
|
+
- 0
|
9
|
+
version: 2.1.0
|
11
10
|
platform: ruby
|
12
11
|
authors:
|
13
12
|
- Chad Humphries
|
@@ -16,134 +15,14 @@ autorequire:
|
|
16
15
|
bindir: bin
|
17
16
|
cert_chain: []
|
18
17
|
|
19
|
-
date: 2010-
|
18
|
+
date: 2010-11-07 01:00:00 -05:00
|
20
19
|
default_executable: rspec
|
21
|
-
dependencies:
|
22
|
-
|
23
|
-
version_requirements: &id001 !ruby/object:Gem::Requirement
|
24
|
-
none: false
|
25
|
-
requirements:
|
26
|
-
- - ~>
|
27
|
-
- !ruby/object:Gem::Version
|
28
|
-
hash: 13
|
29
|
-
segments:
|
30
|
-
- 2
|
31
|
-
- 0
|
32
|
-
- 1
|
33
|
-
version: 2.0.1
|
34
|
-
requirement: *id001
|
35
|
-
type: :development
|
36
|
-
name: rspec-expectations
|
37
|
-
prerelease: false
|
38
|
-
- !ruby/object:Gem::Dependency
|
39
|
-
version_requirements: &id002 !ruby/object:Gem::Requirement
|
40
|
-
none: false
|
41
|
-
requirements:
|
42
|
-
- - ~>
|
43
|
-
- !ruby/object:Gem::Version
|
44
|
-
hash: 13
|
45
|
-
segments:
|
46
|
-
- 2
|
47
|
-
- 0
|
48
|
-
- 1
|
49
|
-
version: 2.0.1
|
50
|
-
requirement: *id002
|
51
|
-
type: :development
|
52
|
-
name: rspec-mocks
|
53
|
-
prerelease: false
|
54
|
-
- !ruby/object:Gem::Dependency
|
55
|
-
version_requirements: &id003 !ruby/object:Gem::Requirement
|
56
|
-
none: false
|
57
|
-
requirements:
|
58
|
-
- - ~>
|
59
|
-
- !ruby/object:Gem::Version
|
60
|
-
hash: 63
|
61
|
-
segments:
|
62
|
-
- 0
|
63
|
-
- 9
|
64
|
-
- 2
|
65
|
-
version: 0.9.2
|
66
|
-
requirement: *id003
|
67
|
-
type: :development
|
68
|
-
name: cucumber
|
69
|
-
prerelease: false
|
70
|
-
- !ruby/object:Gem::Dependency
|
71
|
-
version_requirements: &id004 !ruby/object:Gem::Requirement
|
72
|
-
none: false
|
73
|
-
requirements:
|
74
|
-
- - ~>
|
75
|
-
- !ruby/object:Gem::Version
|
76
|
-
hash: 37
|
77
|
-
segments:
|
78
|
-
- 4
|
79
|
-
- 2
|
80
|
-
- 9
|
81
|
-
version: 4.2.9
|
82
|
-
requirement: *id004
|
83
|
-
type: :development
|
84
|
-
name: autotest
|
85
|
-
prerelease: false
|
86
|
-
- !ruby/object:Gem::Dependency
|
87
|
-
version_requirements: &id005 !ruby/object:Gem::Requirement
|
88
|
-
none: false
|
89
|
-
requirements:
|
90
|
-
- - ~>
|
91
|
-
- !ruby/object:Gem::Version
|
92
|
-
hash: 23
|
93
|
-
segments:
|
94
|
-
- 1
|
95
|
-
- 0
|
96
|
-
- 0
|
97
|
-
version: 1.0.0
|
98
|
-
requirement: *id005
|
99
|
-
type: :development
|
100
|
-
name: syntax
|
101
|
-
prerelease: false
|
102
|
-
- !ruby/object:Gem::Dependency
|
103
|
-
version_requirements: &id006 !ruby/object:Gem::Requirement
|
104
|
-
none: false
|
105
|
-
requirements:
|
106
|
-
- - ">="
|
107
|
-
- !ruby/object:Gem::Version
|
108
|
-
hash: 3
|
109
|
-
segments:
|
110
|
-
- 0
|
111
|
-
version: "0"
|
112
|
-
requirement: *id006
|
113
|
-
type: :development
|
114
|
-
name: flexmock
|
115
|
-
prerelease: false
|
116
|
-
- !ruby/object:Gem::Dependency
|
117
|
-
version_requirements: &id007 !ruby/object:Gem::Requirement
|
118
|
-
none: false
|
119
|
-
requirements:
|
120
|
-
- - ">="
|
121
|
-
- !ruby/object:Gem::Version
|
122
|
-
hash: 3
|
123
|
-
segments:
|
124
|
-
- 0
|
125
|
-
version: "0"
|
126
|
-
requirement: *id007
|
127
|
-
type: :development
|
128
|
-
name: mocha
|
129
|
-
prerelease: false
|
130
|
-
- !ruby/object:Gem::Dependency
|
131
|
-
version_requirements: &id008 !ruby/object:Gem::Requirement
|
132
|
-
none: false
|
133
|
-
requirements:
|
134
|
-
- - ">="
|
135
|
-
- !ruby/object:Gem::Version
|
136
|
-
hash: 3
|
137
|
-
segments:
|
138
|
-
- 0
|
139
|
-
version: "0"
|
140
|
-
requirement: *id008
|
141
|
-
type: :development
|
142
|
-
name: rr
|
143
|
-
prerelease: false
|
20
|
+
dependencies: []
|
21
|
+
|
144
22
|
description: RSpec runner and example groups
|
145
23
|
email: dchelimsky@gmail.com;chad.humphries@gmail.com
|
146
24
|
executables:
|
25
|
+
- autospec
|
147
26
|
- rspec
|
148
27
|
extensions: []
|
149
28
|
|
@@ -154,12 +33,14 @@ files:
|
|
154
33
|
- .gitignore
|
155
34
|
- .treasure_map.rb
|
156
35
|
- Gemfile
|
36
|
+
- Guardfile
|
157
37
|
- History.markdown
|
158
38
|
- License.txt
|
159
39
|
- README.markdown
|
160
40
|
- Rakefile
|
161
41
|
- Upgrade.markdown
|
162
42
|
- autotest/discover.rb
|
43
|
+
- bin/autospec
|
163
44
|
- bin/rspec
|
164
45
|
- cucumber.yml
|
165
46
|
- features/README.markdown
|
@@ -169,18 +50,19 @@ files:
|
|
169
50
|
- features/command_line/line_number_appended_to_path.feature
|
170
51
|
- features/command_line/line_number_option.feature
|
171
52
|
- features/command_line/rake_task.feature
|
53
|
+
- features/command_line/tag.feature
|
172
54
|
- features/configuration/custom_settings.feature
|
173
55
|
- features/configuration/fail_fast.feature
|
174
56
|
- features/configuration/read_options_from_file.feature
|
175
57
|
- features/example_groups/basic_structure.feature
|
176
58
|
- features/example_groups/shared_example_group.feature
|
177
59
|
- features/filtering/exclusion_filters.feature
|
60
|
+
- features/filtering/implicit_filters.feature
|
178
61
|
- features/filtering/inclusion_filters.feature
|
179
62
|
- features/filtering/run_all_when_everything_filtered.feature
|
180
63
|
- features/formatters/custom_formatter.feature
|
181
64
|
- features/hooks/around_hooks.feature
|
182
65
|
- features/hooks/before_and_after_hooks.feature
|
183
|
-
- features/hooks/halt.feature
|
184
66
|
- features/metadata/described_class.feature
|
185
67
|
- features/mock_framework_integration/use_flexmock.feature
|
186
68
|
- features/mock_framework_integration/use_mocha.feature
|
@@ -188,8 +70,10 @@ files:
|
|
188
70
|
- features/mock_framework_integration/use_rspec.feature
|
189
71
|
- features/pending/pending_examples.feature
|
190
72
|
- features/spec_files/arbitrary_file_suffix.feature
|
73
|
+
- features/step_definitions/additional_cli_steps.rb
|
191
74
|
- features/subject/attribute_of_subject.feature
|
192
75
|
- features/subject/explicit_subject.feature
|
76
|
+
- features/subject/implicit_receiver.feature
|
193
77
|
- features/subject/implicit_subject.feature
|
194
78
|
- features/support/env.rb
|
195
79
|
- lib/autotest/rspec2.rb
|
@@ -205,6 +89,7 @@ files:
|
|
205
89
|
- lib/rspec/core/errors.rb
|
206
90
|
- lib/rspec/core/example.rb
|
207
91
|
- lib/rspec/core/example_group.rb
|
92
|
+
- lib/rspec/core/expecting/with_rspec.rb
|
208
93
|
- lib/rspec/core/extensions.rb
|
209
94
|
- lib/rspec/core/extensions/instance_eval_with_args.rb
|
210
95
|
- lib/rspec/core/extensions/kernel.rb
|
@@ -302,10 +187,12 @@ licenses: []
|
|
302
187
|
post_install_message: |
|
303
188
|
**************************************************
|
304
189
|
|
305
|
-
Thank you for installing rspec-core-2.0
|
190
|
+
Thank you for installing rspec-core-2.1.0
|
191
|
+
|
192
|
+
Please be sure to look at the upgrade instructions to see what might have
|
193
|
+
changed since the last release:
|
306
194
|
|
307
|
-
|
308
|
-
since the last release.
|
195
|
+
http://github.com/rspec/rspec-core/blob/master/Upgrade.markdown
|
309
196
|
|
310
197
|
**************************************************
|
311
198
|
|
@@ -318,7 +205,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
318
205
|
requirements:
|
319
206
|
- - ">="
|
320
207
|
- !ruby/object:Gem::Version
|
321
|
-
hash:
|
208
|
+
hash: -2874414525307202279
|
322
209
|
segments:
|
323
210
|
- 0
|
324
211
|
version: "0"
|
@@ -327,7 +214,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
327
214
|
requirements:
|
328
215
|
- - ">="
|
329
216
|
- !ruby/object:Gem::Version
|
330
|
-
hash:
|
217
|
+
hash: -2874414525307202279
|
331
218
|
segments:
|
332
219
|
- 0
|
333
220
|
version: "0"
|
@@ -337,7 +224,7 @@ rubyforge_project: rspec
|
|
337
224
|
rubygems_version: 1.3.7
|
338
225
|
signing_key:
|
339
226
|
specification_version: 3
|
340
|
-
summary: rspec-core-2.0
|
227
|
+
summary: rspec-core-2.1.0
|
341
228
|
test_files:
|
342
229
|
- features/README.markdown
|
343
230
|
- features/command_line/configure.feature
|
@@ -346,18 +233,19 @@ test_files:
|
|
346
233
|
- features/command_line/line_number_appended_to_path.feature
|
347
234
|
- features/command_line/line_number_option.feature
|
348
235
|
- features/command_line/rake_task.feature
|
236
|
+
- features/command_line/tag.feature
|
349
237
|
- features/configuration/custom_settings.feature
|
350
238
|
- features/configuration/fail_fast.feature
|
351
239
|
- features/configuration/read_options_from_file.feature
|
352
240
|
- features/example_groups/basic_structure.feature
|
353
241
|
- features/example_groups/shared_example_group.feature
|
354
242
|
- features/filtering/exclusion_filters.feature
|
243
|
+
- features/filtering/implicit_filters.feature
|
355
244
|
- features/filtering/inclusion_filters.feature
|
356
245
|
- features/filtering/run_all_when_everything_filtered.feature
|
357
246
|
- features/formatters/custom_formatter.feature
|
358
247
|
- features/hooks/around_hooks.feature
|
359
248
|
- features/hooks/before_and_after_hooks.feature
|
360
|
-
- features/hooks/halt.feature
|
361
249
|
- features/metadata/described_class.feature
|
362
250
|
- features/mock_framework_integration/use_flexmock.feature
|
363
251
|
- features/mock_framework_integration/use_mocha.feature
|
@@ -365,8 +253,10 @@ test_files:
|
|
365
253
|
- features/mock_framework_integration/use_rspec.feature
|
366
254
|
- features/pending/pending_examples.feature
|
367
255
|
- features/spec_files/arbitrary_file_suffix.feature
|
256
|
+
- features/step_definitions/additional_cli_steps.rb
|
368
257
|
- features/subject/attribute_of_subject.feature
|
369
258
|
- features/subject/explicit_subject.feature
|
259
|
+
- features/subject/implicit_receiver.feature
|
370
260
|
- features/subject/implicit_subject.feature
|
371
261
|
- features/support/env.rb
|
372
262
|
- spec/autotest/failed_results_re_spec.rb
|