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,61 +1,104 @@
|
|
1
|
-
require
|
1
|
+
require 'spec_helper'
|
2
2
|
|
3
3
|
module Spec
|
4
4
|
module Runner
|
5
|
-
describe
|
5
|
+
describe QuietBacktraceTweaker do
|
6
6
|
before(:each) do
|
7
7
|
@error = RuntimeError.new
|
8
8
|
@tweaker = QuietBacktraceTweaker.new
|
9
9
|
end
|
10
10
|
|
11
|
-
it "
|
11
|
+
it "gracefully handles nil backtrace" do
|
12
12
|
lambda do
|
13
13
|
@tweaker.tweak_backtrace(@error)
|
14
14
|
end.should_not raise_error
|
15
15
|
end
|
16
16
|
|
17
|
-
it "
|
17
|
+
it "gracefully handle backtraces with newlines" do
|
18
|
+
@error.set_backtrace(["we like\nbin/spec:\nnewlines"])
|
19
|
+
@tweaker.tweak_backtrace(@error)
|
20
|
+
@error.backtrace.should include("we like\nnewlines")
|
21
|
+
end
|
22
|
+
|
23
|
+
it "cleans up double slashes" do
|
24
|
+
@error.set_backtrace(["/a//b/c//d.rb"])
|
25
|
+
@tweaker.tweak_backtrace(@error)
|
26
|
+
@error.backtrace.should include("/a/b/c/d.rb")
|
27
|
+
end
|
28
|
+
|
29
|
+
it "preserves lines from textmate ruby bundle" do
|
18
30
|
@error.set_backtrace(["/Applications/TextMate.app/Contents/SharedSupport/Bundles/Ruby.tmbundle/Support/tmruby.rb:147"])
|
19
31
|
@tweaker.tweak_backtrace(@error)
|
20
32
|
@error.backtrace.should be_empty
|
21
33
|
end
|
22
34
|
|
23
|
-
it "
|
35
|
+
it "removes lines in lib/spec" do
|
24
36
|
["expectations", "mocks", "runner"].each do |child|
|
25
37
|
element="/lib/spec/#{child}/anything.rb"
|
26
38
|
@error.set_backtrace([element])
|
27
39
|
@tweaker.tweak_backtrace(@error)
|
28
|
-
|
29
|
-
raise("Should have tweaked away '#{element}'")
|
30
|
-
end
|
40
|
+
@error.backtrace.should be_empty, "Should have removed line with '#{element}'"
|
31
41
|
end
|
32
42
|
end
|
33
43
|
|
34
|
-
it "
|
44
|
+
it "removes lines in bin/spec" do
|
45
|
+
@error.set_backtrace(["bin/spec:"])
|
46
|
+
@tweaker.tweak_backtrace(@error)
|
47
|
+
@error.backtrace.should be_empty
|
48
|
+
end
|
49
|
+
|
50
|
+
it "removes lines in mock_frameworks/rspec" do
|
35
51
|
element = "mock_frameworks/rspec"
|
36
52
|
@error.set_backtrace([element])
|
37
53
|
@tweaker.tweak_backtrace(@error)
|
38
|
-
|
39
|
-
raise("Should have tweaked away '#{element}'")
|
40
|
-
end
|
54
|
+
@error.backtrace.should be_empty, "Should have removed line with '#{element}'"
|
41
55
|
end
|
42
56
|
|
43
|
-
it "
|
44
|
-
|
57
|
+
it "removes custom patterns" do
|
58
|
+
element = "/vendor/lib/custom_pattern/"
|
59
|
+
@tweaker.ignore_patterns /custom_pattern/
|
60
|
+
@error.set_backtrace([element])
|
45
61
|
@tweaker.tweak_backtrace(@error)
|
46
|
-
@error.backtrace.should be_empty
|
62
|
+
@error.backtrace.should be_empty, "Should have removed line with '#{element}'"
|
47
63
|
end
|
48
|
-
|
49
|
-
it "
|
50
|
-
|
64
|
+
|
65
|
+
it "removes custom patterns added as a string" do
|
66
|
+
element = "/vendor/lib/custom_pattern/"
|
67
|
+
@tweaker.ignore_patterns "custom_pattern"
|
68
|
+
@error.set_backtrace([element])
|
51
69
|
@tweaker.tweak_backtrace(@error)
|
52
|
-
@error.backtrace.should
|
70
|
+
@error.backtrace.should be_empty, "Should have removed line with '#{element}'"
|
53
71
|
end
|
54
72
|
|
55
|
-
it "
|
56
|
-
|
73
|
+
it "removes lines in mock_frameworks/rspec" do
|
74
|
+
element = "mock_frameworks/rspec"
|
75
|
+
@error.set_backtrace([element])
|
57
76
|
@tweaker.tweak_backtrace(@error)
|
58
|
-
@error.backtrace.should
|
77
|
+
@error.backtrace.should be_empty, "Should have removed line with '#{element}'"
|
78
|
+
end
|
79
|
+
|
80
|
+
it "removes lines in rspec gem" do
|
81
|
+
["/rspec-1.2.3/lib/spec.rb","/rspec-1.2.3/lib/spec/anything.rb","bin/spec:123"].each do |element|
|
82
|
+
@error.set_backtrace([element])
|
83
|
+
@tweaker.tweak_backtrace(@error)
|
84
|
+
@error.backtrace.should be_empty, "Should have removed line with '#{element}'"
|
85
|
+
end
|
86
|
+
end
|
87
|
+
|
88
|
+
it "removes lines in pre-release rspec gems" do
|
89
|
+
["/rspec-1.2.3.a1.gem/lib/spec.rb","/rspec-1.2.3.b1.gem/lib/spec.rb","/rspec-1.2.3.rc1.gem/lib/spec.rb"].each do |element|
|
90
|
+
@error.set_backtrace([element])
|
91
|
+
@tweaker.tweak_backtrace(@error)
|
92
|
+
@error.backtrace.should be_empty, "Should have removed line with '#{element}'"
|
93
|
+
end
|
94
|
+
end
|
95
|
+
|
96
|
+
it "removes lines in spork gem" do
|
97
|
+
["/spork-1.2.3/lib/spec.rb","/spork-1.2.3/lib/spec/anything.rb","bin/spork:123"].each do |element|
|
98
|
+
@error.set_backtrace([element])
|
99
|
+
@tweaker.tweak_backtrace(@error)
|
100
|
+
@error.backtrace.should be_empty, "Should have removed line with '#{element}'"
|
101
|
+
end
|
59
102
|
end
|
60
103
|
end
|
61
104
|
end
|
data/spec/spec/runner_spec.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
@@ -1,16 +1,14 @@
|
|
1
1
|
require 'stringio'
|
2
2
|
|
3
|
-
dir = File.dirname(__FILE__)
|
4
|
-
lib_path = File.expand_path("#{dir}/../lib")
|
5
|
-
$LOAD_PATH.unshift lib_path unless $LOAD_PATH.include?(lib_path)
|
6
3
|
$_spec_spec = true # Prevents Kernel.exit in various places
|
7
4
|
|
8
5
|
require 'spec'
|
9
6
|
require 'spec/mocks'
|
10
|
-
|
11
|
-
require
|
12
|
-
|
13
|
-
require
|
7
|
+
require 'spec/runner/differs/default'
|
8
|
+
require 'spec/autorun'
|
9
|
+
|
10
|
+
require 'support/spec_classes'
|
11
|
+
require 'support/macros'
|
14
12
|
|
15
13
|
def jruby?
|
16
14
|
::RUBY_PLATFORM == 'java'
|
File without changes
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- RSpec Development Team
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-
|
12
|
+
date: 2009-10-05 00:00:00 -05:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -20,7 +20,47 @@ dependencies:
|
|
20
20
|
requirements:
|
21
21
|
- - ">="
|
22
22
|
- !ruby/object:Gem::Version
|
23
|
-
version: 0.
|
23
|
+
version: "0.3"
|
24
|
+
version:
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: bmabey-fakefs
|
27
|
+
type: :development
|
28
|
+
version_requirement:
|
29
|
+
version_requirements: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 0.1.1
|
34
|
+
version:
|
35
|
+
- !ruby/object:Gem::Dependency
|
36
|
+
name: syntax
|
37
|
+
type: :development
|
38
|
+
version_requirement:
|
39
|
+
version_requirements: !ruby/object:Gem::Requirement
|
40
|
+
requirements:
|
41
|
+
- - ">="
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: "1.0"
|
44
|
+
version:
|
45
|
+
- !ruby/object:Gem::Dependency
|
46
|
+
name: diff-lcs
|
47
|
+
type: :development
|
48
|
+
version_requirement:
|
49
|
+
version_requirements: !ruby/object:Gem::Requirement
|
50
|
+
requirements:
|
51
|
+
- - ">="
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: 1.1.2
|
54
|
+
version:
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: heckle
|
57
|
+
type: :development
|
58
|
+
version_requirement:
|
59
|
+
version_requirements: !ruby/object:Gem::Requirement
|
60
|
+
requirements:
|
61
|
+
- - ">="
|
62
|
+
- !ruby/object:Gem::Version
|
63
|
+
version: 1.4.3
|
24
64
|
version:
|
25
65
|
- !ruby/object:Gem::Dependency
|
26
66
|
name: hoe
|
@@ -30,7 +70,7 @@ dependencies:
|
|
30
70
|
requirements:
|
31
71
|
- - ">="
|
32
72
|
- !ruby/object:Gem::Version
|
33
|
-
version: 2.3.
|
73
|
+
version: 2.3.3
|
34
74
|
version:
|
35
75
|
description: Behaviour Driven Development for Ruby.
|
36
76
|
email:
|
@@ -71,7 +111,6 @@ files:
|
|
71
111
|
- examples/failing/pending_example.rb
|
72
112
|
- examples/failing/predicate_example.rb
|
73
113
|
- examples/failing/raising_example.rb
|
74
|
-
- examples/failing/spec_helper.rb
|
75
114
|
- examples/failing/syntax_error_example.rb
|
76
115
|
- examples/failing/team_spec.rb
|
77
116
|
- examples/failing/timeout_behaviour.rb
|
@@ -98,7 +137,6 @@ files:
|
|
98
137
|
- examples/passing/shared_example_group_example.rb
|
99
138
|
- examples/passing/shared_stack_examples.rb
|
100
139
|
- examples/passing/simple_matcher_example.rb
|
101
|
-
- examples/passing/spec_helper.rb
|
102
140
|
- examples/passing/stack.rb
|
103
141
|
- examples/passing/stack_spec.rb
|
104
142
|
- examples/passing/stack_spec_with_nested_example_groups.rb
|
@@ -108,6 +146,7 @@ files:
|
|
108
146
|
- features/before_and_after_blocks/before_and_after_blocks.feature
|
109
147
|
- features/command_line/line_number_option.feature
|
110
148
|
- features/command_line/line_number_option_with_example_with_no_name.feature
|
149
|
+
- features/example_groups/define_example_attribute.feature
|
111
150
|
- features/example_groups/example_group_with_should_methods.feature
|
112
151
|
- features/example_groups/implicit_docstrings.feature
|
113
152
|
- features/example_groups/nested_groups.feature
|
@@ -116,15 +155,17 @@ files:
|
|
116
155
|
- features/expectations/expect_error.feature
|
117
156
|
- features/extensions/custom_example_group.feature
|
118
157
|
- features/formatters/custom_formatter.feature
|
119
|
-
- features/heckle/heckle.feature
|
120
158
|
- features/interop/examples_and_tests_together.feature
|
121
159
|
- features/interop/rspec_output.feature
|
122
160
|
- features/interop/test_but_not_test_unit.feature
|
123
161
|
- features/interop/test_case_with_should_methods.feature
|
162
|
+
- features/load_paths/add_lib_to_load_path.feature
|
163
|
+
- features/load_paths/add_spec_to_load_path.feature
|
124
164
|
- features/matchers/define_diffable_matcher.feature
|
125
165
|
- features/matchers/define_matcher.feature
|
126
166
|
- features/matchers/define_matcher_outside_rspec.feature
|
127
167
|
- features/matchers/define_matcher_with_fluent_interface.feature
|
168
|
+
- features/matchers/define_wrapped_matcher.feature
|
128
169
|
- features/mock_framework_integration/use_flexmock.feature
|
129
170
|
- features/mock_framework_integration/use_mocha.feature
|
130
171
|
- features/mock_framework_integration/use_rr.feature
|
@@ -132,6 +173,7 @@ files:
|
|
132
173
|
- features/mocks/stub_implementation.feature
|
133
174
|
- features/pending/pending_examples.feature
|
134
175
|
- features/runner/specify_line_number.feature
|
176
|
+
- features/spec_helper/spec_helper.feature
|
135
177
|
- features/step_definitions/running_rspec_steps.rb
|
136
178
|
- features/subject/explicit_subject.feature
|
137
179
|
- features/subject/implicit_subject.feature
|
@@ -212,6 +254,7 @@ files:
|
|
212
254
|
- lib/spec/mocks/argument_matchers.rb
|
213
255
|
- lib/spec/mocks/error_generator.rb
|
214
256
|
- lib/spec/mocks/errors.rb
|
257
|
+
- lib/spec/mocks/example_methods.rb
|
215
258
|
- lib/spec/mocks/extensions.rb
|
216
259
|
- lib/spec/mocks/extensions/object.rb
|
217
260
|
- lib/spec/mocks/framework.rb
|
@@ -221,7 +264,6 @@ files:
|
|
221
264
|
- lib/spec/mocks/order_group.rb
|
222
265
|
- lib/spec/mocks/proxy.rb
|
223
266
|
- lib/spec/mocks/space.rb
|
224
|
-
- lib/spec/mocks/spec_methods.rb
|
225
267
|
- lib/spec/rake/spectask.rb
|
226
268
|
- lib/spec/rake/verify_rcov.rb
|
227
269
|
- lib/spec/ruby.rb
|
@@ -268,7 +310,6 @@ files:
|
|
268
310
|
- spec/autotest/discover_spec.rb
|
269
311
|
- spec/autotest/failed_results_re_spec.rb
|
270
312
|
- spec/autotest/rspec_spec.rb
|
271
|
-
- spec/rspec_suite.rb
|
272
313
|
- spec/ruby_forker.rb
|
273
314
|
- spec/spec.opts
|
274
315
|
- spec/spec/dsl/main_spec.rb
|
@@ -299,6 +340,7 @@ files:
|
|
299
340
|
- spec/spec/interop/test/unit/resources/test_case_that_fails.rb
|
300
341
|
- spec/spec/interop/test/unit/resources/test_case_that_passes.rb
|
301
342
|
- spec/spec/interop/test/unit/resources/test_case_with_errors.rb
|
343
|
+
- spec/spec/interop/test/unit/resources/test_case_with_various_names.rb
|
302
344
|
- spec/spec/interop/test/unit/resources/testsuite_adapter_spec_with_test_unit.rb
|
303
345
|
- spec/spec/interop/test/unit/spec_spec.rb
|
304
346
|
- spec/spec/interop/test/unit/test_unit_spec_helper.rb
|
@@ -331,6 +373,7 @@ files:
|
|
331
373
|
- spec/spec/matchers/throw_symbol_spec.rb
|
332
374
|
- spec/spec/mocks/any_number_of_times_spec.rb
|
333
375
|
- spec/spec/mocks/argument_expectation_spec.rb
|
376
|
+
- spec/spec/mocks/argument_matchers_spec.rb
|
334
377
|
- spec/spec/mocks/at_least_spec.rb
|
335
378
|
- spec/spec/mocks/at_most_spec.rb
|
336
379
|
- spec/spec/mocks/bug_report_10260_spec.rb
|
@@ -344,6 +387,7 @@ files:
|
|
344
387
|
- spec/spec/mocks/bug_report_8165_spec.rb
|
345
388
|
- spec/spec/mocks/bug_report_8302_spec.rb
|
346
389
|
- spec/spec/mocks/bug_report_830_spec.rb
|
390
|
+
- spec/spec/mocks/double_spec.rb
|
347
391
|
- spec/spec/mocks/failing_argument_matchers_spec.rb
|
348
392
|
- spec/spec/mocks/hash_including_matcher_spec.rb
|
349
393
|
- spec/spec/mocks/hash_not_including_matcher_spec.rb
|
@@ -380,9 +424,6 @@ files:
|
|
380
424
|
- spec/spec/runner/formatter/base_text_formatter_spec.rb
|
381
425
|
- spec/spec/runner/formatter/failing_example_groups_formatter_spec.rb
|
382
426
|
- spec/spec/runner/formatter/failing_examples_formatter_spec.rb
|
383
|
-
- spec/spec/runner/formatter/html_formatted-1.8.4.html
|
384
|
-
- spec/spec/runner/formatter/html_formatted-1.8.5-jruby.html
|
385
|
-
- spec/spec/runner/formatter/html_formatted-1.8.5.html
|
386
427
|
- spec/spec/runner/formatter/html_formatted-1.8.6-jruby.html
|
387
428
|
- spec/spec/runner/formatter/html_formatted-1.8.6.html
|
388
429
|
- spec/spec/runner/formatter/html_formatted-1.8.7.html
|
@@ -393,7 +434,7 @@ files:
|
|
393
434
|
- spec/spec/runner/formatter/progress_bar_formatter_spec.rb
|
394
435
|
- spec/spec/runner/formatter/snippet_extractor_spec.rb
|
395
436
|
- spec/spec/runner/formatter/specdoc_formatter_spec.rb
|
396
|
-
- spec/spec/runner/formatter/text_mate_formatted-1.8.
|
437
|
+
- spec/spec/runner/formatter/text_mate_formatted-1.8.6-jruby.html
|
397
438
|
- spec/spec/runner/formatter/text_mate_formatted-1.8.6.html
|
398
439
|
- spec/spec/runner/formatter/text_mate_formatted-1.8.7.html
|
399
440
|
- spec/spec/runner/formatter/text_mate_formatted-1.9.1.html
|
@@ -419,9 +460,9 @@ files:
|
|
419
460
|
- spec/spec/runner/spec_drb.opts
|
420
461
|
- spec/spec/runner/spec_spaced.opts
|
421
462
|
- spec/spec/runner_spec.rb
|
422
|
-
- spec/spec/spec_classes.rb
|
423
463
|
- spec/spec_helper.rb
|
424
464
|
- spec/support/macros.rb
|
465
|
+
- spec/support/spec_classes.rb
|
425
466
|
has_rdoc: true
|
426
467
|
homepage: http://rspec.info
|
427
468
|
licenses: []
|
@@ -429,7 +470,7 @@ licenses: []
|
|
429
470
|
post_install_message: |
|
430
471
|
**************************************************
|
431
472
|
|
432
|
-
Thank you for installing rspec-1.2.
|
473
|
+
Thank you for installing rspec-1.2.9
|
433
474
|
|
434
475
|
Please be sure to read History.rdoc and Upgrade.rdoc
|
435
476
|
for useful information about this release.
|
@@ -456,9 +497,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
456
497
|
requirements: []
|
457
498
|
|
458
499
|
rubyforge_project: rspec
|
459
|
-
rubygems_version: 1.3.
|
500
|
+
rubygems_version: 1.3.5
|
460
501
|
signing_key:
|
461
502
|
specification_version: 3
|
462
|
-
summary: rspec 1.2.
|
503
|
+
summary: rspec 1.2.9
|
463
504
|
test_files: []
|
464
505
|
|
@@ -1,56 +0,0 @@
|
|
1
|
-
Feature: heckle a class
|
2
|
-
|
3
|
-
As an RSpec user who wants to verify that
|
4
|
-
my specs cover what I think it covers
|
5
|
-
I want to heckle a class
|
6
|
-
|
7
|
-
Scenario: Heckle finds problems
|
8
|
-
Given a file named "heckle_fail_spec.rb" with:
|
9
|
-
"""
|
10
|
-
class Thing
|
11
|
-
def a_or_b
|
12
|
-
if true
|
13
|
-
"a"
|
14
|
-
else
|
15
|
-
"b"
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|
19
|
-
|
20
|
-
describe Thing do
|
21
|
-
it "returns a for true" do
|
22
|
-
Thing.new.a_or_b.should == "a"
|
23
|
-
end
|
24
|
-
end
|
25
|
-
"""
|
26
|
-
When I run "spec heckle_fail_spec.rb --heckle Thing"
|
27
|
-
Then the stdout should match "The following mutations didn't cause test failures:"
|
28
|
-
But the stdout should not match "FAILED"
|
29
|
-
|
30
|
-
Scenario: Heckle does not find a problem
|
31
|
-
Given a file named "heckle_success_spec.rb" with:
|
32
|
-
"""
|
33
|
-
class Thing
|
34
|
-
def a_or_b(key)
|
35
|
-
if key
|
36
|
-
"a"
|
37
|
-
else
|
38
|
-
"b"
|
39
|
-
end
|
40
|
-
end
|
41
|
-
end
|
42
|
-
|
43
|
-
describe Thing do
|
44
|
-
it "returns a for true" do
|
45
|
-
Thing.new.a_or_b(true).should == "a"
|
46
|
-
end
|
47
|
-
|
48
|
-
it "returns b for false" do
|
49
|
-
Thing.new.a_or_b(false).should == "b"
|
50
|
-
end
|
51
|
-
end
|
52
|
-
"""
|
53
|
-
When I run "spec heckle_success_spec.rb --heckle Thing"
|
54
|
-
Then the stdout should match "No mutants survived"
|
55
|
-
But the stdout should not match "FAILED"
|
56
|
-
|