rspec 1.1.2 → 1.1.3
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/CHANGES +17 -0
- data/Rakefile +7 -4
- data/failing_examples/README.txt +7 -0
- data/failing_examples/diffing_spec.rb +36 -0
- data/failing_examples/failing_autogenerated_docstrings_example.rb +19 -0
- data/failing_examples/failure_in_setup.rb +10 -0
- data/failing_examples/failure_in_teardown.rb +10 -0
- data/failing_examples/mocking_example.rb +40 -0
- data/failing_examples/mocking_with_flexmock.rb +26 -0
- data/failing_examples/mocking_with_mocha.rb +25 -0
- data/failing_examples/mocking_with_rr.rb +27 -0
- data/failing_examples/partial_mock_example.rb +20 -0
- data/failing_examples/predicate_example.rb +29 -0
- data/failing_examples/raising_example.rb +47 -0
- data/failing_examples/spec_helper.rb +3 -0
- data/failing_examples/syntax_error_example.rb +7 -0
- data/failing_examples/team_spec.rb +44 -0
- data/failing_examples/timeout_behaviour.rb +7 -0
- data/lib/autotest/rspec.rb +21 -35
- data/lib/spec.rb +0 -7
- data/lib/spec/example/example_group_methods.rb +10 -4
- data/lib/spec/example/example_methods.rb +4 -0
- data/lib/spec/interop/test.rb +3 -1
- data/lib/spec/interop/test/unit/ui/console/testrunner.rb +1 -0
- data/lib/spec/matchers/raise_error.rb +19 -15
- data/lib/spec/runner.rb +14 -0
- data/lib/spec/runner/formatter/story/html_formatter.rb +3 -0
- data/lib/spec/runner/formatter/story/plain_text_formatter.rb +4 -1
- data/lib/spec/runner/option_parser.rb +5 -33
- data/lib/spec/runner/options.rb +51 -18
- data/lib/spec/runner/spec_parser.rb +49 -31
- data/lib/spec/story/runner.rb +0 -2
- data/lib/spec/story/step.rb +8 -6
- data/lib/spec/story/world.rb +1 -0
- data/lib/spec/version.rb +22 -22
- data/pre_commit/lib/pre_commit.rb +4 -0
- data/pre_commit/lib/pre_commit/core.rb +50 -0
- data/pre_commit/lib/pre_commit/pre_commit.rb +54 -0
- data/pre_commit/lib/pre_commit/rspec.rb +111 -0
- data/pre_commit/lib/pre_commit/rspec_on_rails.rb +313 -0
- data/pre_commit/spec/pre_commit/pre_commit_spec.rb +15 -0
- data/pre_commit/spec/pre_commit/rspec_on_rails_spec.rb +36 -0
- data/pre_commit/spec/spec_helper.rb +3 -0
- data/pre_commit/spec/spec_suite.rb +11 -0
- data/rake_tasks/examples.rake +7 -0
- data/rake_tasks/examples_with_rcov.rake +9 -0
- data/rake_tasks/failing_examples_with_html.rake +9 -0
- data/rake_tasks/verify_rcov.rake +7 -0
- data/spec/README.jruby +15 -0
- data/spec/autotest/rspec_spec.rb +11 -80
- data/spec/autotest_helper.rb +2 -1
- data/spec/autotest_matchers.rb +47 -0
- data/spec/rspec_suite.rb +1 -1
- data/spec/spec.opts +6 -0
- data/spec/spec/example/example_group_methods_spec.rb +11 -2
- data/spec/spec/example/example_methods_spec.rb +69 -56
- data/spec/spec/interop/test/unit/resources/spec_that_fails.rb +10 -0
- data/spec/spec/interop/test/unit/resources/spec_that_passes.rb +10 -0
- data/spec/spec/interop/test/unit/resources/spec_with_errors.rb +10 -0
- data/spec/spec/interop/test/unit/resources/test_case_that_fails.rb +10 -0
- data/spec/spec/interop/test/unit/resources/test_case_that_passes.rb +10 -0
- data/spec/spec/interop/test/unit/resources/test_case_with_errors.rb +10 -0
- data/spec/spec/interop/test/unit/resources/testsuite_adapter_spec_with_test_unit.rb +38 -0
- data/spec/spec/interop/test/unit/spec_spec.rb +45 -0
- data/spec/spec/interop/test/unit/testcase_spec.rb +39 -4
- data/spec/spec/interop/test/unit/testsuite_adapter_spec.rb +1 -1
- data/spec/spec/matchers/raise_error_spec.rb +7 -1
- data/spec/spec/mocks/bug_report_10263.rb +1 -1
- data/spec/spec/runner/command_line_spec.rb +3 -2
- data/spec/spec/runner/empty_file.txt +0 -0
- data/spec/spec/runner/examples.txt +2 -0
- data/spec/spec/runner/failed.txt +3 -0
- data/spec/spec/runner/formatter/html_formatted-1.8.4.html +365 -0
- data/spec/spec/runner/formatter/html_formatted-1.8.5-jruby.html +387 -0
- data/spec/spec/runner/formatter/html_formatted-1.8.5.html +371 -0
- data/spec/spec/runner/formatter/html_formatted-1.8.6-jruby.html +381 -0
- data/spec/spec/runner/formatter/html_formatted-1.8.6.html +365 -0
- data/spec/spec/runner/formatter/story/plain_text_formatter_spec.rb +54 -54
- data/spec/spec/runner/formatter/text_mate_formatted-1.8.4.html +365 -0
- data/spec/spec/runner/formatter/text_mate_formatted-1.8.6.html +365 -0
- data/spec/spec/runner/option_parser_spec.rb +50 -49
- data/spec/spec/runner/options_spec.rb +72 -2
- data/spec/spec/runner/resources/a_bar.rb +0 -0
- data/spec/spec/runner/resources/a_foo.rb +0 -0
- data/spec/spec/runner/resources/a_spec.rb +1 -0
- data/spec/spec/runner/spec.opts +2 -0
- data/spec/spec/runner/spec_parser/spec_parser_fixture.rb +70 -0
- data/spec/spec/runner/spec_parser_spec.rb +31 -76
- data/spec/spec/runner/spec_spaced.opts +2 -0
- data/spec/spec/spec_classes.rb +4 -0
- data/spec/spec/story/step_spec.rb +22 -0
- data/spec/spec/story/world_spec.rb +7 -0
- data/stories/interop/test_case_with_should_methods +1 -1
- metadata +85 -5
- data/spec/spec/interop/test/unit/testcase_spec_with_test_unit.rb +0 -20
- data/spec/spec/interop/test/unit/testsuite_adapter_spec_with_test_unit.rb +0 -34
|
@@ -18,6 +18,76 @@ module Spec
|
|
|
18
18
|
@options.examples.should == []
|
|
19
19
|
end
|
|
20
20
|
end
|
|
21
|
+
|
|
22
|
+
describe "#include_pattern" do
|
|
23
|
+
it "should default to '**/*_spec.rb'" do
|
|
24
|
+
@options.filename_pattern.should == "**/*_spec.rb"
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
describe "#files_to_load" do
|
|
29
|
+
|
|
30
|
+
it "should load files not following pattern if named explicitly" do
|
|
31
|
+
file = File.expand_path(File.dirname(__FILE__) + "/resources/a_bar.rb")
|
|
32
|
+
@options.files << file
|
|
33
|
+
@options.files_to_load.should include(file)
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
describe "with default --pattern" do
|
|
37
|
+
it "should load files named _spec.rb" do
|
|
38
|
+
dir = File.expand_path(File.dirname(__FILE__) + "/resources/")
|
|
39
|
+
@options.files << dir
|
|
40
|
+
@options.files_to_load.should == ["#{dir}/a_spec.rb"]
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
describe "with explicit pattern (single)" do
|
|
45
|
+
before(:each) do
|
|
46
|
+
@options.filename_pattern = "**/*_foo.rb"
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
it "should load files following pattern" do
|
|
50
|
+
file = File.expand_path(File.dirname(__FILE__) + "/resources/a_foo.rb")
|
|
51
|
+
@options.files << file
|
|
52
|
+
@options.files_to_load.should include(file)
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
it "should load files in directories following pattern" do
|
|
56
|
+
dir = File.expand_path(File.dirname(__FILE__) + "/resources")
|
|
57
|
+
@options.files << dir
|
|
58
|
+
@options.files_to_load.should include("#{dir}/a_foo.rb")
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
it "should not load files in directories not following pattern" do
|
|
62
|
+
dir = File.expand_path(File.dirname(__FILE__) + "/resources")
|
|
63
|
+
@options.files << dir
|
|
64
|
+
@options.files_to_load.should_not include("#{dir}/a_bar.rb")
|
|
65
|
+
end
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
describe "with explicit pattern (comma,separated,values)" do
|
|
69
|
+
|
|
70
|
+
before(:each) do
|
|
71
|
+
@options.filename_pattern = "**/*_foo.rb,**/*_bar.rb"
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
it "should support comma separated values" do
|
|
75
|
+
dir = File.expand_path(File.dirname(__FILE__) + "/resources")
|
|
76
|
+
@options.files << dir
|
|
77
|
+
@options.files_to_load.should include("#{dir}/a_foo.rb")
|
|
78
|
+
@options.files_to_load.should include("#{dir}/a_bar.rb")
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
it "should support comma separated values with spaces" do
|
|
82
|
+
dir = File.expand_path(File.dirname(__FILE__) + "/resources")
|
|
83
|
+
@options.files << dir
|
|
84
|
+
@options.files_to_load.should include("#{dir}/a_foo.rb")
|
|
85
|
+
@options.files_to_load.should include("#{dir}/a_bar.rb")
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
end
|
|
21
91
|
|
|
22
92
|
describe "#backtrace_tweaker" do
|
|
23
93
|
it "should default to QuietBacktraceTweaker" do
|
|
@@ -253,7 +323,7 @@ module Spec
|
|
|
253
323
|
@options.run_examples
|
|
254
324
|
end
|
|
255
325
|
|
|
256
|
-
describe "
|
|
326
|
+
describe "when there are examples" do
|
|
257
327
|
before(:each) do
|
|
258
328
|
@options.add_example_group Class.new(::Spec::Example::ExampleGroup)
|
|
259
329
|
@options.formatters << Formatter::BaseTextFormatter.new(@options, @out)
|
|
@@ -271,7 +341,7 @@ module Spec
|
|
|
271
341
|
end
|
|
272
342
|
end
|
|
273
343
|
|
|
274
|
-
describe "
|
|
344
|
+
describe "when there are no examples" do
|
|
275
345
|
before(:each) do
|
|
276
346
|
@options.formatters << Formatter::BaseTextFormatter.new(@options, @out)
|
|
277
347
|
end
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# Empty - used by ../options_spec.rb
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
require File.dirname(__FILE__) + '/../../../spec_helper.rb'
|
|
2
|
+
|
|
3
|
+
describe "c" do
|
|
4
|
+
|
|
5
|
+
it "1" do
|
|
6
|
+
end
|
|
7
|
+
|
|
8
|
+
it "2" do
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
describe "d" do
|
|
14
|
+
|
|
15
|
+
it "3" do
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
it "4" do
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
class SpecParserSubject
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
describe SpecParserSubject do
|
|
27
|
+
|
|
28
|
+
it "5" do
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
describe SpecParserSubject, "described" do
|
|
34
|
+
|
|
35
|
+
it "6" do
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
describe SpecParserSubject, "described", :something => :something_else do
|
|
41
|
+
|
|
42
|
+
it "7" do
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
describe "described", :something => :something_else do
|
|
48
|
+
|
|
49
|
+
it "8" do
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
describe "e" do
|
|
55
|
+
|
|
56
|
+
it "9" do
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
it "10" do
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
describe "f" do
|
|
63
|
+
it "11" do
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
it "12" do
|
|
67
|
+
end
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
end
|
|
@@ -1,124 +1,79 @@
|
|
|
1
1
|
require File.dirname(__FILE__) + '/../../spec_helper.rb'
|
|
2
2
|
|
|
3
|
-
describe "c" do
|
|
4
|
-
|
|
5
|
-
it "1" do
|
|
6
|
-
end
|
|
7
|
-
|
|
8
|
-
it "2" do
|
|
9
|
-
end
|
|
10
|
-
|
|
11
|
-
end
|
|
12
|
-
|
|
13
|
-
describe "d" do
|
|
14
|
-
|
|
15
|
-
it "3" do
|
|
16
|
-
end
|
|
17
|
-
|
|
18
|
-
it "4" do
|
|
19
|
-
end
|
|
20
|
-
|
|
21
|
-
end
|
|
22
|
-
|
|
23
|
-
class SpecParserSubject
|
|
24
|
-
end
|
|
25
|
-
|
|
26
|
-
describe SpecParserSubject do
|
|
27
|
-
|
|
28
|
-
it "5" do
|
|
29
|
-
end
|
|
30
|
-
|
|
31
|
-
end
|
|
32
|
-
|
|
33
|
-
describe SpecParserSubject, "described" do
|
|
34
|
-
|
|
35
|
-
it "6" do
|
|
36
|
-
end
|
|
37
|
-
|
|
38
|
-
end
|
|
39
|
-
|
|
40
|
-
describe SpecParserSubject, "described", :something => :something_else do
|
|
41
|
-
|
|
42
|
-
it "7" do
|
|
43
|
-
end
|
|
44
|
-
|
|
45
|
-
end
|
|
46
|
-
|
|
47
|
-
describe "described", :something => :something_else do
|
|
48
|
-
|
|
49
|
-
it "8" do
|
|
50
|
-
end
|
|
51
|
-
|
|
52
|
-
end
|
|
53
|
-
|
|
54
|
-
|
|
55
3
|
describe "SpecParser" do
|
|
4
|
+
attr_reader :parser, :file
|
|
56
5
|
before(:each) do
|
|
57
|
-
@
|
|
6
|
+
@parser = Spec::Runner::SpecParser.new
|
|
7
|
+
@file = "#{File.dirname(__FILE__)}/spec_parser/spec_parser_fixture.rb"
|
|
8
|
+
require file
|
|
58
9
|
end
|
|
59
10
|
|
|
60
11
|
it "should find spec name for 'specify' at same line" do
|
|
61
|
-
|
|
12
|
+
parser.spec_name_for(file, 5).should == "c 1"
|
|
62
13
|
end
|
|
63
14
|
|
|
64
15
|
it "should find spec name for 'specify' at end of spec line" do
|
|
65
|
-
|
|
16
|
+
parser.spec_name_for(file, 6).should == "c 1"
|
|
66
17
|
end
|
|
67
18
|
|
|
68
19
|
it "should find context for 'context' above all specs" do
|
|
69
|
-
|
|
20
|
+
parser.spec_name_for(file, 4).should == "c"
|
|
70
21
|
end
|
|
71
22
|
|
|
72
23
|
it "should find spec name for 'it' at same line" do
|
|
73
|
-
|
|
24
|
+
parser.spec_name_for(file, 15).should == "d 3"
|
|
74
25
|
end
|
|
75
26
|
|
|
76
27
|
it "should find spec name for 'it' at end of spec line" do
|
|
77
|
-
|
|
28
|
+
parser.spec_name_for(file, 16).should == "d 3"
|
|
78
29
|
end
|
|
79
30
|
|
|
80
31
|
it "should find context for 'describe' above all specs" do
|
|
81
|
-
|
|
32
|
+
parser.spec_name_for(file, 14).should == "d"
|
|
82
33
|
end
|
|
83
34
|
|
|
84
35
|
it "should find nearest example name between examples" do
|
|
85
|
-
|
|
36
|
+
parser.spec_name_for(file, 7).should == "c 1"
|
|
86
37
|
end
|
|
87
38
|
|
|
88
39
|
it "should find nothing outside a context" do
|
|
89
|
-
|
|
40
|
+
parser.spec_name_for(file, 2).should be_nil
|
|
90
41
|
end
|
|
91
|
-
|
|
42
|
+
|
|
92
43
|
it "should find context name for type" do
|
|
93
|
-
|
|
44
|
+
parser.spec_name_for(file, 26).should == "SpecParserSubject"
|
|
94
45
|
end
|
|
95
|
-
|
|
46
|
+
|
|
96
47
|
it "should find context and spec name for type" do
|
|
97
|
-
|
|
48
|
+
parser.spec_name_for(file, 28).should == "SpecParserSubject 5"
|
|
98
49
|
end
|
|
99
50
|
|
|
100
51
|
it "should find context and description for type" do
|
|
101
|
-
|
|
52
|
+
parser.spec_name_for(file, 33).should == "SpecParserSubject described"
|
|
102
53
|
end
|
|
103
|
-
|
|
54
|
+
|
|
104
55
|
it "should find context and description and example for type" do
|
|
105
|
-
|
|
56
|
+
parser.spec_name_for(file, 36).should == "SpecParserSubject described 6"
|
|
106
57
|
end
|
|
107
58
|
|
|
108
59
|
it "should find context and description for type with modifications" do
|
|
109
|
-
|
|
60
|
+
parser.spec_name_for(file, 40).should == "SpecParserSubject described"
|
|
110
61
|
end
|
|
111
|
-
|
|
62
|
+
|
|
112
63
|
it "should find context and described and example for type with modifications" do
|
|
113
|
-
|
|
64
|
+
parser.spec_name_for(file, 43).should == "SpecParserSubject described 7"
|
|
114
65
|
end
|
|
115
|
-
|
|
66
|
+
|
|
116
67
|
it "should find example group" do
|
|
117
|
-
|
|
68
|
+
parser.spec_name_for(file, 47).should == "described"
|
|
118
69
|
end
|
|
119
|
-
|
|
70
|
+
|
|
120
71
|
it "should find example" do
|
|
121
|
-
|
|
72
|
+
parser.spec_name_for(file, 50).should == "described 8"
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
it "should find nested example" do
|
|
76
|
+
parser.spec_name_for(file, 63).should == "e f 11"
|
|
122
77
|
end
|
|
123
|
-
|
|
78
|
+
|
|
124
79
|
end
|
data/spec/spec/spec_classes.rb
CHANGED
|
@@ -58,11 +58,21 @@ module Spec
|
|
|
58
58
|
step.matches?("this anything text").should be_true
|
|
59
59
|
end
|
|
60
60
|
|
|
61
|
+
it "should match a regexp with a named variable" do
|
|
62
|
+
step = Step.new(/this $variable text/) {}
|
|
63
|
+
step.matches?("this anything text").should be_true
|
|
64
|
+
end
|
|
65
|
+
|
|
61
66
|
it "should not match a non matching regexp" do
|
|
62
67
|
step = Step.new(/this (.*) text/) {}
|
|
63
68
|
step.matches?("other anything text").should be_false
|
|
64
69
|
end
|
|
65
70
|
|
|
71
|
+
it "should not match a non matching regexp with a named variable" do
|
|
72
|
+
step = Step.new(/this $variable text/) {}
|
|
73
|
+
step.matches?("other anything text").should be_false
|
|
74
|
+
end
|
|
75
|
+
|
|
66
76
|
it "should not get bogged down by parens in strings" do
|
|
67
77
|
step = Step.new("before () after") {}
|
|
68
78
|
step.matches?("before () after").should be_true
|
|
@@ -80,6 +90,18 @@ module Spec
|
|
|
80
90
|
step.parse_args("he is cool").should == ['he', 'cool']
|
|
81
91
|
end
|
|
82
92
|
|
|
93
|
+
it "should match alteration as well as a named variable" do
|
|
94
|
+
step = Step.new(/(he|she) is $adjective/) {}
|
|
95
|
+
step.matches?("he is cool").should be_true
|
|
96
|
+
step.parse_args("he is cool").should == ['he', 'cool']
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
it "should match alteration as well as a anonymous and named variable" do
|
|
100
|
+
step = Step.new(/(he|she) is (.*?) $adjective/) {}
|
|
101
|
+
step.matches?("he is very cool").should be_true
|
|
102
|
+
step.parse_args("he is very cool").should == ['he', 'very', 'cool']
|
|
103
|
+
end
|
|
104
|
+
|
|
83
105
|
end
|
|
84
106
|
|
|
85
107
|
describe Step do
|
|
@@ -298,12 +298,18 @@ module Spec
|
|
|
298
298
|
World.add_listener(mock_listener2)
|
|
299
299
|
|
|
300
300
|
# expect
|
|
301
|
+
mock_listener1.should_receive(:step_upcoming).with(:given, 'a context')
|
|
301
302
|
mock_listener1.should_receive(:step_succeeded).with(:given, 'a context')
|
|
303
|
+
mock_listener1.should_receive(:step_upcoming).with(:when, 'an event')
|
|
302
304
|
mock_listener1.should_receive(:step_succeeded).with(:when, 'an event')
|
|
305
|
+
mock_listener1.should_receive(:step_upcoming).with(:then, 'an outcome')
|
|
303
306
|
mock_listener1.should_receive(:step_succeeded).with(:then, 'an outcome')
|
|
304
307
|
|
|
308
|
+
mock_listener2.should_receive(:step_upcoming).with(:given, 'a context')
|
|
305
309
|
mock_listener2.should_receive(:step_succeeded).with(:given, 'a context')
|
|
310
|
+
mock_listener2.should_receive(:step_upcoming).with(:when, 'an event')
|
|
306
311
|
mock_listener2.should_receive(:step_succeeded).with(:when, 'an event')
|
|
312
|
+
mock_listener2.should_receive(:step_upcoming).with(:then, 'an outcome')
|
|
307
313
|
mock_listener2.should_receive(:step_succeeded).with(:then, 'an outcome')
|
|
308
314
|
|
|
309
315
|
# when
|
|
@@ -325,6 +331,7 @@ module Spec
|
|
|
325
331
|
world = World.create
|
|
326
332
|
|
|
327
333
|
# expect
|
|
334
|
+
mock_listener.should_receive(:step_upcoming).with(:given, 'a context')
|
|
328
335
|
mock_listener.should_receive(:step_succeeded).with(:given, 'a context')
|
|
329
336
|
|
|
330
337
|
# when
|
|
@@ -7,7 +7,7 @@ Story: Test::Unit::TestCase extended by rspec with should methods
|
|
|
7
7
|
Scenario: Run with ruby
|
|
8
8
|
Given the file test/test_case_with_should_methods.rb
|
|
9
9
|
When I run it with the ruby interpreter
|
|
10
|
-
Then
|
|
10
|
+
Then the exit code should be 256
|
|
11
11
|
And the stdout should match "5 examples, 3 failures"
|
|
12
12
|
|
|
13
13
|
Scenario: Run with spec
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rspec
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.1.
|
|
4
|
+
version: 1.1.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- RSpec Development Team
|
|
@@ -9,7 +9,7 @@ autorequire:
|
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
11
|
|
|
12
|
-
date: 2008-01-
|
|
12
|
+
date: 2008-01-31 00:00:00 -06:00
|
|
13
13
|
default_executable: spec
|
|
14
14
|
dependencies: []
|
|
15
15
|
|
|
@@ -140,11 +140,16 @@ files:
|
|
|
140
140
|
- lib/spec/translator.rb
|
|
141
141
|
- lib/spec/version.rb
|
|
142
142
|
- lib/spec.rb
|
|
143
|
+
- spec/autotest
|
|
143
144
|
- spec/autotest/discover_spec.rb
|
|
144
145
|
- spec/autotest/rspec_spec.rb
|
|
145
146
|
- spec/autotest_helper.rb
|
|
147
|
+
- spec/autotest_matchers.rb
|
|
148
|
+
- spec/README.jruby
|
|
146
149
|
- spec/rspec_suite.rb
|
|
147
150
|
- spec/ruby_forker.rb
|
|
151
|
+
- spec/spec
|
|
152
|
+
- spec/spec/example
|
|
148
153
|
- spec/spec/example/configuration_spec.rb
|
|
149
154
|
- spec/spec/example/example_group_class_definition_spec.rb
|
|
150
155
|
- spec/spec/example/example_group_factory_spec.rb
|
|
@@ -159,15 +164,30 @@ files:
|
|
|
159
164
|
- spec/spec/example/predicate_matcher_spec.rb
|
|
160
165
|
- spec/spec/example/shared_example_group_spec.rb
|
|
161
166
|
- spec/spec/example/subclassing_example_group_spec.rb
|
|
167
|
+
- spec/spec/expectations
|
|
168
|
+
- spec/spec/expectations/differs
|
|
162
169
|
- spec/spec/expectations/differs/default_spec.rb
|
|
170
|
+
- spec/spec/expectations/extensions
|
|
163
171
|
- spec/spec/expectations/extensions/object_spec.rb
|
|
164
172
|
- spec/spec/expectations/fail_with_spec.rb
|
|
173
|
+
- spec/spec/extensions
|
|
165
174
|
- spec/spec/extensions/main_spec.rb
|
|
175
|
+
- spec/spec/interop
|
|
176
|
+
- spec/spec/interop/test
|
|
177
|
+
- spec/spec/interop/test/unit
|
|
178
|
+
- spec/spec/interop/test/unit/resources
|
|
179
|
+
- spec/spec/interop/test/unit/resources/spec_that_fails.rb
|
|
180
|
+
- spec/spec/interop/test/unit/resources/spec_that_passes.rb
|
|
181
|
+
- spec/spec/interop/test/unit/resources/spec_with_errors.rb
|
|
182
|
+
- spec/spec/interop/test/unit/resources/test_case_that_fails.rb
|
|
183
|
+
- spec/spec/interop/test/unit/resources/test_case_that_passes.rb
|
|
184
|
+
- spec/spec/interop/test/unit/resources/test_case_with_errors.rb
|
|
185
|
+
- spec/spec/interop/test/unit/resources/testsuite_adapter_spec_with_test_unit.rb
|
|
186
|
+
- spec/spec/interop/test/unit/spec_spec.rb
|
|
166
187
|
- spec/spec/interop/test/unit/test_unit_spec_helper.rb
|
|
167
188
|
- spec/spec/interop/test/unit/testcase_spec.rb
|
|
168
|
-
- spec/spec/interop/test/unit/testcase_spec_with_test_unit.rb
|
|
169
189
|
- spec/spec/interop/test/unit/testsuite_adapter_spec.rb
|
|
170
|
-
- spec/spec/
|
|
190
|
+
- spec/spec/matchers
|
|
171
191
|
- spec/spec/matchers/be_close_spec.rb
|
|
172
192
|
- spec/spec/matchers/be_spec.rb
|
|
173
193
|
- spec/spec/matchers/change_spec.rb
|
|
@@ -188,6 +208,7 @@ files:
|
|
|
188
208
|
- spec/spec/matchers/satisfy_spec.rb
|
|
189
209
|
- spec/spec/matchers/simple_matcher_spec.rb
|
|
190
210
|
- spec/spec/matchers/throw_symbol_spec.rb
|
|
211
|
+
- spec/spec/mocks
|
|
191
212
|
- spec/spec/mocks/any_number_of_times_spec.rb
|
|
192
213
|
- spec/spec/mocks/argument_expectation_spec.rb
|
|
193
214
|
- spec/spec/mocks/at_least_spec.rb
|
|
@@ -215,21 +236,35 @@ files:
|
|
|
215
236
|
- spec/spec/mocks/record_messages_spec.rb
|
|
216
237
|
- spec/spec/mocks/stub_spec.rb
|
|
217
238
|
- spec/spec/mocks/twice_counts_spec.rb
|
|
239
|
+
- spec/spec/package
|
|
218
240
|
- spec/spec/package/bin_spec_spec.rb
|
|
241
|
+
- spec/spec/runner
|
|
219
242
|
- spec/spec/runner/class_and_argument_parser_spec.rb
|
|
220
243
|
- spec/spec/runner/command_line_spec.rb
|
|
221
244
|
- spec/spec/runner/drb_command_line_spec.rb
|
|
245
|
+
- spec/spec/runner/empty_file.txt
|
|
246
|
+
- spec/spec/runner/examples.txt
|
|
222
247
|
- spec/spec/runner/execution_context_spec.rb
|
|
248
|
+
- spec/spec/runner/failed.txt
|
|
249
|
+
- spec/spec/runner/formatter
|
|
223
250
|
- spec/spec/runner/formatter/failing_example_groups_formatter_spec.rb
|
|
224
251
|
- spec/spec/runner/formatter/failing_examples_formatter_spec.rb
|
|
252
|
+
- spec/spec/runner/formatter/html_formatted-1.8.4.html
|
|
253
|
+
- spec/spec/runner/formatter/html_formatted-1.8.5-jruby.html
|
|
254
|
+
- spec/spec/runner/formatter/html_formatted-1.8.5.html
|
|
255
|
+
- spec/spec/runner/formatter/html_formatted-1.8.6-jruby.html
|
|
256
|
+
- spec/spec/runner/formatter/html_formatted-1.8.6.html
|
|
225
257
|
- spec/spec/runner/formatter/html_formatter_spec.rb
|
|
226
258
|
- spec/spec/runner/formatter/profile_formatter_spec.rb
|
|
227
259
|
- spec/spec/runner/formatter/progress_bar_formatter_spec.rb
|
|
228
260
|
- spec/spec/runner/formatter/snippet_extractor_spec.rb
|
|
229
261
|
- spec/spec/runner/formatter/spec_mate_formatter_spec.rb
|
|
230
262
|
- spec/spec/runner/formatter/specdoc_formatter_spec.rb
|
|
263
|
+
- spec/spec/runner/formatter/story
|
|
231
264
|
- spec/spec/runner/formatter/story/html_formatter_spec.rb
|
|
232
265
|
- spec/spec/runner/formatter/story/plain_text_formatter_spec.rb
|
|
266
|
+
- spec/spec/runner/formatter/text_mate_formatted-1.8.4.html
|
|
267
|
+
- spec/spec/runner/formatter/text_mate_formatted-1.8.6.html
|
|
233
268
|
- spec/spec/runner/heckle_runner_spec.rb
|
|
234
269
|
- spec/spec/runner/heckler_spec.rb
|
|
235
270
|
- spec/spec/runner/noisy_backtrace_tweaker_spec.rb
|
|
@@ -240,13 +275,24 @@ files:
|
|
|
240
275
|
- spec/spec/runner/output_one_time_spec.rb
|
|
241
276
|
- spec/spec/runner/quiet_backtrace_tweaker_spec.rb
|
|
242
277
|
- spec/spec/runner/reporter_spec.rb
|
|
278
|
+
- spec/spec/runner/resources
|
|
279
|
+
- spec/spec/runner/resources/a_bar.rb
|
|
280
|
+
- spec/spec/runner/resources/a_foo.rb
|
|
281
|
+
- spec/spec/runner/resources/a_spec.rb
|
|
282
|
+
- spec/spec/runner/spec.opts
|
|
283
|
+
- spec/spec/runner/spec_parser
|
|
284
|
+
- spec/spec/runner/spec_parser/spec_parser_fixture.rb
|
|
243
285
|
- spec/spec/runner/spec_parser_spec.rb
|
|
286
|
+
- spec/spec/runner/spec_spaced.opts
|
|
244
287
|
- spec/spec/runner_spec.rb
|
|
245
288
|
- spec/spec/spec_classes.rb
|
|
289
|
+
- spec/spec/story
|
|
246
290
|
- spec/spec/story/builders.rb
|
|
291
|
+
- spec/spec/story/extensions
|
|
247
292
|
- spec/spec/story/extensions/main_spec.rb
|
|
248
293
|
- spec/spec/story/extensions_spec.rb
|
|
249
294
|
- spec/spec/story/given_scenario_spec.rb
|
|
295
|
+
- spec/spec/story/runner
|
|
250
296
|
- spec/spec/story/runner/plain_text_story_runner_spec.rb
|
|
251
297
|
- spec/spec/story/runner/scenario_collector_spec.rb
|
|
252
298
|
- spec/spec/story/runner/scenario_runner_spec.rb
|
|
@@ -262,6 +308,7 @@ files:
|
|
|
262
308
|
- spec/spec/story/story_spec.rb
|
|
263
309
|
- spec/spec/story/world_spec.rb
|
|
264
310
|
- spec/spec/translator_spec.rb
|
|
311
|
+
- spec/spec.opts
|
|
265
312
|
- spec/spec_helper.rb
|
|
266
313
|
- examples/pure
|
|
267
314
|
- examples/pure/autogenerated_docstrings_example.rb
|
|
@@ -324,6 +371,22 @@ files:
|
|
|
324
371
|
- examples/stories/helper.rb
|
|
325
372
|
- examples/stories/steps
|
|
326
373
|
- examples/stories/steps/addition_steps.rb
|
|
374
|
+
- failing_examples/diffing_spec.rb
|
|
375
|
+
- failing_examples/failing_autogenerated_docstrings_example.rb
|
|
376
|
+
- failing_examples/failure_in_setup.rb
|
|
377
|
+
- failing_examples/failure_in_teardown.rb
|
|
378
|
+
- failing_examples/mocking_example.rb
|
|
379
|
+
- failing_examples/mocking_with_flexmock.rb
|
|
380
|
+
- failing_examples/mocking_with_mocha.rb
|
|
381
|
+
- failing_examples/mocking_with_rr.rb
|
|
382
|
+
- failing_examples/partial_mock_example.rb
|
|
383
|
+
- failing_examples/predicate_example.rb
|
|
384
|
+
- failing_examples/raising_example.rb
|
|
385
|
+
- failing_examples/README.txt
|
|
386
|
+
- failing_examples/spec_helper.rb
|
|
387
|
+
- failing_examples/syntax_error_example.rb
|
|
388
|
+
- failing_examples/team_spec.rb
|
|
389
|
+
- failing_examples/timeout_behaviour.rb
|
|
327
390
|
- plugins/mock_frameworks
|
|
328
391
|
- plugins/mock_frameworks/flexmock.rb
|
|
329
392
|
- plugins/mock_frameworks/mocha.rb
|
|
@@ -359,6 +422,23 @@ files:
|
|
|
359
422
|
- stories/resources/test
|
|
360
423
|
- stories/resources/test/spec_and_test_together.rb
|
|
361
424
|
- stories/resources/test/test_case_with_should_methods.rb
|
|
425
|
+
- pre_commit/lib
|
|
426
|
+
- pre_commit/lib/pre_commit
|
|
427
|
+
- pre_commit/lib/pre_commit/core.rb
|
|
428
|
+
- pre_commit/lib/pre_commit/pre_commit.rb
|
|
429
|
+
- pre_commit/lib/pre_commit/rspec.rb
|
|
430
|
+
- pre_commit/lib/pre_commit/rspec_on_rails.rb
|
|
431
|
+
- pre_commit/lib/pre_commit.rb
|
|
432
|
+
- pre_commit/spec
|
|
433
|
+
- pre_commit/spec/pre_commit
|
|
434
|
+
- pre_commit/spec/pre_commit/pre_commit_spec.rb
|
|
435
|
+
- pre_commit/spec/pre_commit/rspec_on_rails_spec.rb
|
|
436
|
+
- pre_commit/spec/spec_helper.rb
|
|
437
|
+
- pre_commit/spec/spec_suite.rb
|
|
438
|
+
- rake_tasks/examples.rake
|
|
439
|
+
- rake_tasks/examples_with_rcov.rake
|
|
440
|
+
- rake_tasks/failing_examples_with_html.rake
|
|
441
|
+
- rake_tasks/verify_rcov.rake
|
|
362
442
|
has_rdoc: true
|
|
363
443
|
homepage: http://rspec.rubyforge.org
|
|
364
444
|
post_install_message:
|
|
@@ -389,6 +469,6 @@ rubyforge_project: rspec
|
|
|
389
469
|
rubygems_version: 1.0.1
|
|
390
470
|
signing_key:
|
|
391
471
|
specification_version: 2
|
|
392
|
-
summary: RSpec-1.1.
|
|
472
|
+
summary: RSpec-1.1.3 (build 20080131122909) - BDD for Ruby http://rspec.rubyforge.org/
|
|
393
473
|
test_files: []
|
|
394
474
|
|