rspec 1.2.8 → 1.2.9
Sign up to get free protection for your applications and to get access to all the features.
- data/History.rdoc +41 -2
- data/Manifest.txt +11 -10
- data/Rakefile +47 -22
- data/Ruby1.9.rdoc +1 -2
- data/Upgrade.rdoc +56 -7
- data/bin/spec +2 -1
- data/cucumber.yml +3 -1
- data/examples/failing/README.txt +7 -3
- data/examples/failing/failing_implicit_docstrings_example.rb +0 -2
- data/examples/failing/mocking_example.rb +0 -2
- data/examples/failing/partial_mock_example.rb +0 -2
- data/examples/failing/pending_example.rb +0 -2
- data/examples/failing/predicate_example.rb +0 -2
- data/examples/failing/team_spec.rb +0 -3
- data/examples/failing/timeout_behaviour.rb +0 -2
- data/examples/passing/custom_formatter.rb +0 -1
- data/examples/passing/dynamic_spec.rb +0 -2
- data/examples/passing/file_accessor.rb +1 -2
- data/examples/passing/file_accessor_spec.rb +1 -2
- data/examples/passing/filtered_formatter.rb +0 -1
- data/examples/passing/greeter_spec.rb +0 -1
- data/examples/passing/helper_method_example.rb +0 -2
- data/examples/passing/implicit_docstrings_example.rb +0 -2
- data/examples/passing/io_processor_spec.rb +1 -2
- data/examples/passing/mocking_example.rb +0 -2
- data/examples/passing/nested_classes_example.rb +1 -2
- data/examples/passing/options_example.rb +0 -2
- data/examples/passing/partial_mock_example.rb +0 -2
- data/examples/passing/pending_example.rb +0 -2
- data/examples/passing/predicate_example.rb +0 -2
- data/examples/passing/shared_example_group_example.rb +0 -2
- data/examples/passing/simple_matcher_example.rb +0 -2
- data/examples/passing/stack_spec.rb +2 -3
- data/examples/passing/stack_spec_with_nested_example_groups.rb +2 -3
- data/examples/passing/stubbing_example.rb +0 -2
- data/examples/passing/yielding_example.rb +0 -2
- data/features/before_and_after_blocks/before_and_after_blocks.feature +4 -4
- data/features/command_line/line_number_option.feature +14 -14
- data/features/command_line/line_number_option_with_example_with_no_name.feature +2 -2
- data/features/example_groups/define_example_attribute.feature +41 -0
- data/features/example_groups/example_group_with_should_methods.feature +1 -1
- data/features/example_groups/implicit_docstrings.feature +7 -7
- data/features/example_groups/nested_groups.feature +2 -2
- data/features/expectations/customized_message.feature +4 -4
- data/features/expectations/expect_change.feature +4 -4
- data/features/expectations/expect_error.feature +4 -4
- data/features/extensions/custom_example_group.feature +10 -10
- data/features/formatters/custom_formatter.feature +3 -3
- data/features/interop/examples_and_tests_together.feature +10 -6
- data/features/interop/rspec_output.feature +1 -1
- data/features/interop/test_case_with_should_methods.feature +1 -1
- data/features/load_paths/add_lib_to_load_path.feature +20 -0
- data/features/load_paths/add_spec_to_load_path.feature +20 -0
- data/features/matchers/define_diffable_matcher.feature +2 -2
- data/features/matchers/define_matcher.feature +19 -19
- data/features/matchers/define_matcher_outside_rspec.feature +2 -3
- data/features/matchers/define_matcher_with_fluent_interface.feature +2 -2
- data/features/matchers/define_wrapped_matcher.feature +29 -0
- data/features/mock_framework_integration/use_flexmock.feature +1 -1
- data/features/mock_framework_integration/use_mocha.feature +1 -1
- data/features/mock_framework_integration/use_rr.feature +1 -1
- data/features/mocks/mix_stubs_and_mocks.feature +2 -2
- data/features/mocks/stub_implementation.feature +1 -1
- data/features/pending/pending_examples.feature +16 -16
- data/features/runner/specify_line_number.feature +4 -4
- data/features/spec_helper/spec_helper.feature +25 -0
- data/features/step_definitions/running_rspec_steps.rb +4 -2
- data/features/subject/explicit_subject.feature +2 -2
- data/features/subject/implicit_subject.feature +14 -2
- data/features/support/env.rb +6 -3
- data/lib/spec/adapters/mock_frameworks/mocha.rb +6 -1
- data/lib/spec/example/example_group_methods.rb +7 -0
- data/lib/spec/example/example_methods.rb +1 -1
- data/lib/spec/example/subject.rb +8 -0
- data/lib/spec/interop/test.rb +27 -1
- data/lib/spec/interop/test/unit/testcase.rb +1 -1
- data/lib/spec/matchers/exist.rb +2 -2
- data/lib/spec/matchers/extensions/instance_exec.rb +28 -20
- data/lib/spec/matchers/matcher.rb +21 -20
- data/lib/spec/mocks/argument_matchers.rb +17 -13
- data/lib/spec/mocks/error_generator.rb +14 -3
- data/lib/spec/mocks/{spec_methods.rb → example_methods.rb} +25 -11
- data/lib/spec/mocks/framework.rb +1 -1
- data/lib/spec/mocks/methods.rb +15 -0
- data/lib/spec/mocks/mock.rb +16 -10
- data/lib/spec/mocks/proxy.rb +1 -1
- data/lib/spec/rake/spectask.rb +3 -3
- data/lib/spec/runner/backtrace_tweaker.rb +41 -22
- data/lib/spec/runner/configuration.rb +18 -1
- data/lib/spec/runner/differs/default.rb +1 -1
- data/lib/spec/runner/drb_command_line.rb +5 -2
- data/lib/spec/runner/formatter/base_text_formatter.rb +8 -3
- data/lib/spec/runner/option_parser.rb +21 -15
- data/lib/spec/runner/options.rb +54 -23
- data/lib/spec/version.rb +3 -3
- data/resources/helpers/cmdline.rb +0 -1
- data/spec/autotest/autotest_helper.rb +4 -6
- data/spec/autotest/discover_spec.rb +2 -2
- data/spec/autotest/failed_results_re_spec.rb +1 -1
- data/spec/autotest/rspec_spec.rb +1 -1
- data/spec/spec/dsl/main_spec.rb +1 -1
- data/spec/spec/example/example_group_class_definition_spec.rb +1 -1
- data/spec/spec/example/example_group_factory_spec.rb +1 -1
- data/spec/spec/example/example_group_methods_spec.rb +21 -1
- data/spec/spec/example/example_group_proxy_spec.rb +1 -1
- data/spec/spec/example/example_group_spec.rb +1 -1
- data/spec/spec/example/example_matcher_spec.rb +1 -1
- data/spec/spec/example/example_methods_spec.rb +1 -1
- data/spec/spec/example/example_proxy_spec.rb +1 -1
- data/spec/spec/example/helper_method_spec.rb +1 -1
- data/spec/spec/example/nested_example_group_spec.rb +1 -1
- data/spec/spec/example/predicate_matcher_spec.rb +1 -1
- data/spec/spec/example/shared_example_group_spec.rb +1 -1
- data/spec/spec/example/subclassing_example_group_spec.rb +1 -1
- data/spec/spec/example/subject_spec.rb +17 -1
- data/spec/spec/expectations/differs/default_spec.rb +16 -3
- data/spec/spec/expectations/extensions/kernel_spec.rb +1 -1
- data/spec/spec/expectations/fail_with_spec.rb +1 -1
- data/spec/spec/expectations/handler_spec.rb +1 -1
- data/spec/spec/expectations/wrap_expectation_spec.rb +1 -1
- data/spec/spec/interop/test/unit/resources/test_case_with_various_names.rb +22 -0
- data/spec/spec/interop/test/unit/spec_spec.rb +1 -1
- data/spec/spec/interop/test/unit/test_unit_spec_helper.rb +2 -2
- data/spec/spec/interop/test/unit/testcase_spec.rb +7 -2
- data/spec/spec/interop/test/unit/testsuite_adapter_spec.rb +1 -1
- data/spec/spec/matchers/be_close_spec.rb +1 -1
- data/spec/spec/matchers/be_instance_of_spec.rb +1 -1
- data/spec/spec/matchers/be_kind_of_spec.rb +1 -1
- data/spec/spec/matchers/be_spec.rb +13 -1
- data/spec/spec/matchers/change_spec.rb +1 -1
- data/spec/spec/matchers/compatibility_spec.rb +1 -1
- data/spec/spec/matchers/description_generation_spec.rb +1 -1
- data/spec/spec/matchers/dsl_spec.rb +1 -1
- data/spec/spec/matchers/eql_spec.rb +1 -1
- data/spec/spec/matchers/equal_spec.rb +1 -1
- data/spec/spec/matchers/exist_spec.rb +6 -2
- data/spec/spec/matchers/has_spec.rb +19 -1
- data/spec/spec/matchers/have_spec.rb +1 -1
- data/spec/spec/matchers/include_spec.rb +1 -1
- data/spec/spec/matchers/match_array_spec.rb +1 -1
- data/spec/spec/matchers/match_spec.rb +1 -1
- data/spec/spec/matchers/matcher_methods_spec.rb +1 -1
- data/spec/spec/matchers/matcher_spec.rb +55 -28
- data/spec/spec/matchers/matchers_spec.rb +1 -1
- data/spec/spec/matchers/operator_matcher_spec.rb +1 -1
- data/spec/spec/matchers/raise_error_spec.rb +1 -1
- data/spec/spec/matchers/respond_to_spec.rb +1 -1
- data/spec/spec/matchers/satisfy_spec.rb +1 -1
- data/spec/spec/matchers/simple_matcher_spec.rb +1 -1
- data/spec/spec/matchers/throw_symbol_spec.rb +1 -1
- data/spec/spec/mocks/any_number_of_times_spec.rb +1 -1
- data/spec/spec/mocks/argument_expectation_spec.rb +1 -1
- data/spec/spec/mocks/argument_matchers_spec.rb +19 -0
- data/spec/spec/mocks/at_least_spec.rb +1 -1
- data/spec/spec/mocks/at_most_spec.rb +1 -1
- data/spec/spec/mocks/bug_report_10260_spec.rb +1 -1
- data/spec/spec/mocks/bug_report_10263_spec.rb +1 -1
- data/spec/spec/mocks/bug_report_11545_spec.rb +1 -1
- data/spec/spec/mocks/bug_report_15719_spec.rb +3 -3
- data/spec/spec/mocks/bug_report_496_spec.rb +1 -1
- data/spec/spec/mocks/bug_report_600_spec.rb +1 -1
- data/spec/spec/mocks/bug_report_7611_spec.rb +1 -1
- data/spec/spec/mocks/bug_report_7805_spec.rb +1 -1
- data/spec/spec/mocks/bug_report_8165_spec.rb +1 -1
- data/spec/spec/mocks/bug_report_8302_spec.rb +1 -1
- data/spec/spec/mocks/bug_report_830_spec.rb +1 -1
- data/spec/spec/mocks/double_spec.rb +12 -0
- data/spec/spec/mocks/failing_argument_matchers_spec.rb +6 -6
- data/spec/spec/mocks/hash_including_matcher_spec.rb +1 -1
- data/spec/spec/mocks/hash_not_including_matcher_spec.rb +1 -1
- data/spec/spec/mocks/mock_ordering_spec.rb +4 -4
- data/spec/spec/mocks/mock_space_spec.rb +1 -1
- data/spec/spec/mocks/mock_spec.rb +20 -24
- data/spec/spec/mocks/multiple_return_value_spec.rb +8 -8
- data/spec/spec/mocks/nil_expectation_warning_spec.rb +1 -1
- data/spec/spec/mocks/null_object_mock_spec.rb +1 -1
- data/spec/spec/mocks/once_counts_spec.rb +1 -1
- data/spec/spec/mocks/options_hash_spec.rb +1 -1
- data/spec/spec/mocks/partial_mock_spec.rb +1 -1
- data/spec/spec/mocks/partial_mock_using_mocks_directly_spec.rb +1 -1
- data/spec/spec/mocks/passing_argument_matchers_spec.rb +1 -1
- data/spec/spec/mocks/precise_counts_spec.rb +1 -1
- data/spec/spec/mocks/record_messages_spec.rb +1 -1
- data/spec/spec/mocks/stub_chain_spec.rb +1 -1
- data/spec/spec/mocks/stub_implementation_spec.rb +1 -1
- data/spec/spec/mocks/stub_spec.rb +14 -9
- data/spec/spec/mocks/stubbed_message_expectations_spec.rb +2 -2
- data/spec/spec/mocks/twice_counts_spec.rb +1 -1
- data/spec/spec/mocks/unstub_spec.rb +1 -1
- data/spec/spec/package/bin_spec_spec.rb +4 -10
- data/spec/spec/rake/spectask_spec.rb +2 -2
- data/spec/spec/runner/class_and_argument_parser_spec.rb +1 -1
- data/spec/spec/runner/command_line_spec.rb +1 -1
- data/spec/spec/runner/configuration_spec.rb +15 -6
- data/spec/spec/runner/drb_command_line_spec.rb +1 -1
- data/spec/spec/runner/example_group_runner_spec.rb +1 -1
- data/spec/spec/runner/formatter/base_formatter_spec.rb +1 -1
- data/spec/spec/runner/formatter/base_text_formatter_spec.rb +10 -1
- data/spec/spec/runner/formatter/failing_example_groups_formatter_spec.rb +1 -1
- data/spec/spec/runner/formatter/failing_examples_formatter_spec.rb +1 -1
- data/spec/spec/runner/formatter/html_formatted-1.8.6-jruby.html +72 -76
- data/spec/spec/runner/formatter/html_formatted-1.8.6.html +50 -50
- data/spec/spec/runner/formatter/html_formatted-1.8.7.html +50 -50
- data/spec/spec/runner/formatter/html_formatted-1.9.1.html +61 -69
- data/spec/spec/runner/formatter/html_formatter_spec.rb +26 -26
- data/spec/spec/runner/formatter/nested_text_formatter_spec.rb +1 -1
- data/spec/spec/runner/formatter/profile_formatter_spec.rb +1 -1
- data/spec/spec/runner/formatter/progress_bar_formatter_spec.rb +13 -9
- data/spec/spec/runner/formatter/snippet_extractor_spec.rb +1 -1
- data/spec/spec/runner/formatter/specdoc_formatter_spec.rb +1 -1
- data/spec/spec/runner/formatter/{text_mate_formatted-1.8.4.html → text_mate_formatted-1.8.6-jruby.html} +64 -59
- data/spec/spec/runner/formatter/text_mate_formatted-1.8.6.html +46 -46
- data/spec/spec/runner/formatter/text_mate_formatted-1.8.7.html +46 -46
- data/spec/spec/runner/formatter/text_mate_formatted-1.9.1.html +55 -63
- data/spec/spec/runner/formatter/text_mate_formatter_spec.rb +3 -3
- data/spec/spec/runner/heckle_runner_spec.rb +1 -1
- data/spec/spec/runner/heckler_spec.rb +1 -1
- data/spec/spec/runner/line_number_query/line_number_query_fixture.rb +1 -1
- data/spec/spec/runner/line_number_query_spec.rb +10 -1
- data/spec/spec/runner/noisy_backtrace_tweaker_spec.rb +22 -16
- data/spec/spec/runner/option_parser_spec.rb +48 -14
- data/spec/spec/runner/options_spec.rb +16 -2
- data/spec/spec/runner/output_one_time_fixture.rb +1 -1
- data/spec/spec/runner/output_one_time_fixture_runner.rb +2 -3
- data/spec/spec/runner/output_one_time_spec.rb +6 -7
- data/spec/spec/runner/quiet_backtrace_tweaker_spec.rb +65 -22
- data/spec/spec/runner/reporter_spec.rb +1 -1
- data/spec/spec/runner_spec.rb +1 -1
- data/spec/spec_helper.rb +5 -7
- data/spec/{spec → support}/spec_classes.rb +0 -0
- metadata +58 -17
- data/examples/failing/spec_helper.rb +0 -3
- data/examples/passing/spec_helper.rb +0 -3
- data/features/heckle/heckle.feature +0 -56
- data/spec/rspec_suite.rb +0 -6
- data/spec/spec/runner/formatter/html_formatted-1.8.4.html +0 -366
- data/spec/spec/runner/formatter/html_formatted-1.8.5-jruby.html +0 -387
- data/spec/spec/runner/formatter/html_formatted-1.8.5.html +0 -372
@@ -1,4 +1,4 @@
|
|
1
|
-
require
|
1
|
+
require 'spec_helper'
|
2
2
|
require 'spec/runner/formatter/progress_bar_formatter'
|
3
3
|
|
4
4
|
module Spec
|
@@ -45,29 +45,33 @@ Finished in 3 seconds
|
|
45
45
|
end
|
46
46
|
|
47
47
|
it "should push green dot for passing spec" do
|
48
|
-
@
|
49
|
-
@
|
48
|
+
@formatter.stub(:output_to_file?) {false}
|
49
|
+
@io.stub(:tty?) {true}
|
50
|
+
@options.stub(:colour) {true}
|
50
51
|
@formatter.example_passed("spec")
|
51
52
|
@io.string.should == "\e[32m.\e[0m"
|
52
53
|
end
|
53
54
|
|
54
55
|
it "should push red F for failure spec" do
|
55
|
-
@
|
56
|
-
@
|
56
|
+
@formatter.stub(:output_to_file?) {false}
|
57
|
+
@io.stub(:tty?) {true}
|
58
|
+
@options.stub(:colour) {true}
|
57
59
|
@formatter.example_failed("spec", 98, Spec::Runner::Reporter::Failure.new("g", "c s", Spec::Expectations::ExpectationNotMetError.new))
|
58
60
|
@io.string.should eql("\e[31mF\e[0m")
|
59
61
|
end
|
60
62
|
|
61
63
|
it "should push red F for error spec" do
|
62
|
-
@
|
63
|
-
@
|
64
|
+
@formatter.stub(:output_to_file?) {false}
|
65
|
+
@io.stub(:tty?) {true}
|
66
|
+
@options.stub(:colour) {true}
|
64
67
|
@formatter.example_failed("spec", 98, Spec::Runner::Reporter::Failure.new("g", "c s", RuntimeError.new))
|
65
68
|
@io.string.should eql("\e[31mF\e[0m")
|
66
69
|
end
|
67
70
|
|
68
71
|
it "should push blue F for fixed pending spec" do
|
69
|
-
@
|
70
|
-
@
|
72
|
+
@formatter.stub(:output_to_file?) {false}
|
73
|
+
@io.stub(:tty?) {true}
|
74
|
+
@options.stub(:colour) {true}
|
71
75
|
@formatter.example_failed("spec", 98, Spec::Runner::Reporter::Failure.new("g", "c s", Spec::Example::PendingExampleFixedError.new))
|
72
76
|
@io.string.should eql("\e[34mF\e[0m")
|
73
77
|
end
|
@@ -16,9 +16,6 @@
|
|
16
16
|
font-size: 80%;
|
17
17
|
}
|
18
18
|
</style>
|
19
|
-
</head>
|
20
|
-
<body>
|
21
|
-
<div class="rspec-report">
|
22
19
|
<script type="text/javascript">
|
23
20
|
// <![CDATA[
|
24
21
|
function moveProgressBar(percentDone) {
|
@@ -46,7 +43,7 @@ function makeYellow(element_id) {
|
|
46
43
|
</script>
|
47
44
|
<style type="text/css">
|
48
45
|
#rspec-header {
|
49
|
-
background: #65C400; color: #fff;
|
46
|
+
background: #65C400; color: #fff; height: 4em;
|
50
47
|
}
|
51
48
|
|
52
49
|
.rspec-report h1 {
|
@@ -54,15 +51,16 @@ function makeYellow(element_id) {
|
|
54
51
|
padding: 10px;
|
55
52
|
font-family: "Lucida Grande", Helvetica, sans-serif;
|
56
53
|
font-size: 1.8em;
|
54
|
+
position: absolute;
|
57
55
|
}
|
58
56
|
|
59
57
|
#summary {
|
60
58
|
margin: 0; padding: 5px 10px;
|
61
59
|
font-family: "Lucida Grande", Helvetica, sans-serif;
|
62
60
|
text-align: right;
|
63
|
-
position: absolute;
|
64
61
|
top: 0px;
|
65
62
|
right: 0px;
|
63
|
+
float:right;
|
66
64
|
}
|
67
65
|
|
68
66
|
#summary p {
|
@@ -165,9 +163,14 @@ a {
|
|
165
163
|
}
|
166
164
|
|
167
165
|
</style>
|
166
|
+
</head>
|
167
|
+
<body>
|
168
|
+
<div class="rspec-report">
|
168
169
|
|
169
170
|
<div id="rspec-header">
|
170
|
-
<
|
171
|
+
<div id="label">
|
172
|
+
<h1>RSpec Code Examples</h1>
|
173
|
+
</div>
|
171
174
|
|
172
175
|
<div id="summary">
|
173
176
|
<p id="totals"> </p>
|
@@ -187,45 +190,47 @@ a {
|
|
187
190
|
<dd class="spec failed">
|
188
191
|
<span class="failed_spec_name">should fail when expected message not received</span>
|
189
192
|
<div class="failure" id="failure_1">
|
190
|
-
<div class="message"><pre>Mock
|
191
|
-
<div class="backtrace"><pre><a href="txmt://open?url=file
|
192
|
-
<a href="txmt://open?url=file
|
193
|
-
<a href="txmt://open?url=file
|
194
|
-
|
195
|
-
<span class="linenum">
|
196
|
-
<span class="
|
197
|
-
<span class="linenum">
|
198
|
-
<span class="linenum">
|
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://./examples/failing/mocking_example.rb&line=11">examples/failing/mocking_example.rb:11</a>
|
195
|
+
<a href="txmt://open?url=file://./spec/spec/runner/formatter/text_mate_formatter_spec.rb&line=49">./spec/spec/runner/formatter/text_mate_formatter_spec.rb:49</a>
|
196
|
+
<a href="txmt://open?url=file://./spec/spec/runner/formatter/text_mate_formatter_spec.rb&line=45">./spec/spec/runner/formatter/text_mate_formatter_spec.rb:45</a> :in `chdir'
|
197
|
+
<a href="txmt://open?url=file://./spec/spec/runner/formatter/text_mate_formatter_spec.rb&line=45">./spec/spec/runner/formatter/text_mate_formatter_spec.rb:45</a> </pre></div>
|
198
|
+
<pre class="ruby"><code><span class="linenum">9</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
|
+
<span class="linenum">10</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
|
+
<span class="offending"><span class="linenum">11</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>
|
201
|
+
<span class="linenum">12</span> <span class="keyword">end</span>
|
202
|
+
<span class="linenum">13</span> </code></pre>
|
199
203
|
</div>
|
200
204
|
</dd>
|
201
205
|
<script type="text/javascript">moveProgressBar('17.6');</script>
|
202
206
|
<dd class="spec failed">
|
203
207
|
<span class="failed_spec_name">should fail when messages are received out of order</span>
|
204
208
|
<div class="failure" id="failure_2">
|
205
|
-
<div class="message"><pre>Mock
|
206
|
-
<div class="backtrace"><pre><a href="txmt://open?url=file
|
207
|
-
<a href="txmt://open?url=file
|
208
|
-
<a href="txmt://open?url=file
|
209
|
-
|
210
|
-
<span class="linenum">
|
211
|
-
<span class="
|
212
|
-
<span class="linenum">
|
213
|
-
<span class="linenum">
|
209
|
+
<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://./examples/failing/mocking_example.rb&line=20">examples/failing/mocking_example.rb:20</a>
|
211
|
+
<a href="txmt://open?url=file://./spec/spec/runner/formatter/text_mate_formatter_spec.rb&line=49">./spec/spec/runner/formatter/text_mate_formatter_spec.rb:49</a>
|
212
|
+
<a href="txmt://open?url=file://./spec/spec/runner/formatter/text_mate_formatter_spec.rb&line=45">./spec/spec/runner/formatter/text_mate_formatter_spec.rb:45</a> :in `chdir'
|
213
|
+
<a href="txmt://open?url=file://./spec/spec/runner/formatter/text_mate_formatter_spec.rb&line=45">./spec/spec/runner/formatter/text_mate_formatter_spec.rb:45</a> </pre></div>
|
214
|
+
<pre class="ruby"><code><span class="linenum">18</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
|
+
<span class="linenum">19</span> <span class="ident">mock</span><span class="punct">.</span><span class="ident">one</span>
|
216
|
+
<span class="offending"><span class="linenum">20</span> <span class="ident">mock</span><span class="punct">.</span><span class="ident">three</span></span>
|
217
|
+
<span class="linenum">21</span> <span class="ident">mock</span><span class="punct">.</span><span class="ident">two</span>
|
218
|
+
<span class="linenum">22</span> <span class="keyword">end</span></code></pre>
|
214
219
|
</div>
|
215
220
|
</dd>
|
216
221
|
<script type="text/javascript">moveProgressBar('23.5');</script>
|
217
222
|
<dd class="spec failed">
|
218
223
|
<span class="failed_spec_name">should get yelled at when sending unexpected messages</span>
|
219
224
|
<div class="failure" id="failure_3">
|
220
|
-
<div class="message"><pre>Mock
|
221
|
-
<div class="backtrace"><pre><a href="txmt://open?url=file
|
222
|
-
<a href="txmt://open?url=file
|
223
|
-
<a href="txmt://open?url=file
|
224
|
-
|
225
|
-
<span class="linenum">
|
226
|
-
<span class="
|
227
|
-
<span class="linenum">
|
228
|
-
<span class="linenum">
|
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
|
+
<div class="backtrace"><pre><a href="txmt://open?url=file://./examples/failing/mocking_example.rb&line=27">examples/failing/mocking_example.rb:27</a>
|
227
|
+
<a href="txmt://open?url=file://./spec/spec/runner/formatter/text_mate_formatter_spec.rb&line=49">./spec/spec/runner/formatter/text_mate_formatter_spec.rb:49</a>
|
228
|
+
<a href="txmt://open?url=file://./spec/spec/runner/formatter/text_mate_formatter_spec.rb&line=45">./spec/spec/runner/formatter/text_mate_formatter_spec.rb:45</a> :in `chdir'
|
229
|
+
<a href="txmt://open?url=file://./spec/spec/runner/formatter/text_mate_formatter_spec.rb&line=45">./spec/spec/runner/formatter/text_mate_formatter_spec.rb:45</a> </pre></div>
|
230
|
+
<pre class="ruby"><code><span class="linenum">25</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
|
+
<span class="linenum">26</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
|
+
<span class="offending"><span class="linenum">27</span> <span class="ident">mock</span><span class="punct">.</span><span class="ident">any_message_at_all</span></span>
|
233
|
+
<span class="linenum">28</span> <span class="keyword">end</span></code></pre>
|
229
234
|
</div>
|
230
235
|
</dd>
|
231
236
|
<script type="text/javascript">moveProgressBar('29.4');</script>
|
@@ -233,14 +238,15 @@ a {
|
|
233
238
|
<span class="failed_spec_name">has a bug we need to fix</span>
|
234
239
|
<div class="failure" id="failure_4">
|
235
240
|
<div class="message"><pre>Expected pending 'here is the bug' to fail. No Error was raised.</pre></div>
|
236
|
-
<div class="backtrace"><pre><a href="txmt://open?url=file
|
237
|
-
<a href="txmt://open?url=file
|
238
|
-
<a href="txmt://open?url=file
|
239
|
-
|
240
|
-
<
|
241
|
-
<span class="
|
242
|
-
<span class="linenum">
|
243
|
-
<span class="linenum">
|
241
|
+
<div class="backtrace"><pre><a href="txmt://open?url=file://./examples/failing/mocking_example.rb&line=31">examples/failing/mocking_example.rb:31</a>
|
242
|
+
<a href="txmt://open?url=file://./spec/spec/runner/formatter/text_mate_formatter_spec.rb&line=49">./spec/spec/runner/formatter/text_mate_formatter_spec.rb:49</a>
|
243
|
+
<a href="txmt://open?url=file://./spec/spec/runner/formatter/text_mate_formatter_spec.rb&line=45">./spec/spec/runner/formatter/text_mate_formatter_spec.rb:45</a> :in `chdir'
|
244
|
+
<a href="txmt://open?url=file://./spec/spec/runner/formatter/text_mate_formatter_spec.rb&line=45">./spec/spec/runner/formatter/text_mate_formatter_spec.rb:45</a> </pre></div>
|
245
|
+
<pre class="ruby"><code><span class="linenum">29</span>
|
246
|
+
<span class="linenum">30</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
|
+
<span class="offending"><span class="linenum">31</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>
|
248
|
+
<span class="linenum">32</span> <span class="comment"># Actually, no. It's fixed. This will fail because it passes :-)</span>
|
249
|
+
<span class="linenum">33</span> <span class="ident">mock</span> <span class="punct">=</span> <span class="ident">mock</span><span class="punct">("</span><span class="string">Bug</span><span class="punct">")</span></code></pre>
|
244
250
|
</div>
|
245
251
|
</dd>
|
246
252
|
</dl>
|
@@ -259,13 +265,14 @@ a {
|
|
259
265
|
Diff:
|
260
266
|
@@ -1,4 +1,4 @@
|
261
267
|
RSpec is a
|
262
|
-
-
|
263
|
-
+
|
268
|
+
-behaviour driven development
|
269
|
+
+behavior driven development
|
264
270
|
framework for Ruby
|
265
271
|
</pre></div>
|
266
|
-
<div class="backtrace"><pre><a href="txmt://open?url=file
|
267
|
-
<a href="txmt://open?url=file
|
268
|
-
<a href="txmt://open?url=file
|
272
|
+
<div class="backtrace"><pre><a href="txmt://open?url=file://./examples/failing/diffing_spec.rb&line=13">examples/failing/diffing_spec.rb:13</a>
|
273
|
+
<a href="txmt://open?url=file://./spec/spec/runner/formatter/text_mate_formatter_spec.rb&line=49">./spec/spec/runner/formatter/text_mate_formatter_spec.rb:49</a>
|
274
|
+
<a href="txmt://open?url=file://./spec/spec/runner/formatter/text_mate_formatter_spec.rb&line=45">./spec/spec/runner/formatter/text_mate_formatter_spec.rb:45</a> :in `chdir'
|
275
|
+
<a href="txmt://open?url=file://./spec/spec/runner/formatter/text_mate_formatter_spec.rb&line=45">./spec/spec/runner/formatter/text_mate_formatter_spec.rb:45</a> </pre></div>
|
269
276
|
<pre class="ruby"><code><span class="linenum">11</span><span class="ident">framework</span> <span class="keyword">for</span> <span class="constant">Ruby</span>
|
270
277
|
<span class="linenum">12</span><span class="constant">EOF</span>
|
271
278
|
<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>
|
@@ -276,26 +283,24 @@ a {
|
|
276
283
|
<dd class="spec failed">
|
277
284
|
<span class="failed_spec_name">should print diff of different objects' pretty representation</span>
|
278
285
|
<div class="failure" id="failure_6">
|
279
|
-
<div class="message"><pre>
|
286
|
+
<div class="message"><pre>
|
287
|
+
expected <Animal
|
280
288
|
name=bob,
|
281
289
|
species=tortoise
|
282
290
|
>
|
283
|
-
|
291
|
+
|
292
|
+
got <Animal
|
284
293
|
name=bob,
|
285
294
|
species=giraffe
|
286
295
|
>
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
<Animal
|
291
|
-
name=bob,
|
292
|
-
-species=giraffe
|
293
|
-
+species=tortoise
|
294
|
-
>
|
296
|
+
|
297
|
+
|
298
|
+
(compared using eql?)
|
295
299
|
</pre></div>
|
296
|
-
<div class="backtrace"><pre><a href="txmt://open?url=file
|
297
|
-
<a href="txmt://open?url=file
|
298
|
-
<a href="txmt://open?url=file
|
300
|
+
<div class="backtrace"><pre><a href="txmt://open?url=file://./examples/failing/diffing_spec.rb&line=34">examples/failing/diffing_spec.rb:34</a>
|
301
|
+
<a href="txmt://open?url=file://./spec/spec/runner/formatter/text_mate_formatter_spec.rb&line=49">./spec/spec/runner/formatter/text_mate_formatter_spec.rb:49</a>
|
302
|
+
<a href="txmt://open?url=file://./spec/spec/runner/formatter/text_mate_formatter_spec.rb&line=45">./spec/spec/runner/formatter/text_mate_formatter_spec.rb:45</a> :in `chdir'
|
303
|
+
<a href="txmt://open?url=file://./spec/spec/runner/formatter/text_mate_formatter_spec.rb&line=45">./spec/spec/runner/formatter/text_mate_formatter_spec.rb:45</a> </pre></div>
|
299
304
|
<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>
|
300
305
|
<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>
|
301
306
|
<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>
|
@@ -190,47 +190,47 @@ a {
|
|
190
190
|
<dd class="spec failed">
|
191
191
|
<span class="failed_spec_name">should fail when expected message not received</span>
|
192
192
|
<div class="failure" id="failure_1">
|
193
|
-
<div class="message"><pre>Mock
|
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
|
198
|
-
<pre class="ruby"><code><span class="linenum">
|
199
|
-
<span class="linenum">
|
200
|
-
<span class="offending"><span class="linenum">
|
201
|
-
<span class="linenum">
|
202
|
-
<span class="linenum">
|
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://./examples/failing/mocking_example.rb&line=11">./examples/failing/mocking_example.rb:11</a>
|
195
|
+
<a href="txmt://open?url=file://./spec/spec/runner/formatter/text_mate_formatter_spec.rb&line=49">./spec/spec/runner/formatter/text_mate_formatter_spec.rb:49</a>
|
196
|
+
<a href="txmt://open?url=file://./spec/spec/runner/formatter/text_mate_formatter_spec.rb&line=45">./spec/spec/runner/formatter/text_mate_formatter_spec.rb:45</a> :in `chdir'
|
197
|
+
<a href="txmt://open?url=file://./spec/spec/runner/formatter/text_mate_formatter_spec.rb&line=45">./spec/spec/runner/formatter/text_mate_formatter_spec.rb:45</a> </pre></div>
|
198
|
+
<pre class="ruby"><code><span class="linenum">9</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
|
+
<span class="linenum">10</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
|
+
<span class="offending"><span class="linenum">11</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>
|
201
|
+
<span class="linenum">12</span> <span class="keyword">end</span>
|
202
|
+
<span class="linenum">13</span> </code></pre>
|
203
203
|
</div>
|
204
204
|
</dd>
|
205
205
|
<script type="text/javascript">moveProgressBar('17.6');</script>
|
206
206
|
<dd class="spec failed">
|
207
207
|
<span class="failed_spec_name">should fail when messages are received out of order</span>
|
208
208
|
<div class="failure" id="failure_2">
|
209
|
-
<div class="message"><pre>Mock
|
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
|
214
|
-
<pre class="ruby"><code><span class="linenum">
|
215
|
-
<span class="linenum">
|
216
|
-
<span class="offending"><span class="linenum">
|
217
|
-
<span class="linenum">
|
218
|
-
<span class="linenum">
|
209
|
+
<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://./examples/failing/mocking_example.rb&line=20">./examples/failing/mocking_example.rb:20</a>
|
211
|
+
<a href="txmt://open?url=file://./spec/spec/runner/formatter/text_mate_formatter_spec.rb&line=49">./spec/spec/runner/formatter/text_mate_formatter_spec.rb:49</a>
|
212
|
+
<a href="txmt://open?url=file://./spec/spec/runner/formatter/text_mate_formatter_spec.rb&line=45">./spec/spec/runner/formatter/text_mate_formatter_spec.rb:45</a> :in `chdir'
|
213
|
+
<a href="txmt://open?url=file://./spec/spec/runner/formatter/text_mate_formatter_spec.rb&line=45">./spec/spec/runner/formatter/text_mate_formatter_spec.rb:45</a> </pre></div>
|
214
|
+
<pre class="ruby"><code><span class="linenum">18</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
|
+
<span class="linenum">19</span> <span class="ident">mock</span><span class="punct">.</span><span class="ident">one</span>
|
216
|
+
<span class="offending"><span class="linenum">20</span> <span class="ident">mock</span><span class="punct">.</span><span class="ident">three</span></span>
|
217
|
+
<span class="linenum">21</span> <span class="ident">mock</span><span class="punct">.</span><span class="ident">two</span>
|
218
|
+
<span class="linenum">22</span> <span class="keyword">end</span></code></pre>
|
219
219
|
</div>
|
220
220
|
</dd>
|
221
221
|
<script type="text/javascript">moveProgressBar('23.5');</script>
|
222
222
|
<dd class="spec failed">
|
223
223
|
<span class="failed_spec_name">should get yelled at when sending unexpected messages</span>
|
224
224
|
<div class="failure" id="failure_3">
|
225
|
-
<div class="message"><pre>Mock
|
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
|
-
<pre class="ruby"><code><span class="linenum">
|
231
|
-
<span class="linenum">
|
232
|
-
<span class="offending"><span class="linenum">
|
233
|
-
<span class="linenum">
|
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
|
+
<div class="backtrace"><pre><a href="txmt://open?url=file://./examples/failing/mocking_example.rb&line=27">./examples/failing/mocking_example.rb:27</a>
|
227
|
+
<a href="txmt://open?url=file://./spec/spec/runner/formatter/text_mate_formatter_spec.rb&line=49">./spec/spec/runner/formatter/text_mate_formatter_spec.rb:49</a>
|
228
|
+
<a href="txmt://open?url=file://./spec/spec/runner/formatter/text_mate_formatter_spec.rb&line=45">./spec/spec/runner/formatter/text_mate_formatter_spec.rb:45</a> :in `chdir'
|
229
|
+
<a href="txmt://open?url=file://./spec/spec/runner/formatter/text_mate_formatter_spec.rb&line=45">./spec/spec/runner/formatter/text_mate_formatter_spec.rb:45</a> </pre></div>
|
230
|
+
<pre class="ruby"><code><span class="linenum">25</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
|
+
<span class="linenum">26</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
|
+
<span class="offending"><span class="linenum">27</span> <span class="ident">mock</span><span class="punct">.</span><span class="ident">any_message_at_all</span></span>
|
233
|
+
<span class="linenum">28</span> <span class="keyword">end</span></code></pre>
|
234
234
|
</div>
|
235
235
|
</dd>
|
236
236
|
<script type="text/javascript">moveProgressBar('29.4');</script>
|
@@ -238,15 +238,15 @@ a {
|
|
238
238
|
<span class="failed_spec_name">has a bug we need to fix</span>
|
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
|
-
<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
|
245
|
-
<pre class="ruby"><code><span class="linenum">
|
246
|
-
<span class="linenum">
|
247
|
-
<span class="offending"><span class="linenum">
|
248
|
-
<span class="linenum">
|
249
|
-
<span class="linenum">
|
241
|
+
<div class="backtrace"><pre><a href="txmt://open?url=file://./examples/failing/mocking_example.rb&line=31">./examples/failing/mocking_example.rb:31</a>
|
242
|
+
<a href="txmt://open?url=file://./spec/spec/runner/formatter/text_mate_formatter_spec.rb&line=49">./spec/spec/runner/formatter/text_mate_formatter_spec.rb:49</a>
|
243
|
+
<a href="txmt://open?url=file://./spec/spec/runner/formatter/text_mate_formatter_spec.rb&line=45">./spec/spec/runner/formatter/text_mate_formatter_spec.rb:45</a> :in `chdir'
|
244
|
+
<a href="txmt://open?url=file://./spec/spec/runner/formatter/text_mate_formatter_spec.rb&line=45">./spec/spec/runner/formatter/text_mate_formatter_spec.rb:45</a> </pre></div>
|
245
|
+
<pre class="ruby"><code><span class="linenum">29</span>
|
246
|
+
<span class="linenum">30</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
|
+
<span class="offending"><span class="linenum">31</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>
|
248
|
+
<span class="linenum">32</span> <span class="comment"># Actually, no. It's fixed. This will fail because it passes :-)</span>
|
249
|
+
<span class="linenum">33</span> <span class="ident">mock</span> <span class="punct">=</span> <span class="ident">mock</span><span class="punct">("</span><span class="string">Bug</span><span class="punct">")</span></code></pre>
|
250
250
|
</div>
|
251
251
|
</dd>
|
252
252
|
</dl>
|
@@ -269,10 +269,10 @@ a {
|
|
269
269
|
+behavior driven development
|
270
270
|
framework for Ruby
|
271
271
|
</pre></div>
|
272
|
-
<div class="backtrace"><pre><a href="txmt://open?url=file
|
273
|
-
<a href="txmt://open?url=file
|
274
|
-
<a href="txmt://open?url=file
|
275
|
-
<a href="txmt://open?url=file
|
272
|
+
<div class="backtrace"><pre><a href="txmt://open?url=file://./examples/failing/diffing_spec.rb&line=13">./examples/failing/diffing_spec.rb:13</a>
|
273
|
+
<a href="txmt://open?url=file://./spec/spec/runner/formatter/text_mate_formatter_spec.rb&line=49">./spec/spec/runner/formatter/text_mate_formatter_spec.rb:49</a>
|
274
|
+
<a href="txmt://open?url=file://./spec/spec/runner/formatter/text_mate_formatter_spec.rb&line=45">./spec/spec/runner/formatter/text_mate_formatter_spec.rb:45</a> :in `chdir'
|
275
|
+
<a href="txmt://open?url=file://./spec/spec/runner/formatter/text_mate_formatter_spec.rb&line=45">./spec/spec/runner/formatter/text_mate_formatter_spec.rb:45</a> </pre></div>
|
276
276
|
<pre class="ruby"><code><span class="linenum">11</span><span class="ident">framework</span> <span class="keyword">for</span> <span class="constant">Ruby</span>
|
277
277
|
<span class="linenum">12</span><span class="constant">EOF</span>
|
278
278
|
<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>
|
@@ -297,10 +297,10 @@ species=giraffe
|
|
297
297
|
|
298
298
|
(compared using eql?)
|
299
299
|
</pre></div>
|
300
|
-
<div class="backtrace"><pre><a href="txmt://open?url=file
|
301
|
-
<a href="txmt://open?url=file
|
302
|
-
<a href="txmt://open?url=file
|
303
|
-
<a href="txmt://open?url=file
|
300
|
+
<div class="backtrace"><pre><a href="txmt://open?url=file://./examples/failing/diffing_spec.rb&line=34">./examples/failing/diffing_spec.rb:34</a>
|
301
|
+
<a href="txmt://open?url=file://./spec/spec/runner/formatter/text_mate_formatter_spec.rb&line=49">./spec/spec/runner/formatter/text_mate_formatter_spec.rb:49</a>
|
302
|
+
<a href="txmt://open?url=file://./spec/spec/runner/formatter/text_mate_formatter_spec.rb&line=45">./spec/spec/runner/formatter/text_mate_formatter_spec.rb:45</a> :in `chdir'
|
303
|
+
<a href="txmt://open?url=file://./spec/spec/runner/formatter/text_mate_formatter_spec.rb&line=45">./spec/spec/runner/formatter/text_mate_formatter_spec.rb:45</a> </pre></div>
|
304
304
|
<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>
|
305
305
|
<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>
|
306
306
|
<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>
|
@@ -190,47 +190,47 @@ a {
|
|
190
190
|
<dd class="spec failed">
|
191
191
|
<span class="failed_spec_name">should fail when expected message not received</span>
|
192
192
|
<div class="failure" id="failure_1">
|
193
|
-
<div class="message"><pre>Mock
|
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
|
198
|
-
<pre class="ruby"><code><span class="linenum">
|
199
|
-
<span class="linenum">
|
200
|
-
<span class="offending"><span class="linenum">
|
201
|
-
<span class="linenum">
|
202
|
-
<span class="linenum">
|
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://./examples/failing/mocking_example.rb&line=11">./examples/failing/mocking_example.rb:11</a>
|
195
|
+
<a href="txmt://open?url=file://./spec/spec/runner/formatter/text_mate_formatter_spec.rb&line=49">./spec/spec/runner/formatter/text_mate_formatter_spec.rb:49</a>
|
196
|
+
<a href="txmt://open?url=file://./spec/spec/runner/formatter/text_mate_formatter_spec.rb&line=45">./spec/spec/runner/formatter/text_mate_formatter_spec.rb:45</a> :in `chdir'
|
197
|
+
<a href="txmt://open?url=file://./spec/spec/runner/formatter/text_mate_formatter_spec.rb&line=45">./spec/spec/runner/formatter/text_mate_formatter_spec.rb:45</a> </pre></div>
|
198
|
+
<pre class="ruby"><code><span class="linenum">9</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
|
+
<span class="linenum">10</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
|
+
<span class="offending"><span class="linenum">11</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>
|
201
|
+
<span class="linenum">12</span> <span class="keyword">end</span>
|
202
|
+
<span class="linenum">13</span> </code></pre>
|
203
203
|
</div>
|
204
204
|
</dd>
|
205
205
|
<script type="text/javascript">moveProgressBar('17.6');</script>
|
206
206
|
<dd class="spec failed">
|
207
207
|
<span class="failed_spec_name">should fail when messages are received out of order</span>
|
208
208
|
<div class="failure" id="failure_2">
|
209
|
-
<div class="message"><pre>Mock
|
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
|
214
|
-
<pre class="ruby"><code><span class="linenum">
|
215
|
-
<span class="linenum">
|
216
|
-
<span class="offending"><span class="linenum">
|
217
|
-
<span class="linenum">
|
218
|
-
<span class="linenum">
|
209
|
+
<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://./examples/failing/mocking_example.rb&line=20">./examples/failing/mocking_example.rb:20</a>
|
211
|
+
<a href="txmt://open?url=file://./spec/spec/runner/formatter/text_mate_formatter_spec.rb&line=49">./spec/spec/runner/formatter/text_mate_formatter_spec.rb:49</a>
|
212
|
+
<a href="txmt://open?url=file://./spec/spec/runner/formatter/text_mate_formatter_spec.rb&line=45">./spec/spec/runner/formatter/text_mate_formatter_spec.rb:45</a> :in `chdir'
|
213
|
+
<a href="txmt://open?url=file://./spec/spec/runner/formatter/text_mate_formatter_spec.rb&line=45">./spec/spec/runner/formatter/text_mate_formatter_spec.rb:45</a> </pre></div>
|
214
|
+
<pre class="ruby"><code><span class="linenum">18</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
|
+
<span class="linenum">19</span> <span class="ident">mock</span><span class="punct">.</span><span class="ident">one</span>
|
216
|
+
<span class="offending"><span class="linenum">20</span> <span class="ident">mock</span><span class="punct">.</span><span class="ident">three</span></span>
|
217
|
+
<span class="linenum">21</span> <span class="ident">mock</span><span class="punct">.</span><span class="ident">two</span>
|
218
|
+
<span class="linenum">22</span> <span class="keyword">end</span></code></pre>
|
219
219
|
</div>
|
220
220
|
</dd>
|
221
221
|
<script type="text/javascript">moveProgressBar('23.5');</script>
|
222
222
|
<dd class="spec failed">
|
223
223
|
<span class="failed_spec_name">should get yelled at when sending unexpected messages</span>
|
224
224
|
<div class="failure" id="failure_3">
|
225
|
-
<div class="message"><pre>Mock
|
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
|
-
<pre class="ruby"><code><span class="linenum">
|
231
|
-
<span class="linenum">
|
232
|
-
<span class="offending"><span class="linenum">
|
233
|
-
<span class="linenum">
|
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
|
+
<div class="backtrace"><pre><a href="txmt://open?url=file://./examples/failing/mocking_example.rb&line=27">./examples/failing/mocking_example.rb:27</a>
|
227
|
+
<a href="txmt://open?url=file://./spec/spec/runner/formatter/text_mate_formatter_spec.rb&line=49">./spec/spec/runner/formatter/text_mate_formatter_spec.rb:49</a>
|
228
|
+
<a href="txmt://open?url=file://./spec/spec/runner/formatter/text_mate_formatter_spec.rb&line=45">./spec/spec/runner/formatter/text_mate_formatter_spec.rb:45</a> :in `chdir'
|
229
|
+
<a href="txmt://open?url=file://./spec/spec/runner/formatter/text_mate_formatter_spec.rb&line=45">./spec/spec/runner/formatter/text_mate_formatter_spec.rb:45</a> </pre></div>
|
230
|
+
<pre class="ruby"><code><span class="linenum">25</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
|
+
<span class="linenum">26</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
|
+
<span class="offending"><span class="linenum">27</span> <span class="ident">mock</span><span class="punct">.</span><span class="ident">any_message_at_all</span></span>
|
233
|
+
<span class="linenum">28</span> <span class="keyword">end</span></code></pre>
|
234
234
|
</div>
|
235
235
|
</dd>
|
236
236
|
<script type="text/javascript">moveProgressBar('29.4');</script>
|
@@ -238,15 +238,15 @@ a {
|
|
238
238
|
<span class="failed_spec_name">has a bug we need to fix</span>
|
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
|
-
<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
|
245
|
-
<pre class="ruby"><code><span class="linenum">
|
246
|
-
<span class="linenum">
|
247
|
-
<span class="offending"><span class="linenum">
|
248
|
-
<span class="linenum">
|
249
|
-
<span class="linenum">
|
241
|
+
<div class="backtrace"><pre><a href="txmt://open?url=file://./examples/failing/mocking_example.rb&line=31">./examples/failing/mocking_example.rb:31</a>
|
242
|
+
<a href="txmt://open?url=file://./spec/spec/runner/formatter/text_mate_formatter_spec.rb&line=49">./spec/spec/runner/formatter/text_mate_formatter_spec.rb:49</a>
|
243
|
+
<a href="txmt://open?url=file://./spec/spec/runner/formatter/text_mate_formatter_spec.rb&line=45">./spec/spec/runner/formatter/text_mate_formatter_spec.rb:45</a> :in `chdir'
|
244
|
+
<a href="txmt://open?url=file://./spec/spec/runner/formatter/text_mate_formatter_spec.rb&line=45">./spec/spec/runner/formatter/text_mate_formatter_spec.rb:45</a> </pre></div>
|
245
|
+
<pre class="ruby"><code><span class="linenum">29</span>
|
246
|
+
<span class="linenum">30</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
|
+
<span class="offending"><span class="linenum">31</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>
|
248
|
+
<span class="linenum">32</span> <span class="comment"># Actually, no. It's fixed. This will fail because it passes :-)</span>
|
249
|
+
<span class="linenum">33</span> <span class="ident">mock</span> <span class="punct">=</span> <span class="ident">mock</span><span class="punct">("</span><span class="string">Bug</span><span class="punct">")</span></code></pre>
|
250
250
|
</div>
|
251
251
|
</dd>
|
252
252
|
</dl>
|
@@ -269,10 +269,10 @@ a {
|
|
269
269
|
+behavior driven development
|
270
270
|
framework for Ruby
|
271
271
|
</pre></div>
|
272
|
-
<div class="backtrace"><pre><a href="txmt://open?url=file
|
273
|
-
<a href="txmt://open?url=file
|
274
|
-
<a href="txmt://open?url=file
|
275
|
-
<a href="txmt://open?url=file
|
272
|
+
<div class="backtrace"><pre><a href="txmt://open?url=file://./examples/failing/diffing_spec.rb&line=13">./examples/failing/diffing_spec.rb:13</a>
|
273
|
+
<a href="txmt://open?url=file://./spec/spec/runner/formatter/text_mate_formatter_spec.rb&line=49">./spec/spec/runner/formatter/text_mate_formatter_spec.rb:49</a>
|
274
|
+
<a href="txmt://open?url=file://./spec/spec/runner/formatter/text_mate_formatter_spec.rb&line=45">./spec/spec/runner/formatter/text_mate_formatter_spec.rb:45</a> :in `chdir'
|
275
|
+
<a href="txmt://open?url=file://./spec/spec/runner/formatter/text_mate_formatter_spec.rb&line=45">./spec/spec/runner/formatter/text_mate_formatter_spec.rb:45</a> </pre></div>
|
276
276
|
<pre class="ruby"><code><span class="linenum">11</span><span class="ident">framework</span> <span class="keyword">for</span> <span class="constant">Ruby</span>
|
277
277
|
<span class="linenum">12</span><span class="constant">EOF</span>
|
278
278
|
<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>
|
@@ -297,10 +297,10 @@ species=giraffe
|
|
297
297
|
|
298
298
|
(compared using eql?)
|
299
299
|
</pre></div>
|
300
|
-
<div class="backtrace"><pre><a href="txmt://open?url=file
|
301
|
-
<a href="txmt://open?url=file
|
302
|
-
<a href="txmt://open?url=file
|
303
|
-
<a href="txmt://open?url=file
|
300
|
+
<div class="backtrace"><pre><a href="txmt://open?url=file://./examples/failing/diffing_spec.rb&line=34">./examples/failing/diffing_spec.rb:34</a>
|
301
|
+
<a href="txmt://open?url=file://./spec/spec/runner/formatter/text_mate_formatter_spec.rb&line=49">./spec/spec/runner/formatter/text_mate_formatter_spec.rb:49</a>
|
302
|
+
<a href="txmt://open?url=file://./spec/spec/runner/formatter/text_mate_formatter_spec.rb&line=45">./spec/spec/runner/formatter/text_mate_formatter_spec.rb:45</a> :in `chdir'
|
303
|
+
<a href="txmt://open?url=file://./spec/spec/runner/formatter/text_mate_formatter_spec.rb&line=45">./spec/spec/runner/formatter/text_mate_formatter_spec.rb:45</a> </pre></div>
|
304
304
|
<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>
|
305
305
|
<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>
|
306
306
|
<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>
|