rspec 1.2.8 → 1.2.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (238) hide show
  1. data/History.rdoc +41 -2
  2. data/Manifest.txt +11 -10
  3. data/Rakefile +47 -22
  4. data/Ruby1.9.rdoc +1 -2
  5. data/Upgrade.rdoc +56 -7
  6. data/bin/spec +2 -1
  7. data/cucumber.yml +3 -1
  8. data/examples/failing/README.txt +7 -3
  9. data/examples/failing/failing_implicit_docstrings_example.rb +0 -2
  10. data/examples/failing/mocking_example.rb +0 -2
  11. data/examples/failing/partial_mock_example.rb +0 -2
  12. data/examples/failing/pending_example.rb +0 -2
  13. data/examples/failing/predicate_example.rb +0 -2
  14. data/examples/failing/team_spec.rb +0 -3
  15. data/examples/failing/timeout_behaviour.rb +0 -2
  16. data/examples/passing/custom_formatter.rb +0 -1
  17. data/examples/passing/dynamic_spec.rb +0 -2
  18. data/examples/passing/file_accessor.rb +1 -2
  19. data/examples/passing/file_accessor_spec.rb +1 -2
  20. data/examples/passing/filtered_formatter.rb +0 -1
  21. data/examples/passing/greeter_spec.rb +0 -1
  22. data/examples/passing/helper_method_example.rb +0 -2
  23. data/examples/passing/implicit_docstrings_example.rb +0 -2
  24. data/examples/passing/io_processor_spec.rb +1 -2
  25. data/examples/passing/mocking_example.rb +0 -2
  26. data/examples/passing/nested_classes_example.rb +1 -2
  27. data/examples/passing/options_example.rb +0 -2
  28. data/examples/passing/partial_mock_example.rb +0 -2
  29. data/examples/passing/pending_example.rb +0 -2
  30. data/examples/passing/predicate_example.rb +0 -2
  31. data/examples/passing/shared_example_group_example.rb +0 -2
  32. data/examples/passing/simple_matcher_example.rb +0 -2
  33. data/examples/passing/stack_spec.rb +2 -3
  34. data/examples/passing/stack_spec_with_nested_example_groups.rb +2 -3
  35. data/examples/passing/stubbing_example.rb +0 -2
  36. data/examples/passing/yielding_example.rb +0 -2
  37. data/features/before_and_after_blocks/before_and_after_blocks.feature +4 -4
  38. data/features/command_line/line_number_option.feature +14 -14
  39. data/features/command_line/line_number_option_with_example_with_no_name.feature +2 -2
  40. data/features/example_groups/define_example_attribute.feature +41 -0
  41. data/features/example_groups/example_group_with_should_methods.feature +1 -1
  42. data/features/example_groups/implicit_docstrings.feature +7 -7
  43. data/features/example_groups/nested_groups.feature +2 -2
  44. data/features/expectations/customized_message.feature +4 -4
  45. data/features/expectations/expect_change.feature +4 -4
  46. data/features/expectations/expect_error.feature +4 -4
  47. data/features/extensions/custom_example_group.feature +10 -10
  48. data/features/formatters/custom_formatter.feature +3 -3
  49. data/features/interop/examples_and_tests_together.feature +10 -6
  50. data/features/interop/rspec_output.feature +1 -1
  51. data/features/interop/test_case_with_should_methods.feature +1 -1
  52. data/features/load_paths/add_lib_to_load_path.feature +20 -0
  53. data/features/load_paths/add_spec_to_load_path.feature +20 -0
  54. data/features/matchers/define_diffable_matcher.feature +2 -2
  55. data/features/matchers/define_matcher.feature +19 -19
  56. data/features/matchers/define_matcher_outside_rspec.feature +2 -3
  57. data/features/matchers/define_matcher_with_fluent_interface.feature +2 -2
  58. data/features/matchers/define_wrapped_matcher.feature +29 -0
  59. data/features/mock_framework_integration/use_flexmock.feature +1 -1
  60. data/features/mock_framework_integration/use_mocha.feature +1 -1
  61. data/features/mock_framework_integration/use_rr.feature +1 -1
  62. data/features/mocks/mix_stubs_and_mocks.feature +2 -2
  63. data/features/mocks/stub_implementation.feature +1 -1
  64. data/features/pending/pending_examples.feature +16 -16
  65. data/features/runner/specify_line_number.feature +4 -4
  66. data/features/spec_helper/spec_helper.feature +25 -0
  67. data/features/step_definitions/running_rspec_steps.rb +4 -2
  68. data/features/subject/explicit_subject.feature +2 -2
  69. data/features/subject/implicit_subject.feature +14 -2
  70. data/features/support/env.rb +6 -3
  71. data/lib/spec/adapters/mock_frameworks/mocha.rb +6 -1
  72. data/lib/spec/example/example_group_methods.rb +7 -0
  73. data/lib/spec/example/example_methods.rb +1 -1
  74. data/lib/spec/example/subject.rb +8 -0
  75. data/lib/spec/interop/test.rb +27 -1
  76. data/lib/spec/interop/test/unit/testcase.rb +1 -1
  77. data/lib/spec/matchers/exist.rb +2 -2
  78. data/lib/spec/matchers/extensions/instance_exec.rb +28 -20
  79. data/lib/spec/matchers/matcher.rb +21 -20
  80. data/lib/spec/mocks/argument_matchers.rb +17 -13
  81. data/lib/spec/mocks/error_generator.rb +14 -3
  82. data/lib/spec/mocks/{spec_methods.rb → example_methods.rb} +25 -11
  83. data/lib/spec/mocks/framework.rb +1 -1
  84. data/lib/spec/mocks/methods.rb +15 -0
  85. data/lib/spec/mocks/mock.rb +16 -10
  86. data/lib/spec/mocks/proxy.rb +1 -1
  87. data/lib/spec/rake/spectask.rb +3 -3
  88. data/lib/spec/runner/backtrace_tweaker.rb +41 -22
  89. data/lib/spec/runner/configuration.rb +18 -1
  90. data/lib/spec/runner/differs/default.rb +1 -1
  91. data/lib/spec/runner/drb_command_line.rb +5 -2
  92. data/lib/spec/runner/formatter/base_text_formatter.rb +8 -3
  93. data/lib/spec/runner/option_parser.rb +21 -15
  94. data/lib/spec/runner/options.rb +54 -23
  95. data/lib/spec/version.rb +3 -3
  96. data/resources/helpers/cmdline.rb +0 -1
  97. data/spec/autotest/autotest_helper.rb +4 -6
  98. data/spec/autotest/discover_spec.rb +2 -2
  99. data/spec/autotest/failed_results_re_spec.rb +1 -1
  100. data/spec/autotest/rspec_spec.rb +1 -1
  101. data/spec/spec/dsl/main_spec.rb +1 -1
  102. data/spec/spec/example/example_group_class_definition_spec.rb +1 -1
  103. data/spec/spec/example/example_group_factory_spec.rb +1 -1
  104. data/spec/spec/example/example_group_methods_spec.rb +21 -1
  105. data/spec/spec/example/example_group_proxy_spec.rb +1 -1
  106. data/spec/spec/example/example_group_spec.rb +1 -1
  107. data/spec/spec/example/example_matcher_spec.rb +1 -1
  108. data/spec/spec/example/example_methods_spec.rb +1 -1
  109. data/spec/spec/example/example_proxy_spec.rb +1 -1
  110. data/spec/spec/example/helper_method_spec.rb +1 -1
  111. data/spec/spec/example/nested_example_group_spec.rb +1 -1
  112. data/spec/spec/example/predicate_matcher_spec.rb +1 -1
  113. data/spec/spec/example/shared_example_group_spec.rb +1 -1
  114. data/spec/spec/example/subclassing_example_group_spec.rb +1 -1
  115. data/spec/spec/example/subject_spec.rb +17 -1
  116. data/spec/spec/expectations/differs/default_spec.rb +16 -3
  117. data/spec/spec/expectations/extensions/kernel_spec.rb +1 -1
  118. data/spec/spec/expectations/fail_with_spec.rb +1 -1
  119. data/spec/spec/expectations/handler_spec.rb +1 -1
  120. data/spec/spec/expectations/wrap_expectation_spec.rb +1 -1
  121. data/spec/spec/interop/test/unit/resources/test_case_with_various_names.rb +22 -0
  122. data/spec/spec/interop/test/unit/spec_spec.rb +1 -1
  123. data/spec/spec/interop/test/unit/test_unit_spec_helper.rb +2 -2
  124. data/spec/spec/interop/test/unit/testcase_spec.rb +7 -2
  125. data/spec/spec/interop/test/unit/testsuite_adapter_spec.rb +1 -1
  126. data/spec/spec/matchers/be_close_spec.rb +1 -1
  127. data/spec/spec/matchers/be_instance_of_spec.rb +1 -1
  128. data/spec/spec/matchers/be_kind_of_spec.rb +1 -1
  129. data/spec/spec/matchers/be_spec.rb +13 -1
  130. data/spec/spec/matchers/change_spec.rb +1 -1
  131. data/spec/spec/matchers/compatibility_spec.rb +1 -1
  132. data/spec/spec/matchers/description_generation_spec.rb +1 -1
  133. data/spec/spec/matchers/dsl_spec.rb +1 -1
  134. data/spec/spec/matchers/eql_spec.rb +1 -1
  135. data/spec/spec/matchers/equal_spec.rb +1 -1
  136. data/spec/spec/matchers/exist_spec.rb +6 -2
  137. data/spec/spec/matchers/has_spec.rb +19 -1
  138. data/spec/spec/matchers/have_spec.rb +1 -1
  139. data/spec/spec/matchers/include_spec.rb +1 -1
  140. data/spec/spec/matchers/match_array_spec.rb +1 -1
  141. data/spec/spec/matchers/match_spec.rb +1 -1
  142. data/spec/spec/matchers/matcher_methods_spec.rb +1 -1
  143. data/spec/spec/matchers/matcher_spec.rb +55 -28
  144. data/spec/spec/matchers/matchers_spec.rb +1 -1
  145. data/spec/spec/matchers/operator_matcher_spec.rb +1 -1
  146. data/spec/spec/matchers/raise_error_spec.rb +1 -1
  147. data/spec/spec/matchers/respond_to_spec.rb +1 -1
  148. data/spec/spec/matchers/satisfy_spec.rb +1 -1
  149. data/spec/spec/matchers/simple_matcher_spec.rb +1 -1
  150. data/spec/spec/matchers/throw_symbol_spec.rb +1 -1
  151. data/spec/spec/mocks/any_number_of_times_spec.rb +1 -1
  152. data/spec/spec/mocks/argument_expectation_spec.rb +1 -1
  153. data/spec/spec/mocks/argument_matchers_spec.rb +19 -0
  154. data/spec/spec/mocks/at_least_spec.rb +1 -1
  155. data/spec/spec/mocks/at_most_spec.rb +1 -1
  156. data/spec/spec/mocks/bug_report_10260_spec.rb +1 -1
  157. data/spec/spec/mocks/bug_report_10263_spec.rb +1 -1
  158. data/spec/spec/mocks/bug_report_11545_spec.rb +1 -1
  159. data/spec/spec/mocks/bug_report_15719_spec.rb +3 -3
  160. data/spec/spec/mocks/bug_report_496_spec.rb +1 -1
  161. data/spec/spec/mocks/bug_report_600_spec.rb +1 -1
  162. data/spec/spec/mocks/bug_report_7611_spec.rb +1 -1
  163. data/spec/spec/mocks/bug_report_7805_spec.rb +1 -1
  164. data/spec/spec/mocks/bug_report_8165_spec.rb +1 -1
  165. data/spec/spec/mocks/bug_report_8302_spec.rb +1 -1
  166. data/spec/spec/mocks/bug_report_830_spec.rb +1 -1
  167. data/spec/spec/mocks/double_spec.rb +12 -0
  168. data/spec/spec/mocks/failing_argument_matchers_spec.rb +6 -6
  169. data/spec/spec/mocks/hash_including_matcher_spec.rb +1 -1
  170. data/spec/spec/mocks/hash_not_including_matcher_spec.rb +1 -1
  171. data/spec/spec/mocks/mock_ordering_spec.rb +4 -4
  172. data/spec/spec/mocks/mock_space_spec.rb +1 -1
  173. data/spec/spec/mocks/mock_spec.rb +20 -24
  174. data/spec/spec/mocks/multiple_return_value_spec.rb +8 -8
  175. data/spec/spec/mocks/nil_expectation_warning_spec.rb +1 -1
  176. data/spec/spec/mocks/null_object_mock_spec.rb +1 -1
  177. data/spec/spec/mocks/once_counts_spec.rb +1 -1
  178. data/spec/spec/mocks/options_hash_spec.rb +1 -1
  179. data/spec/spec/mocks/partial_mock_spec.rb +1 -1
  180. data/spec/spec/mocks/partial_mock_using_mocks_directly_spec.rb +1 -1
  181. data/spec/spec/mocks/passing_argument_matchers_spec.rb +1 -1
  182. data/spec/spec/mocks/precise_counts_spec.rb +1 -1
  183. data/spec/spec/mocks/record_messages_spec.rb +1 -1
  184. data/spec/spec/mocks/stub_chain_spec.rb +1 -1
  185. data/spec/spec/mocks/stub_implementation_spec.rb +1 -1
  186. data/spec/spec/mocks/stub_spec.rb +14 -9
  187. data/spec/spec/mocks/stubbed_message_expectations_spec.rb +2 -2
  188. data/spec/spec/mocks/twice_counts_spec.rb +1 -1
  189. data/spec/spec/mocks/unstub_spec.rb +1 -1
  190. data/spec/spec/package/bin_spec_spec.rb +4 -10
  191. data/spec/spec/rake/spectask_spec.rb +2 -2
  192. data/spec/spec/runner/class_and_argument_parser_spec.rb +1 -1
  193. data/spec/spec/runner/command_line_spec.rb +1 -1
  194. data/spec/spec/runner/configuration_spec.rb +15 -6
  195. data/spec/spec/runner/drb_command_line_spec.rb +1 -1
  196. data/spec/spec/runner/example_group_runner_spec.rb +1 -1
  197. data/spec/spec/runner/formatter/base_formatter_spec.rb +1 -1
  198. data/spec/spec/runner/formatter/base_text_formatter_spec.rb +10 -1
  199. data/spec/spec/runner/formatter/failing_example_groups_formatter_spec.rb +1 -1
  200. data/spec/spec/runner/formatter/failing_examples_formatter_spec.rb +1 -1
  201. data/spec/spec/runner/formatter/html_formatted-1.8.6-jruby.html +72 -76
  202. data/spec/spec/runner/formatter/html_formatted-1.8.6.html +50 -50
  203. data/spec/spec/runner/formatter/html_formatted-1.8.7.html +50 -50
  204. data/spec/spec/runner/formatter/html_formatted-1.9.1.html +61 -69
  205. data/spec/spec/runner/formatter/html_formatter_spec.rb +26 -26
  206. data/spec/spec/runner/formatter/nested_text_formatter_spec.rb +1 -1
  207. data/spec/spec/runner/formatter/profile_formatter_spec.rb +1 -1
  208. data/spec/spec/runner/formatter/progress_bar_formatter_spec.rb +13 -9
  209. data/spec/spec/runner/formatter/snippet_extractor_spec.rb +1 -1
  210. data/spec/spec/runner/formatter/specdoc_formatter_spec.rb +1 -1
  211. data/spec/spec/runner/formatter/{text_mate_formatted-1.8.4.html → text_mate_formatted-1.8.6-jruby.html} +64 -59
  212. data/spec/spec/runner/formatter/text_mate_formatted-1.8.6.html +46 -46
  213. data/spec/spec/runner/formatter/text_mate_formatted-1.8.7.html +46 -46
  214. data/spec/spec/runner/formatter/text_mate_formatted-1.9.1.html +55 -63
  215. data/spec/spec/runner/formatter/text_mate_formatter_spec.rb +3 -3
  216. data/spec/spec/runner/heckle_runner_spec.rb +1 -1
  217. data/spec/spec/runner/heckler_spec.rb +1 -1
  218. data/spec/spec/runner/line_number_query/line_number_query_fixture.rb +1 -1
  219. data/spec/spec/runner/line_number_query_spec.rb +10 -1
  220. data/spec/spec/runner/noisy_backtrace_tweaker_spec.rb +22 -16
  221. data/spec/spec/runner/option_parser_spec.rb +48 -14
  222. data/spec/spec/runner/options_spec.rb +16 -2
  223. data/spec/spec/runner/output_one_time_fixture.rb +1 -1
  224. data/spec/spec/runner/output_one_time_fixture_runner.rb +2 -3
  225. data/spec/spec/runner/output_one_time_spec.rb +6 -7
  226. data/spec/spec/runner/quiet_backtrace_tweaker_spec.rb +65 -22
  227. data/spec/spec/runner/reporter_spec.rb +1 -1
  228. data/spec/spec/runner_spec.rb +1 -1
  229. data/spec/spec_helper.rb +5 -7
  230. data/spec/{spec → support}/spec_classes.rb +0 -0
  231. metadata +58 -17
  232. data/examples/failing/spec_helper.rb +0 -3
  233. data/examples/passing/spec_helper.rb +0 -3
  234. data/features/heckle/heckle.feature +0 -56
  235. data/spec/rspec_suite.rb +0 -6
  236. data/spec/spec/runner/formatter/html_formatted-1.8.4.html +0 -366
  237. data/spec/spec/runner/formatter/html_formatted-1.8.5-jruby.html +0 -387
  238. data/spec/spec/runner/formatter/html_formatted-1.8.5.html +0 -372
@@ -1,61 +1,104 @@
1
- require File.dirname(__FILE__) + '/../../spec_helper.rb'
1
+ require 'spec_helper'
2
2
 
3
3
  module Spec
4
4
  module Runner
5
- describe "QuietBacktraceTweaker" do
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 "should not barf on nil backtrace" do
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 "should remove anything from textmate ruby bundle" do
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 "should remove anything in lib spec dir" do
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
- unless (@error.backtrace.empty?)
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 "should remove mock_frameworks/rspec" do
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
- unless (@error.backtrace.empty?)
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 "should remove bin spec" do
44
- @error.set_backtrace(["bin/spec:"])
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 "should clean up double slashes" do
50
- @error.set_backtrace(["/a//b/c//d.rb"])
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 include("/a/b/c/d.rb")
70
+ @error.backtrace.should be_empty, "Should have removed line with '#{element}'"
53
71
  end
54
72
 
55
- it "should gracefully handle backtraces with newlines" do
56
- @error.set_backtrace(["we like\nbin/spec:\nnewlines"])
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 include("we like\nnewlines")
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
@@ -1,4 +1,4 @@
1
- require File.dirname(__FILE__) + '/../../spec_helper.rb'
1
+ require 'spec_helper'
2
2
 
3
3
  module Spec
4
4
  module Runner
@@ -1,4 +1,4 @@
1
- require File.dirname(__FILE__) + '/../spec_helper.rb'
1
+ require 'spec_helper'
2
2
 
3
3
  module Spec
4
4
  describe Runner do
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
- spec_classes_path = File.expand_path("#{dir}/../spec/spec/spec_classes")
11
- require spec_classes_path unless $LOAD_PATH.include?(spec_classes_path)
12
- require File.dirname(__FILE__) + '/../lib/spec/runner/differs/default'
13
- require File.dirname(__FILE__) + '/support/macros'
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.8
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-07-16 00:00:00 -05:00
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.2.2
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.1
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.4.html
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.8
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.4
500
+ rubygems_version: 1.3.5
460
501
  signing_key:
461
502
  specification_version: 3
462
- summary: rspec 1.2.8
503
+ summary: rspec 1.2.9
463
504
  test_files: []
464
505
 
@@ -1,3 +0,0 @@
1
- lib_path = File.expand_path(File.dirname(__FILE__) + "/../../lib")
2
- $LOAD_PATH.unshift lib_path unless $LOAD_PATH.include?(lib_path)
3
- require 'spec/autorun'
@@ -1,3 +0,0 @@
1
- lib_path = File.expand_path("#{File.dirname(__FILE__)}/../../lib")
2
- $LOAD_PATH.unshift lib_path unless $LOAD_PATH.include?(lib_path)
3
- require 'spec/autorun'
@@ -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
-