dchelimsky-rspec 1.1.12 → 1.1.99.1
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/History.txt +35 -0
- data/License.txt +1 -1
- data/Manifest.txt +22 -73
- data/README.txt +2 -2
- data/Rakefile +32 -7
- data/TODO.txt +9 -4
- data/bin/spec +1 -1
- data/cucumber.yml +2 -0
- data/examples/failing/spec_helper.rb +1 -1
- data/examples/passing/filtered_formatter.rb +18 -0
- data/examples/passing/filtered_formatter_example.rb +31 -0
- data/examples/passing/spec_helper.rb +1 -1
- data/examples/ruby1.9.compatibility/access_to_constants_spec.rb +17 -18
- data/features/before_and_after_blocks/before_and_after_blocks.feature +4 -4
- data/features/example_groups/autogenerated_docstrings.feature +2 -2
- data/features/example_groups/example_group_with_should_methods.feature +1 -1
- data/features/example_groups/nested_groups.feature +1 -1
- data/features/interop/examples_and_tests_together.feature +1 -1
- data/features/interop/test_but_not_test_unit.feature +1 -1
- data/features/interop/test_case_with_should_methods.feature +1 -1
- data/features/mock_framework_integration/use_flexmock.feature +22 -4
- data/features/mock_framework_integration/use_mocha.feature +27 -0
- data/features/mock_framework_integration/use_rr.feature +27 -0
- data/features/step_definitions/running_rspec.rb +5 -3
- data/features/support/env.rb +1 -1
- data/features-pending/cli/conditional_exclusion.feature +39 -0
- data/lib/{adapters → spec/adapters}/mock_frameworks/flexmock.rb +1 -0
- data/lib/{adapters → spec/adapters}/mock_frameworks/mocha.rb +1 -0
- data/lib/{adapters → spec/adapters}/mock_frameworks/rr.rb +1 -0
- data/lib/{adapters → spec/adapters}/mock_frameworks/rspec.rb +0 -1
- data/lib/spec/autorun.rb +3 -0
- data/lib/spec/example/before_and_after_hooks.rb +5 -20
- data/lib/spec/example/example_description.rb +15 -0
- data/lib/spec/example/example_group.rb +0 -15
- data/lib/spec/example/example_group_factory.rb +34 -46
- data/lib/spec/example/example_group_hierarchy.rb +53 -0
- data/lib/spec/example/example_group_methods.rb +96 -211
- data/lib/spec/example/example_methods.rb +62 -81
- data/lib/spec/example/module_reopening_fix.rb +23 -1
- data/lib/spec/example/predicate_matchers.rb +47 -0
- data/lib/spec/example/subject.rb +91 -0
- data/lib/spec/example.rb +4 -0
- data/lib/spec/expectations/extensions.rb +0 -1
- data/lib/spec/expectations/handler.rb +6 -1
- data/lib/spec/expectations.rb +1 -1
- data/lib/spec/interop/test/unit/testcase.rb +5 -22
- data/lib/spec/interop/test.rb +1 -0
- data/lib/spec/matchers/be.rb +2 -7
- data/lib/spec/matchers/be_close.rb +20 -5
- data/lib/spec/matchers/change.rb +5 -3
- data/lib/spec/matchers/eql.rb +24 -6
- data/lib/spec/matchers/equal.rb +24 -6
- data/lib/spec/matchers/exist.rb +21 -5
- data/lib/spec/matchers/generated_descriptions.rb +2 -2
- data/lib/spec/matchers/has.rb +28 -11
- data/lib/spec/matchers/match.rb +25 -7
- data/lib/spec/matchers/match_array.rb +1 -1
- data/lib/spec/matchers/method_missing.rb +2 -2
- data/lib/spec/matchers/operator_matcher.rb +12 -5
- data/lib/spec/matchers/raise_error.rb +1 -1
- data/lib/spec/matchers/respond_to.rb +1 -1
- data/lib/spec/matchers/satisfy.rb +5 -5
- data/lib/spec/matchers/throw_symbol.rb +1 -3
- data/lib/spec/mocks/argument_expectation.rb +1 -1
- data/lib/spec/mocks/argument_matchers.rb +233 -0
- data/lib/spec/mocks/error_generator.rb +2 -6
- data/lib/spec/mocks/message_expectation.rb +3 -11
- data/lib/spec/mocks/mock.rb +1 -1
- data/lib/spec/mocks/proxy.rb +5 -1
- data/lib/spec/runner/configuration.rb +3 -3
- data/lib/spec/runner/drb_command_line.rb +2 -1
- data/lib/spec/runner/example_group_runner.rb +2 -1
- data/lib/spec/runner/formatter/base_text_formatter.rb +28 -17
- data/lib/spec/runner/formatter/failing_example_groups_formatter.rb +3 -5
- data/lib/spec/runner/formatter/html_formatter.rb +2 -3
- data/lib/spec/runner/formatter/nested_text_formatter.rb +7 -25
- data/lib/spec/runner/formatter/progress_bar_formatter.rb +1 -1
- data/lib/spec/runner/formatter/specdoc_formatter.rb +1 -7
- data/lib/spec/runner/heckle_runner_unsupported.rb +1 -1
- data/lib/spec/runner/option_parser.rb +16 -19
- data/lib/spec/runner/options.rb +28 -26
- data/lib/spec/runner/reporter.rb +8 -9
- data/lib/spec/runner.rb +6 -28
- data/lib/spec/test/unit.rb +10 -0
- data/lib/spec/version.rb +2 -2
- data/{features/support → resources}/helpers/cmdline.rb +2 -2
- data/resources/rake/verify_rcov.rake +1 -1
- data/resources/spec/example_group_with_should_methods.rb +1 -1
- data/resources/spec/simple_spec.rb +1 -1
- data/resources/test/spec_and_test_together.rb +2 -3
- data/resources/test/spec_including_test_but_not_unit.rb +1 -1
- data/resources/test/test_case_with_should_methods.rb +2 -3
- data/rspec.gemspec +5 -5
- data/spec/spec/dsl/main_spec.rb +3 -3
- data/spec/spec/example/example_group_class_definition_spec.rb +11 -14
- data/spec/spec/example/example_group_factory_spec.rb +31 -44
- data/spec/spec/example/example_group_methods_spec.rb +86 -52
- data/spec/spec/example/example_group_spec.rb +16 -75
- data/spec/spec/example/example_matcher_spec.rb +10 -10
- data/spec/spec/example/example_methods_spec.rb +101 -241
- data/spec/spec/example/nested_example_group_spec.rb +2 -2
- data/spec/spec/example/pending_module_spec.rb +1 -1
- data/spec/spec/example/shared_example_group_spec.rb +2 -2
- data/spec/spec/interop/test/unit/resources/spec_that_fails.rb +2 -2
- data/spec/spec/interop/test/unit/resources/spec_that_passes.rb +2 -2
- data/spec/spec/interop/test/unit/resources/spec_with_errors.rb +2 -2
- data/spec/spec/interop/test/unit/resources/spec_with_options_hash.rb +2 -2
- data/spec/spec/interop/test/unit/resources/test_case_that_fails.rb +2 -2
- data/spec/spec/interop/test/unit/resources/test_case_that_passes.rb +2 -2
- data/spec/spec/interop/test/unit/resources/test_case_with_errors.rb +2 -2
- data/spec/spec/interop/test/unit/resources/testsuite_adapter_spec_with_test_unit.rb +2 -2
- data/spec/spec/matchers/change_spec.rb +8 -0
- data/spec/spec/matchers/exist_spec.rb +8 -4
- data/spec/spec/matchers/handler_spec.rb +8 -1
- data/spec/spec/matchers/matcher_methods_spec.rb +1 -1
- data/spec/spec/mocks/{bug_report_496.rb → bug_report_496_spec.rb} +0 -0
- data/spec/spec/mocks/failing_argument_matchers_spec.rb +95 -0
- data/spec/spec/mocks/nil_expectation_warning_spec.rb +1 -1
- data/spec/spec/mocks/passing_argument_matchers_spec.rb +145 -0
- data/spec/spec/runner/configuration_spec.rb +12 -12
- data/spec/spec/runner/formatter/base_text_formatter_spec.rb +72 -1
- data/spec/spec/runner/formatter/failing_example_groups_formatter_spec.rb +8 -8
- data/spec/spec/runner/formatter/failing_examples_formatter_spec.rb +4 -4
- data/spec/spec/runner/formatter/html_formatted-1.8.6.html +8 -8
- data/spec/spec/runner/formatter/html_formatted-1.8.7.html +38 -26
- data/spec/spec/runner/formatter/html_formatted-1.9.1.html +61 -53
- data/spec/spec/runner/formatter/html_formatter_spec.rb +100 -48
- data/spec/spec/runner/formatter/nested_text_formatter_spec.rb +20 -34
- data/spec/spec/runner/formatter/profile_formatter_spec.rb +1 -1
- data/spec/spec/runner/formatter/progress_bar_formatter_spec.rb +8 -6
- data/spec/spec/runner/formatter/specdoc_formatter_spec.rb +6 -6
- data/spec/spec/runner/formatter/text_mate_formatted-1.8.6.html +20 -20
- data/spec/spec/runner/formatter/text_mate_formatted-1.8.7.html +38 -26
- data/spec/spec/runner/formatter/{spec_mate_formatter_spec.rb → text_mate_formatter_spec.rb} +10 -8
- data/spec/spec/runner/heckle_runner_spec.rb +1 -1
- data/spec/spec/runner/option_parser_spec.rb +15 -13
- data/spec/spec/runner/options_spec.rb +34 -0
- data/spec/spec/runner/reporter_spec.rb +65 -61
- data/spec/spec/runner/spec_drb.opts +1 -0
- data/spec/spec/runner_spec.rb +7 -5
- data/spec/spec_helper.rb +23 -0
- metadata +25 -76
- data/examples/passing/legacy_spec.rb +0 -11
- data/features/support/helpers/story_helper.rb +0 -13
- data/lib/spec/expectations/extensions/string_and_symbol.rb +0 -17
- data/resources/spec/spec_with_flexmock.rb +0 -19
- data/spec/spec/spec_spec.rb +0 -21
@@ -12,21 +12,19 @@ module Spec
|
|
12
12
|
options.stub!(:dry_run).and_return(false)
|
13
13
|
options.stub!(:colour).and_return(false)
|
14
14
|
@formatter = NestedTextFormatter.new(options, io)
|
15
|
-
@example_group = ::Spec::Example::
|
16
|
-
|
17
|
-
end
|
18
|
-
end
|
15
|
+
@example_group = Class.new(::Spec::Example::ExampleGroupDouble).describe("ExampleGroup")
|
16
|
+
@example_group.example("example") {}
|
19
17
|
end
|
20
18
|
|
21
|
-
describe "where ExampleGroup has no
|
22
|
-
before do
|
23
|
-
add_example_group
|
24
|
-
end
|
25
|
-
|
19
|
+
describe "where ExampleGroup has no superclass with a description" do
|
26
20
|
def add_example_group
|
27
21
|
formatter.add_example_group(example_group)
|
28
22
|
end
|
29
23
|
|
24
|
+
before do
|
25
|
+
add_example_group
|
26
|
+
end
|
27
|
+
|
30
28
|
describe "#dump_summary" do
|
31
29
|
it "should produce standard summary without pending when pending has a 0 count" do
|
32
30
|
formatter.dump_summary(3, 2, 1, 0)
|
@@ -52,25 +50,17 @@ OUT
|
|
52
50
|
end
|
53
51
|
|
54
52
|
describe "#add_example_group" do
|
55
|
-
describe "when ExampleGroup has
|
56
|
-
|
57
|
-
|
58
|
-
end
|
59
|
-
|
60
|
-
describe "when ExampleGroup has no parents with description args" do
|
61
|
-
before do
|
62
|
-
example_group.superclass.description_args.should be_empty
|
63
|
-
end
|
64
|
-
|
53
|
+
describe "when ExampleGroup has a nested description" do
|
54
|
+
|
55
|
+
describe "when ExampleGroup has no parents with nested description" do
|
65
56
|
it "should push ExampleGroup name" do
|
66
57
|
io.string.should eql("ExampleGroup\n")
|
67
58
|
end
|
68
59
|
end
|
69
60
|
|
70
|
-
describe "when ExampleGroup has one parent with description
|
61
|
+
describe "when ExampleGroup has one parent with nested description" do
|
71
62
|
attr_reader :child_example_group
|
72
63
|
def add_example_group
|
73
|
-
example_group.description_args.should_not be_nil
|
74
64
|
@child_example_group = Class.new(example_group).describe("Child ExampleGroup")
|
75
65
|
end
|
76
66
|
|
@@ -102,10 +92,9 @@ OUT
|
|
102
92
|
end
|
103
93
|
end
|
104
94
|
|
105
|
-
describe "when ExampleGroup has two parents with description
|
95
|
+
describe "when ExampleGroup has two parents with nested description" do
|
106
96
|
attr_reader :child_example_group, :grand_child_example_group
|
107
97
|
def add_example_group
|
108
|
-
example_group.description_args.should_not be_nil
|
109
98
|
@child_example_group = Class.new(example_group).describe("Child ExampleGroup")
|
110
99
|
@grand_child_example_group = Class.new(child_example_group).describe("GrandChild ExampleGroup")
|
111
100
|
end
|
@@ -140,13 +129,12 @@ OUT
|
|
140
129
|
end
|
141
130
|
end
|
142
131
|
|
143
|
-
describe "when ExampleGroup
|
132
|
+
describe "when ExampleGroup nested description is blank" do
|
144
133
|
attr_reader :child_example_group
|
145
134
|
|
146
135
|
describe "and parent ExampleGroups have not been printed" do
|
147
136
|
def add_example_group
|
148
137
|
@child_example_group = Class.new(example_group)
|
149
|
-
child_example_group.description_args.should be_empty
|
150
138
|
formatter.add_example_group(child_example_group)
|
151
139
|
end
|
152
140
|
|
@@ -160,7 +148,6 @@ OUT
|
|
160
148
|
describe "and parent ExampleGroups have been printed" do
|
161
149
|
def add_example_group
|
162
150
|
@child_example_group = Class.new(example_group)
|
163
|
-
child_example_group.description_args.should be_empty
|
164
151
|
formatter.add_example_group(example_group)
|
165
152
|
io.string = ""
|
166
153
|
formatter.add_example_group(child_example_group)
|
@@ -172,10 +159,9 @@ OUT
|
|
172
159
|
end
|
173
160
|
end
|
174
161
|
|
175
|
-
describe "when ExampleGroup
|
162
|
+
describe "when ExampleGroup nested description is blank" do
|
176
163
|
def add_example_group
|
177
164
|
example_group.set_description
|
178
|
-
example_group.description_args.should be_empty
|
179
165
|
super
|
180
166
|
end
|
181
167
|
|
@@ -192,11 +178,11 @@ OUT
|
|
192
178
|
formatter.example_failed(
|
193
179
|
example_group.it("spec"),
|
194
180
|
98,
|
195
|
-
::Spec::Runner::Reporter::Failure.new("c s", RuntimeError.new)
|
181
|
+
::Spec::Runner::Reporter::Failure.new("g", "c s", RuntimeError.new)
|
196
182
|
)
|
197
183
|
io.string.should == <<-OUT
|
198
184
|
ExampleGroup
|
199
|
-
spec (
|
185
|
+
spec (FAILED - 98)
|
200
186
|
OUT
|
201
187
|
end
|
202
188
|
end
|
@@ -206,7 +192,7 @@ OUT
|
|
206
192
|
formatter.example_failed(
|
207
193
|
example_group.it("spec"),
|
208
194
|
98,
|
209
|
-
::Spec::Runner::Reporter::Failure.new("c s", Spec::Expectations::ExpectationNotMetError.new)
|
195
|
+
::Spec::Runner::Reporter::Failure.new("g", "c s", Spec::Expectations::ExpectationNotMetError.new)
|
210
196
|
)
|
211
197
|
io.string.should == <<-OUT
|
212
198
|
ExampleGroup
|
@@ -230,13 +216,13 @@ OUT
|
|
230
216
|
formatter.example_failed(
|
231
217
|
grand_child_example_group.it("spec"),
|
232
218
|
98,
|
233
|
-
::Spec::Runner::Reporter::Failure.new("c s", RuntimeError.new)
|
219
|
+
::Spec::Runner::Reporter::Failure.new("g", "c s", RuntimeError.new)
|
234
220
|
)
|
235
221
|
io.string.should == <<-OUT
|
236
222
|
ExampleGroup
|
237
223
|
Child ExampleGroup
|
238
224
|
GrandChild ExampleGroup
|
239
|
-
spec (
|
225
|
+
spec (FAILED - 98)
|
240
226
|
OUT
|
241
227
|
end
|
242
228
|
end
|
@@ -246,7 +232,7 @@ OUT
|
|
246
232
|
formatter.example_failed(
|
247
233
|
grand_child_example_group.it("spec"),
|
248
234
|
98,
|
249
|
-
::Spec::Runner::Reporter::Failure.new("c s", Spec::Expectations::ExpectationNotMetError.new)
|
235
|
+
::Spec::Runner::Reporter::Failure.new("g", "c s", Spec::Expectations::ExpectationNotMetError.new)
|
250
236
|
)
|
251
237
|
io.string.should == <<-OUT
|
252
238
|
ExampleGroup
|
@@ -28,7 +28,7 @@ module Spec
|
|
28
28
|
it "should correctly record a passed example" do
|
29
29
|
now = Time.now
|
30
30
|
Time.stub!(:now).and_return(now)
|
31
|
-
parent_example_group = Class.new(
|
31
|
+
parent_example_group = Class.new(::Spec::Example::ExampleGroupDouble).describe('Parent')
|
32
32
|
child_example_group = Class.new(parent_example_group).describe('Child')
|
33
33
|
|
34
34
|
formatter.add_example_group(child_example_group)
|
@@ -29,6 +29,7 @@ module Spec
|
|
29
29
|
end
|
30
30
|
end
|
31
31
|
example = example_group.examples.first
|
32
|
+
@formatter.add_example_group(example_group)
|
32
33
|
@formatter.example_pending(example, "message", "#{__FILE__}:#{__LINE__}")
|
33
34
|
@io.rewind
|
34
35
|
@formatter.dump_summary(3, 2, 1, 1)
|
@@ -49,21 +50,21 @@ Finished in 3 seconds
|
|
49
50
|
it "should push red F for failure spec" do
|
50
51
|
@io.should_receive(:tty?).and_return(true)
|
51
52
|
@options.should_receive(:colour).and_return(true)
|
52
|
-
@formatter.example_failed("spec", 98, Spec::Runner::Reporter::Failure.new("c s", Spec::Expectations::ExpectationNotMetError.new))
|
53
|
+
@formatter.example_failed("spec", 98, Spec::Runner::Reporter::Failure.new("g", "c s", Spec::Expectations::ExpectationNotMetError.new))
|
53
54
|
@io.string.should eql("\e[31mF\e[0m")
|
54
55
|
end
|
55
56
|
|
56
|
-
it "should push
|
57
|
+
it "should push red F for error spec" do
|
57
58
|
@io.should_receive(:tty?).and_return(true)
|
58
59
|
@options.should_receive(:colour).and_return(true)
|
59
|
-
@formatter.example_failed("spec", 98, Spec::Runner::Reporter::Failure.new("c s", RuntimeError.new))
|
60
|
-
@io.string.should eql("\e[
|
60
|
+
@formatter.example_failed("spec", 98, Spec::Runner::Reporter::Failure.new("g", "c s", RuntimeError.new))
|
61
|
+
@io.string.should eql("\e[31mF\e[0m")
|
61
62
|
end
|
62
63
|
|
63
64
|
it "should push blue F for fixed pending spec" do
|
64
65
|
@io.should_receive(:tty?).and_return(true)
|
65
66
|
@options.should_receive(:colour).and_return(true)
|
66
|
-
@formatter.example_failed("spec", 98, Spec::Runner::Reporter::Failure.new("c s", Spec::Example::PendingExampleFixedError.new))
|
67
|
+
@formatter.example_failed("spec", 98, Spec::Runner::Reporter::Failure.new("g", "c s", Spec::Example::PendingExampleFixedError.new))
|
67
68
|
@io.string.should eql("\e[34mF\e[0m")
|
68
69
|
end
|
69
70
|
|
@@ -95,7 +96,8 @@ EOE
|
|
95
96
|
end
|
96
97
|
example = example_group.examples.first
|
97
98
|
file = __FILE__
|
98
|
-
line = __LINE__ +
|
99
|
+
line = __LINE__ + 2
|
100
|
+
@formatter.add_example_group(example_group)
|
99
101
|
@formatter.example_pending(example, "message", "#{__FILE__}:#{__LINE__}")
|
100
102
|
@formatter.dump_pending
|
101
103
|
@io.string.should ==(<<-HERE)
|
@@ -52,9 +52,9 @@ module Spec
|
|
52
52
|
formatter.example_failed(
|
53
53
|
example_group.it("spec"),
|
54
54
|
98,
|
55
|
-
Spec::Runner::Reporter::Failure.new("c s", RuntimeError.new)
|
55
|
+
Spec::Runner::Reporter::Failure.new("g", "c s", RuntimeError.new)
|
56
56
|
)
|
57
|
-
io.string.should have_example_group_output("- spec (
|
57
|
+
io.string.should have_example_group_output("- spec (FAILED - 98)\n")
|
58
58
|
end
|
59
59
|
end
|
60
60
|
|
@@ -63,7 +63,7 @@ module Spec
|
|
63
63
|
formatter.example_failed(
|
64
64
|
example_group.it("spec"),
|
65
65
|
98,
|
66
|
-
Spec::Runner::Reporter::Failure.new("c s", Spec::Expectations::ExpectationNotMetError.new)
|
66
|
+
Spec::Runner::Reporter::Failure.new("g", "c s", Spec::Expectations::ExpectationNotMetError.new)
|
67
67
|
)
|
68
68
|
io.string.should have_example_group_output("- spec (FAILED - 98)\n")
|
69
69
|
end
|
@@ -84,9 +84,9 @@ module Spec
|
|
84
84
|
formatter.example_failed(
|
85
85
|
example_group.it("spec"),
|
86
86
|
98,
|
87
|
-
Spec::Runner::Reporter::Failure.new("c s", RuntimeError.new)
|
87
|
+
Spec::Runner::Reporter::Failure.new("g", "c s", RuntimeError.new)
|
88
88
|
)
|
89
|
-
io.string.should have_nested_example_group_output("- spec (
|
89
|
+
io.string.should have_nested_example_group_output("- spec (FAILED - 98)\n")
|
90
90
|
end
|
91
91
|
end
|
92
92
|
|
@@ -95,7 +95,7 @@ module Spec
|
|
95
95
|
formatter.example_failed(
|
96
96
|
example_group.it("spec"),
|
97
97
|
98,
|
98
|
-
Spec::Runner::Reporter::Failure.new("c s", Spec::Expectations::ExpectationNotMetError.new)
|
98
|
+
Spec::Runner::Reporter::Failure.new("g", "c s", Spec::Expectations::ExpectationNotMetError.new)
|
99
99
|
)
|
100
100
|
io.string.should have_nested_example_group_output("- spec (FAILED - 98)\n")
|
101
101
|
end
|
@@ -43,7 +43,7 @@ function makeYellow(element_id) {
|
|
43
43
|
</script>
|
44
44
|
<style type="text/css">
|
45
45
|
#rspec-header {
|
46
|
-
background: #65C400; color: #fff; height:
|
46
|
+
background: #65C400; color: #fff; height: 4em;
|
47
47
|
}
|
48
48
|
|
49
49
|
.rspec-report h1 {
|
@@ -51,7 +51,7 @@ function makeYellow(element_id) {
|
|
51
51
|
padding: 10px;
|
52
52
|
font-family: "Lucida Grande", Helvetica, sans-serif;
|
53
53
|
font-size: 1.8em;
|
54
|
-
|
54
|
+
position: absolute;
|
55
55
|
}
|
56
56
|
|
57
57
|
#summary {
|
@@ -192,9 +192,9 @@ a {
|
|
192
192
|
<div class="failure" id="failure_1">
|
193
193
|
<div class="message"><pre>Mock 'poke me' expected :poke with (any args) once, but received it 0 times</pre></div>
|
194
194
|
<div class="backtrace"><pre><a href="txmt://open?url=file:///Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/examples/failing/mocking_example.rb&line=13">./examples/failing/mocking_example.rb:13</a>
|
195
|
-
<a href="txmt://open?url=file:///Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/
|
196
|
-
<a href="txmt://open?url=file:///Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/
|
197
|
-
<a href="txmt://open?url=file:///Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/
|
195
|
+
<a href="txmt://open?url=file:///Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb&line=51">/Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb:51</a>
|
196
|
+
<a href="txmt://open?url=file:///Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb&line=47">/Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb:47</a> :in `chdir'
|
197
|
+
<a href="txmt://open?url=file:///Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb&line=47">/Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb:47</a> </pre></div>
|
198
198
|
<pre class="ruby"><code><span class="linenum">11</span> <span class="ident">it</span> <span class="punct">"</span><span class="string">should fail when expected message not received</span><span class="punct">"</span> <span class="keyword">do</span>
|
199
199
|
<span class="linenum">12</span> <span class="ident">mock</span> <span class="punct">=</span> <span class="ident">mock</span><span class="punct">("</span><span class="string">poke me</span><span class="punct">")</span>
|
200
200
|
<span class="offending"><span class="linenum">13</span> <span class="ident">mock</span><span class="punct">.</span><span class="ident">should_receive</span><span class="punct">(</span><span class="symbol">:poke</span><span class="punct">)</span></span>
|
@@ -208,9 +208,9 @@ a {
|
|
208
208
|
<div class="failure" id="failure_2">
|
209
209
|
<div class="message"><pre>Mock 'one two three' received :three out of order</pre></div>
|
210
210
|
<div class="backtrace"><pre><a href="txmt://open?url=file:///Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/examples/failing/mocking_example.rb&line=22">./examples/failing/mocking_example.rb:22</a>
|
211
|
-
<a href="txmt://open?url=file:///Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/
|
212
|
-
<a href="txmt://open?url=file:///Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/
|
213
|
-
<a href="txmt://open?url=file:///Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/
|
211
|
+
<a href="txmt://open?url=file:///Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb&line=51">/Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb:51</a>
|
212
|
+
<a href="txmt://open?url=file:///Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb&line=47">/Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb:47</a> :in `chdir'
|
213
|
+
<a href="txmt://open?url=file:///Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb&line=47">/Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb:47</a> </pre></div>
|
214
214
|
<pre class="ruby"><code><span class="linenum">20</span> <span class="ident">mock</span><span class="punct">.</span><span class="ident">should_receive</span><span class="punct">(</span><span class="symbol">:three</span><span class="punct">).</span><span class="ident">ordered</span>
|
215
215
|
<span class="linenum">21</span> <span class="ident">mock</span><span class="punct">.</span><span class="ident">one</span>
|
216
216
|
<span class="offending"><span class="linenum">22</span> <span class="ident">mock</span><span class="punct">.</span><span class="ident">three</span></span>
|
@@ -224,9 +224,9 @@ a {
|
|
224
224
|
<div class="failure" id="failure_3">
|
225
225
|
<div class="message"><pre>Mock 'don't talk to me' expected :any_message_at_all with (no args) 0 times, but received it once</pre></div>
|
226
226
|
<div class="backtrace"><pre><a href="txmt://open?url=file:///Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/examples/failing/mocking_example.rb&line=29">./examples/failing/mocking_example.rb:29</a>
|
227
|
-
<a href="txmt://open?url=file:///Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/
|
228
|
-
<a href="txmt://open?url=file:///Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/
|
229
|
-
<a href="txmt://open?url=file:///Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/
|
227
|
+
<a href="txmt://open?url=file:///Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb&line=51">/Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb:51</a>
|
228
|
+
<a href="txmt://open?url=file:///Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb&line=47">/Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb:47</a> :in `chdir'
|
229
|
+
<a href="txmt://open?url=file:///Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb&line=47">/Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb:47</a> </pre></div>
|
230
230
|
<pre class="ruby"><code><span class="linenum">27</span> <span class="ident">mock</span> <span class="punct">=</span> <span class="ident">mock</span><span class="punct">("</span><span class="string">don't talk to me</span><span class="punct">")</span>
|
231
231
|
<span class="linenum">28</span> <span class="ident">mock</span><span class="punct">.</span><span class="ident">should_not_receive</span><span class="punct">(</span><span class="symbol">:any_message_at_all</span><span class="punct">)</span>
|
232
232
|
<span class="offending"><span class="linenum">29</span> <span class="ident">mock</span><span class="punct">.</span><span class="ident">any_message_at_all</span></span>
|
@@ -239,9 +239,9 @@ a {
|
|
239
239
|
<div class="failure" id="failure_4">
|
240
240
|
<div class="message"><pre>Expected pending 'here is the bug' to fail. No Error was raised.</pre></div>
|
241
241
|
<div class="backtrace"><pre><a href="txmt://open?url=file:///Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/examples/failing/mocking_example.rb&line=33">./examples/failing/mocking_example.rb:33</a>
|
242
|
-
<a href="txmt://open?url=file:///Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/
|
243
|
-
<a href="txmt://open?url=file:///Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/
|
244
|
-
<a href="txmt://open?url=file:///Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/
|
242
|
+
<a href="txmt://open?url=file:///Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb&line=51">/Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb:51</a>
|
243
|
+
<a href="txmt://open?url=file:///Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb&line=47">/Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb:47</a> :in `chdir'
|
244
|
+
<a href="txmt://open?url=file:///Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb&line=47">/Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb:47</a> </pre></div>
|
245
245
|
<pre class="ruby"><code><span class="linenum">31</span>
|
246
246
|
<span class="linenum">32</span> <span class="ident">it</span> <span class="punct">"</span><span class="string">has a bug we need to fix</span><span class="punct">"</span> <span class="keyword">do</span>
|
247
247
|
<span class="offending"><span class="linenum">33</span> <span class="ident">pending</span> <span class="punct">"</span><span class="string">here is the bug</span><span class="punct">"</span> <span class="keyword">do</span></span>
|
@@ -269,9 +269,9 @@ Diff:
|
|
269
269
|
framework for Ruby
|
270
270
|
</pre></div>
|
271
271
|
<div class="backtrace"><pre><a href="txmt://open?url=file:///Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/examples/failing/diffing_spec.rb&line=13">./examples/failing/diffing_spec.rb:13</a>
|
272
|
-
<a href="txmt://open?url=file:///Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/
|
273
|
-
<a href="txmt://open?url=file:///Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/
|
274
|
-
<a href="txmt://open?url=file:///Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/
|
272
|
+
<a href="txmt://open?url=file:///Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb&line=51">/Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb:51</a>
|
273
|
+
<a href="txmt://open?url=file:///Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb&line=47">/Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb:47</a> :in `chdir'
|
274
|
+
<a href="txmt://open?url=file:///Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb&line=47">/Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb:47</a> </pre></div>
|
275
275
|
<pre class="ruby"><code><span class="linenum">11</span><span class="ident">framework</span> <span class="keyword">for</span> <span class="constant">Ruby</span>
|
276
276
|
<span class="linenum">12</span><span class="constant">EOF</span>
|
277
277
|
<span class="offending"><span class="linenum">13</span> <span class="ident">usa</span><span class="punct">.</span><span class="ident">should</span> <span class="punct">==</span> <span class="ident">uk</span></span>
|
@@ -300,9 +300,9 @@ Diff:
|
|
300
300
|
>
|
301
301
|
</pre></div>
|
302
302
|
<div class="backtrace"><pre><a href="txmt://open?url=file:///Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/examples/failing/diffing_spec.rb&line=34">./examples/failing/diffing_spec.rb:34</a>
|
303
|
-
<a href="txmt://open?url=file:///Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/
|
304
|
-
<a href="txmt://open?url=file:///Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/
|
305
|
-
<a href="txmt://open?url=file:///Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/
|
303
|
+
<a href="txmt://open?url=file:///Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb&line=51">/Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb:51</a>
|
304
|
+
<a href="txmt://open?url=file:///Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb&line=47">/Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb:47</a> :in `chdir'
|
305
|
+
<a href="txmt://open?url=file:///Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb&line=47">/Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb:47</a> </pre></div>
|
306
306
|
<pre class="ruby"><code><span class="linenum">32</span> <span class="ident">expected</span> <span class="punct">=</span> <span class="constant">Animal</span><span class="punct">.</span><span class="ident">new</span> <span class="punct">"</span><span class="string">bob</span><span class="punct">",</span> <span class="punct">"</span><span class="string">giraffe</span><span class="punct">"</span>
|
307
307
|
<span class="linenum">33</span> <span class="ident">actual</span> <span class="punct">=</span> <span class="constant">Animal</span><span class="punct">.</span><span class="ident">new</span> <span class="punct">"</span><span class="string">bob</span><span class="punct">",</span> <span class="punct">"</span><span class="string">tortoise</span><span class="punct">"</span>
|
308
308
|
<span class="offending"><span class="linenum">34</span> <span class="ident">expected</span><span class="punct">.</span><span class="ident">should</span> <span class="ident">eql</span><span class="punct">(</span><span class="ident">actual</span><span class="punct">)</span></span>
|
@@ -43,7 +43,7 @@ function makeYellow(element_id) {
|
|
43
43
|
</script>
|
44
44
|
<style type="text/css">
|
45
45
|
#rspec-header {
|
46
|
-
background: #65C400; color: #fff; height:
|
46
|
+
background: #65C400; color: #fff; height: 4em;
|
47
47
|
}
|
48
48
|
|
49
49
|
.rspec-report h1 {
|
@@ -51,7 +51,7 @@ function makeYellow(element_id) {
|
|
51
51
|
padding: 10px;
|
52
52
|
font-family: "Lucida Grande", Helvetica, sans-serif;
|
53
53
|
font-size: 1.8em;
|
54
|
-
|
54
|
+
position: absolute;
|
55
55
|
}
|
56
56
|
|
57
57
|
#summary {
|
@@ -191,10 +191,12 @@ a {
|
|
191
191
|
<span class="failed_spec_name">should fail when expected message not received</span>
|
192
192
|
<div class="failure" id="failure_1">
|
193
193
|
<div class="message"><pre>Mock 'poke me' expected :poke with (any args) once, but received it 0 times</pre></div>
|
194
|
-
<div class="backtrace"><pre><a href="txmt://open?url=file:///
|
195
|
-
<a href="txmt://open?url=file:///
|
196
|
-
<a href="txmt://open?url=file:///
|
197
|
-
<a href="txmt://open?url=file:///
|
194
|
+
<div class="backtrace"><pre><a href="txmt://open?url=file:///home/btakita/workspace/rspec-dev/example_rails_app/vendor/plugins/rspec/examples/failing/mocking_example.rb&line=13">./examples/failing/mocking_example.rb:13</a>
|
195
|
+
<a href="txmt://open?url=file:///home/btakita/workspace/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb&line=51">/home/btakita/workspace/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb:51</a>
|
196
|
+
<a href="txmt://open?url=file:///home/btakita/workspace/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb&line=47">/home/btakita/workspace/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb:47</a> :in `chdir'
|
197
|
+
<a href="txmt://open?url=file:///home/btakita/workspace/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb&line=47">/home/btakita/workspace/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb:47</a>
|
198
|
+
-e:1:in `load'
|
199
|
+
-e:1</pre></div>
|
198
200
|
<pre class="ruby"><code><span class="linenum">11</span> <span class="ident">it</span> <span class="punct">"</span><span class="string">should fail when expected message not received</span><span class="punct">"</span> <span class="keyword">do</span>
|
199
201
|
<span class="linenum">12</span> <span class="ident">mock</span> <span class="punct">=</span> <span class="ident">mock</span><span class="punct">("</span><span class="string">poke me</span><span class="punct">")</span>
|
200
202
|
<span class="offending"><span class="linenum">13</span> <span class="ident">mock</span><span class="punct">.</span><span class="ident">should_receive</span><span class="punct">(</span><span class="symbol">:poke</span><span class="punct">)</span></span>
|
@@ -207,10 +209,12 @@ a {
|
|
207
209
|
<span class="failed_spec_name">should fail when messages are received out of order</span>
|
208
210
|
<div class="failure" id="failure_2">
|
209
211
|
<div class="message"><pre>Mock 'one two three' received :three out of order</pre></div>
|
210
|
-
<div class="backtrace"><pre><a href="txmt://open?url=file:///
|
211
|
-
<a href="txmt://open?url=file:///
|
212
|
-
<a href="txmt://open?url=file:///
|
213
|
-
<a href="txmt://open?url=file:///
|
212
|
+
<div class="backtrace"><pre><a href="txmt://open?url=file:///home/btakita/workspace/rspec-dev/example_rails_app/vendor/plugins/rspec/examples/failing/mocking_example.rb&line=22">./examples/failing/mocking_example.rb:22</a>
|
213
|
+
<a href="txmt://open?url=file:///home/btakita/workspace/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb&line=51">/home/btakita/workspace/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb:51</a>
|
214
|
+
<a href="txmt://open?url=file:///home/btakita/workspace/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb&line=47">/home/btakita/workspace/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb:47</a> :in `chdir'
|
215
|
+
<a href="txmt://open?url=file:///home/btakita/workspace/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb&line=47">/home/btakita/workspace/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb:47</a>
|
216
|
+
-e:1:in `load'
|
217
|
+
-e:1</pre></div>
|
214
218
|
<pre class="ruby"><code><span class="linenum">20</span> <span class="ident">mock</span><span class="punct">.</span><span class="ident">should_receive</span><span class="punct">(</span><span class="symbol">:three</span><span class="punct">).</span><span class="ident">ordered</span>
|
215
219
|
<span class="linenum">21</span> <span class="ident">mock</span><span class="punct">.</span><span class="ident">one</span>
|
216
220
|
<span class="offending"><span class="linenum">22</span> <span class="ident">mock</span><span class="punct">.</span><span class="ident">three</span></span>
|
@@ -223,10 +227,12 @@ a {
|
|
223
227
|
<span class="failed_spec_name">should get yelled at when sending unexpected messages</span>
|
224
228
|
<div class="failure" id="failure_3">
|
225
229
|
<div class="message"><pre>Mock 'don't talk to me' expected :any_message_at_all with (no args) 0 times, but received it once</pre></div>
|
226
|
-
<div class="backtrace"><pre><a href="txmt://open?url=file:///
|
227
|
-
<a href="txmt://open?url=file:///
|
228
|
-
<a href="txmt://open?url=file:///
|
229
|
-
<a href="txmt://open?url=file:///
|
230
|
+
<div class="backtrace"><pre><a href="txmt://open?url=file:///home/btakita/workspace/rspec-dev/example_rails_app/vendor/plugins/rspec/examples/failing/mocking_example.rb&line=29">./examples/failing/mocking_example.rb:29</a>
|
231
|
+
<a href="txmt://open?url=file:///home/btakita/workspace/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb&line=51">/home/btakita/workspace/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb:51</a>
|
232
|
+
<a href="txmt://open?url=file:///home/btakita/workspace/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb&line=47">/home/btakita/workspace/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb:47</a> :in `chdir'
|
233
|
+
<a href="txmt://open?url=file:///home/btakita/workspace/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb&line=47">/home/btakita/workspace/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb:47</a>
|
234
|
+
-e:1:in `load'
|
235
|
+
-e:1</pre></div>
|
230
236
|
<pre class="ruby"><code><span class="linenum">27</span> <span class="ident">mock</span> <span class="punct">=</span> <span class="ident">mock</span><span class="punct">("</span><span class="string">don't talk to me</span><span class="punct">")</span>
|
231
237
|
<span class="linenum">28</span> <span class="ident">mock</span><span class="punct">.</span><span class="ident">should_not_receive</span><span class="punct">(</span><span class="symbol">:any_message_at_all</span><span class="punct">)</span>
|
232
238
|
<span class="offending"><span class="linenum">29</span> <span class="ident">mock</span><span class="punct">.</span><span class="ident">any_message_at_all</span></span>
|
@@ -238,10 +244,12 @@ a {
|
|
238
244
|
<span class="failed_spec_name">has a bug we need to fix</span>
|
239
245
|
<div class="failure" id="failure_4">
|
240
246
|
<div class="message"><pre>Expected pending 'here is the bug' to fail. No Error was raised.</pre></div>
|
241
|
-
<div class="backtrace"><pre><a href="txmt://open?url=file:///
|
242
|
-
<a href="txmt://open?url=file:///
|
243
|
-
<a href="txmt://open?url=file:///
|
244
|
-
<a href="txmt://open?url=file:///
|
247
|
+
<div class="backtrace"><pre><a href="txmt://open?url=file:///home/btakita/workspace/rspec-dev/example_rails_app/vendor/plugins/rspec/examples/failing/mocking_example.rb&line=33">./examples/failing/mocking_example.rb:33</a>
|
248
|
+
<a href="txmt://open?url=file:///home/btakita/workspace/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb&line=51">/home/btakita/workspace/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb:51</a>
|
249
|
+
<a href="txmt://open?url=file:///home/btakita/workspace/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb&line=47">/home/btakita/workspace/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb:47</a> :in `chdir'
|
250
|
+
<a href="txmt://open?url=file:///home/btakita/workspace/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb&line=47">/home/btakita/workspace/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb:47</a>
|
251
|
+
-e:1:in `load'
|
252
|
+
-e:1</pre></div>
|
245
253
|
<pre class="ruby"><code><span class="linenum">31</span>
|
246
254
|
<span class="linenum">32</span> <span class="ident">it</span> <span class="punct">"</span><span class="string">has a bug we need to fix</span><span class="punct">"</span> <span class="keyword">do</span>
|
247
255
|
<span class="offending"><span class="linenum">33</span> <span class="ident">pending</span> <span class="punct">"</span><span class="string">here is the bug</span><span class="punct">"</span> <span class="keyword">do</span></span>
|
@@ -268,10 +276,12 @@ Diff:
|
|
268
276
|
+behavior driven development
|
269
277
|
framework for Ruby
|
270
278
|
</pre></div>
|
271
|
-
<div class="backtrace"><pre><a href="txmt://open?url=file:///
|
272
|
-
<a href="txmt://open?url=file:///
|
273
|
-
<a href="txmt://open?url=file:///
|
274
|
-
<a href="txmt://open?url=file:///
|
279
|
+
<div class="backtrace"><pre><a href="txmt://open?url=file:///home/btakita/workspace/rspec-dev/example_rails_app/vendor/plugins/rspec/examples/failing/diffing_spec.rb&line=13">./examples/failing/diffing_spec.rb:13</a>
|
280
|
+
<a href="txmt://open?url=file:///home/btakita/workspace/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb&line=51">/home/btakita/workspace/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb:51</a>
|
281
|
+
<a href="txmt://open?url=file:///home/btakita/workspace/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb&line=47">/home/btakita/workspace/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb:47</a> :in `chdir'
|
282
|
+
<a href="txmt://open?url=file:///home/btakita/workspace/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb&line=47">/home/btakita/workspace/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb:47</a>
|
283
|
+
-e:1:in `load'
|
284
|
+
-e:1</pre></div>
|
275
285
|
<pre class="ruby"><code><span class="linenum">11</span><span class="ident">framework</span> <span class="keyword">for</span> <span class="constant">Ruby</span>
|
276
286
|
<span class="linenum">12</span><span class="constant">EOF</span>
|
277
287
|
<span class="offending"><span class="linenum">13</span> <span class="ident">usa</span><span class="punct">.</span><span class="ident">should</span> <span class="punct">==</span> <span class="ident">uk</span></span>
|
@@ -299,10 +309,12 @@ Diff:
|
|
299
309
|
+species=giraffe
|
300
310
|
>
|
301
311
|
</pre></div>
|
302
|
-
<div class="backtrace"><pre><a href="txmt://open?url=file:///
|
303
|
-
<a href="txmt://open?url=file:///
|
304
|
-
<a href="txmt://open?url=file:///
|
305
|
-
<a href="txmt://open?url=file:///
|
312
|
+
<div class="backtrace"><pre><a href="txmt://open?url=file:///home/btakita/workspace/rspec-dev/example_rails_app/vendor/plugins/rspec/examples/failing/diffing_spec.rb&line=34">./examples/failing/diffing_spec.rb:34</a>
|
313
|
+
<a href="txmt://open?url=file:///home/btakita/workspace/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb&line=51">/home/btakita/workspace/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb:51</a>
|
314
|
+
<a href="txmt://open?url=file:///home/btakita/workspace/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb&line=47">/home/btakita/workspace/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb:47</a> :in `chdir'
|
315
|
+
<a href="txmt://open?url=file:///home/btakita/workspace/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb&line=47">/home/btakita/workspace/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb:47</a>
|
316
|
+
-e:1:in `load'
|
317
|
+
-e:1</pre></div>
|
306
318
|
<pre class="ruby"><code><span class="linenum">32</span> <span class="ident">expected</span> <span class="punct">=</span> <span class="constant">Animal</span><span class="punct">.</span><span class="ident">new</span> <span class="punct">"</span><span class="string">bob</span><span class="punct">",</span> <span class="punct">"</span><span class="string">giraffe</span><span class="punct">"</span>
|
307
319
|
<span class="linenum">33</span> <span class="ident">actual</span> <span class="punct">=</span> <span class="constant">Animal</span><span class="punct">.</span><span class="ident">new</span> <span class="punct">"</span><span class="string">bob</span><span class="punct">",</span> <span class="punct">"</span><span class="string">tortoise</span><span class="punct">"</span>
|
308
320
|
<span class="offending"><span class="linenum">34</span> <span class="ident">expected</span><span class="punct">.</span><span class="ident">should</span> <span class="ident">eql</span><span class="punct">(</span><span class="ident">actual</span><span class="punct">)</span></span>
|
@@ -1,10 +1,8 @@
|
|
1
1
|
require File.dirname(__FILE__) + '/../../../spec_helper'
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
return
|
7
|
-
end
|
2
|
+
|
3
|
+
begin # See rescue all the way at the bottom
|
4
|
+
|
5
|
+
require 'nokogiri' # Needed to compare generated with wanted HTML
|
8
6
|
require 'spec/runner/formatter/text_mate_formatter'
|
9
7
|
|
10
8
|
module Spec
|
@@ -51,10 +49,10 @@ module Spec
|
|
51
49
|
# Spec::Runner::CommandLine.run(
|
52
50
|
# ::Spec::Runner::OptionParser.parse(args, err, out)
|
53
51
|
# )
|
54
|
-
#
|
52
|
+
#
|
55
53
|
# seconds = /\d+\.\d+ seconds/
|
56
54
|
# html = out.string.gsub seconds, 'x seconds'
|
57
|
-
#
|
55
|
+
#
|
58
56
|
# File.open(expected_file, 'w') {|io| io.write(html)}
|
59
57
|
# end
|
60
58
|
# end
|
@@ -102,3 +100,7 @@ module Spec
|
|
102
100
|
end
|
103
101
|
end
|
104
102
|
end
|
103
|
+
|
104
|
+
rescue LoadError
|
105
|
+
warn "nokogiri not loaded -- skipping TextMateFormatter specs"
|
106
|
+
end
|