rspec 1.0.0 → 1.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (456) hide show
  1. data/.document +7 -0
  2. data/History.rdoc +1546 -0
  3. data/{MIT-LICENSE → License.txt} +3 -1
  4. data/Manifest.txt +384 -0
  5. data/README.rdoc +41 -0
  6. data/Rakefile +94 -229
  7. data/Ruby1.9.rdoc +31 -0
  8. data/TODO.txt +17 -0
  9. data/Upgrade.rdoc +260 -0
  10. data/bin/autospec +4 -0
  11. data/bin/spec +5 -3
  12. data/cucumber.yml +5 -0
  13. data/examples/failing/README.txt +11 -0
  14. data/examples/failing/diffing_spec.rb +36 -0
  15. data/examples/failing/failing_implicit_docstrings_example.rb +17 -0
  16. data/examples/failing/failure_in_after.rb +10 -0
  17. data/examples/failing/failure_in_before.rb +10 -0
  18. data/examples/failing/mocking_example.rb +38 -0
  19. data/examples/failing/mocking_with_flexmock.rb +26 -0
  20. data/examples/failing/mocking_with_mocha.rb +25 -0
  21. data/examples/failing/mocking_with_rr.rb +27 -0
  22. data/examples/failing/partial_mock_example.rb +18 -0
  23. data/examples/failing/pending_example.rb +7 -0
  24. data/examples/failing/predicate_example.rb +32 -0
  25. data/examples/failing/raising_example.rb +47 -0
  26. data/examples/failing/syntax_error_example.rb +7 -0
  27. data/examples/failing/team_spec.rb +41 -0
  28. data/examples/failing/timeout_behaviour.rb +5 -0
  29. data/examples/{custom_formatter.rb → passing/custom_formatter.rb} +1 -1
  30. data/examples/passing/dynamic_spec.rb +7 -0
  31. data/examples/{file_accessor.rb → passing/file_accessor.rb} +18 -18
  32. data/examples/{file_accessor_spec.rb → passing/file_accessor_spec.rb} +37 -38
  33. data/examples/passing/filtered_formatter.rb +17 -0
  34. data/examples/passing/filtered_formatter_example.rb +31 -0
  35. data/examples/{greeter_spec.rb → passing/greeter_spec.rb} +1 -1
  36. data/examples/passing/helper_method_example.rb +12 -0
  37. data/examples/passing/implicit_docstrings_example.rb +16 -0
  38. data/examples/{io_processor.rb → passing/io_processor.rb} +8 -8
  39. data/examples/{io_processor_spec.rb → passing/io_processor_spec.rb} +2 -3
  40. data/examples/{mocking_example.rb → passing/mocking_example.rb} +0 -2
  41. data/examples/{multi_threaded_behaviour_runner.rb → passing/multi_threaded_example_group_runner.rb} +10 -9
  42. data/examples/passing/nested_classes_example.rb +35 -0
  43. data/examples/passing/options_example.rb +29 -0
  44. data/examples/passing/options_formatter.rb +20 -0
  45. data/examples/{partial_mock_example.rb → passing/partial_mock_example.rb} +2 -3
  46. data/examples/passing/pending_example.rb +18 -0
  47. data/examples/{predicate_example.rb → passing/predicate_example.rb} +1 -3
  48. data/examples/{shared_behaviours_example.rb → passing/shared_example_group_example.rb} +15 -11
  49. data/examples/passing/shared_stack_examples.rb +36 -0
  50. data/examples/passing/simple_matcher_example.rb +29 -0
  51. data/examples/{stack.rb → passing/stack.rb} +1 -1
  52. data/examples/{stack_spec.rb → passing/stack_spec.rb} +6 -40
  53. data/examples/passing/stack_spec_with_nested_example_groups.rb +66 -0
  54. data/examples/{stubbing_example.rb → passing/stubbing_example.rb} +1 -3
  55. data/examples/passing/yielding_example.rb +31 -0
  56. data/examples/ruby1.9.compatibility/access_to_constants_spec.rb +85 -0
  57. data/features/before_and_after_blocks/before_and_after_blocks.feature +167 -0
  58. data/features/command_line/line_number_option.feature +56 -0
  59. data/features/command_line/line_number_option_with_example_with_no_name.feature +22 -0
  60. data/features/example_groups/define_example_attribute.feature +41 -0
  61. data/features/example_groups/example_group_with_should_methods.feature +29 -0
  62. data/features/example_groups/implicit_docstrings.feature +59 -0
  63. data/features/example_groups/nested_groups.feature +32 -0
  64. data/features/expectations/customized_message.feature +54 -0
  65. data/features/expectations/expect_change.feature +65 -0
  66. data/features/expectations/expect_error.feature +44 -0
  67. data/features/extensions/custom_example_group.feature +19 -0
  68. data/features/formatters/custom_formatter.feature +30 -0
  69. data/features/formatters/nested_formatter.feature +32 -0
  70. data/features/interop/cucumber_stubs_dont_leak.feature +11 -0
  71. data/features/interop/examples_and_tests_together.feature +84 -0
  72. data/features/interop/rspec_output.feature +25 -0
  73. data/features/interop/test_but_not_test_unit.feature +26 -0
  74. data/features/interop/test_case_with_should_methods.feature +46 -0
  75. data/features/load_paths/add_lib_to_load_path.feature +20 -0
  76. data/features/load_paths/add_spec_to_load_path.feature +20 -0
  77. data/features/matchers/define_diffable_matcher.feature +26 -0
  78. data/features/matchers/define_matcher.feature +179 -0
  79. data/features/matchers/define_matcher_outside_rspec.feature +38 -0
  80. data/features/matchers/define_matcher_with_fluent_interface.feature +48 -0
  81. data/features/matchers/define_wrapped_matcher.feature +56 -0
  82. data/features/matchers/match_unless_raises.feature +60 -0
  83. data/features/matchers/match_unless_raises_unexpected_error.feature +39 -0
  84. data/features/mock_framework_integration/use_flexmock.feature +27 -0
  85. data/features/mock_framework_integration/use_mocha.feature +27 -0
  86. data/features/mock_framework_integration/use_rr.feature +27 -0
  87. data/features/mocks/block_local_expectations.feature +62 -0
  88. data/features/mocks/mix_stubs_and_mocks.feature +22 -0
  89. data/features/mocks/stub_implementation.feature +26 -0
  90. data/features/pending/pending_examples.feature +81 -0
  91. data/features/runner/specify_line_number.feature +32 -0
  92. data/features/spec_helper/spec_helper.feature +25 -0
  93. data/features/step_definitions/running_rspec_steps.rb +52 -0
  94. data/features/step_definitions/stubbing_steps.rb +16 -0
  95. data/features/subject/explicit_subject.feature +31 -0
  96. data/features/subject/implicit_subject.feature +43 -0
  97. data/features/support/env.rb +83 -0
  98. data/features/support/matchers/smart_match.rb +31 -0
  99. data/geminstaller.yml +29 -0
  100. data/init.rb +9 -0
  101. data/lib/autotest/discover.rb +3 -0
  102. data/lib/autotest/rspec.rb +54 -0
  103. data/lib/spec/adapters/mock_frameworks/flexmock.rb +24 -0
  104. data/{plugins → lib/spec/adapters}/mock_frameworks/mocha.rb +8 -4
  105. data/lib/spec/adapters/mock_frameworks/rr.rb +22 -0
  106. data/lib/spec/adapters/mock_frameworks/rspec.rb +21 -0
  107. data/lib/spec/autorun.rb +3 -0
  108. data/lib/spec/deprecation.rb +41 -0
  109. data/lib/spec/dsl/main.rb +93 -0
  110. data/lib/spec/dsl.rb +1 -10
  111. data/lib/spec/example/args_and_options.rb +27 -0
  112. data/lib/spec/example/before_and_after_hooks.rb +93 -0
  113. data/lib/spec/example/errors.rb +25 -0
  114. data/lib/spec/example/example_group.rb +10 -0
  115. data/lib/spec/example/example_group_factory.rb +82 -0
  116. data/lib/spec/example/example_group_hierarchy.rb +53 -0
  117. data/lib/spec/example/example_group_methods.rb +287 -0
  118. data/lib/spec/example/example_group_proxy.rb +61 -0
  119. data/lib/spec/example/example_matcher.rb +43 -0
  120. data/lib/spec/example/example_methods.rb +152 -0
  121. data/lib/spec/example/example_proxy.rb +41 -0
  122. data/lib/spec/example/module_reopening_fix.rb +43 -0
  123. data/lib/spec/example/pending.rb +18 -0
  124. data/lib/spec/example/predicate_matchers.rb +46 -0
  125. data/lib/spec/example/shared_example_group.rb +59 -0
  126. data/lib/spec/example/subject.rb +114 -0
  127. data/lib/spec/example.rb +164 -0
  128. data/lib/spec/expectations/errors.rb +7 -1
  129. data/lib/spec/expectations/extensions/kernel.rb +52 -0
  130. data/lib/spec/expectations/extensions.rb +1 -2
  131. data/lib/spec/expectations/fail_with.rb +45 -0
  132. data/lib/spec/expectations/handler.rb +37 -30
  133. data/lib/spec/expectations.rb +2 -23
  134. data/lib/spec/extensions/instance_exec.rb +31 -0
  135. data/lib/spec/interop/test/unit/autorunner.rb +6 -0
  136. data/lib/spec/interop/test/unit/testcase.rb +56 -0
  137. data/lib/spec/interop/test/unit/testresult.rb +6 -0
  138. data/lib/spec/interop/test/unit/testsuite_adapter.rb +36 -0
  139. data/lib/spec/interop/test/unit/ui/console/testrunner.rb +61 -0
  140. data/lib/spec/interop/test.rb +44 -0
  141. data/lib/spec/matchers/be.rb +183 -140
  142. data/lib/spec/matchers/be_close.rb +18 -23
  143. data/lib/spec/matchers/be_instance_of.rb +26 -0
  144. data/lib/spec/matchers/be_kind_of.rb +26 -0
  145. data/lib/spec/matchers/change.rb +72 -41
  146. data/lib/spec/matchers/compatibility.rb +14 -0
  147. data/lib/spec/matchers/dsl.rb +20 -0
  148. data/lib/spec/matchers/eql.rb +25 -26
  149. data/lib/spec/matchers/equal.rb +35 -25
  150. data/lib/spec/matchers/errors.rb +5 -0
  151. data/lib/spec/matchers/exist.rb +16 -0
  152. data/lib/spec/matchers/generated_descriptions.rb +36 -0
  153. data/lib/spec/matchers/has.rb +17 -26
  154. data/lib/spec/matchers/have.rb +36 -24
  155. data/lib/spec/matchers/include.rb +22 -48
  156. data/lib/spec/matchers/match.rb +11 -31
  157. data/lib/spec/matchers/match_array.rb +71 -0
  158. data/lib/spec/matchers/matcher.rb +132 -0
  159. data/lib/spec/matchers/method_missing.rb +9 -0
  160. data/lib/spec/matchers/operator_matcher.rb +55 -44
  161. data/lib/spec/matchers/pretty.rb +37 -0
  162. data/lib/spec/matchers/raise_exception.rb +131 -0
  163. data/lib/spec/matchers/respond_to.rb +35 -9
  164. data/lib/spec/matchers/satisfy.rb +2 -2
  165. data/lib/spec/matchers/simple_matcher.rb +134 -0
  166. data/lib/spec/matchers/throw_symbol.rb +56 -31
  167. data/lib/spec/matchers/wrap_expectation.rb +55 -0
  168. data/lib/spec/matchers.rb +104 -48
  169. data/lib/spec/mocks/argument_expectation.rb +28 -112
  170. data/lib/spec/mocks/argument_matchers.rb +237 -0
  171. data/lib/spec/mocks/error_generator.rb +20 -13
  172. data/lib/spec/mocks/errors.rb +1 -1
  173. data/lib/spec/mocks/example_methods.rb +69 -0
  174. data/lib/spec/mocks/extensions.rb +1 -0
  175. data/lib/spec/mocks/framework.rb +15 -0
  176. data/lib/spec/mocks/message_expectation.rb +206 -93
  177. data/lib/spec/mocks/methods.rb +66 -7
  178. data/lib/spec/mocks/mock.rb +53 -11
  179. data/lib/spec/mocks/proxy.rb +160 -55
  180. data/lib/spec/mocks/space.rb +2 -2
  181. data/lib/spec/mocks.rb +14 -23
  182. data/lib/spec/rake/spectask.rb +108 -53
  183. data/lib/spec/rake/verify_rcov.rb +4 -4
  184. data/lib/spec/ruby.rb +9 -0
  185. data/lib/spec/runner/backtrace_tweaker.rb +45 -23
  186. data/lib/spec/runner/class_and_arguments_parser.rb +14 -0
  187. data/lib/spec/runner/command_line.rb +7 -14
  188. data/lib/spec/runner/configuration.rb +202 -0
  189. data/lib/spec/runner/differs/default.rb +93 -0
  190. data/lib/spec/runner/differs/load-diff-lcs.rb +12 -0
  191. data/lib/spec/runner/drb_command_line.rb +18 -7
  192. data/lib/spec/runner/example_group_runner.rb +58 -0
  193. data/lib/spec/runner/extensions/kernel.rb +5 -46
  194. data/lib/spec/runner/formatter/base_formatter.rb +97 -26
  195. data/lib/spec/runner/formatter/base_text_formatter.rb +79 -39
  196. data/lib/spec/runner/formatter/failing_example_groups_formatter.rb +25 -0
  197. data/lib/spec/runner/formatter/failing_examples_formatter.rb +6 -8
  198. data/lib/spec/runner/formatter/html_formatter.rb +101 -75
  199. data/lib/spec/runner/formatter/nested_text_formatter.rb +50 -0
  200. data/lib/spec/runner/formatter/no_op_method_missing.rb +21 -0
  201. data/lib/spec/runner/formatter/profile_formatter.rb +47 -0
  202. data/lib/spec/runner/formatter/progress_bar_formatter.rb +11 -8
  203. data/lib/spec/runner/formatter/silent_formatter.rb +10 -0
  204. data/lib/spec/runner/formatter/snippet_extractor.rb +2 -2
  205. data/lib/spec/runner/formatter/specdoc_formatter.rb +20 -15
  206. data/lib/spec/runner/formatter/text_mate_formatter.rb +16 -0
  207. data/lib/spec/runner/heckle_runner.rb +56 -56
  208. data/lib/spec/runner/{heckle_runner_win.rb → heckle_runner_unsupported.rb} +10 -10
  209. data/lib/spec/runner/line_number_query.rb +78 -0
  210. data/lib/spec/runner/option_parser.rb +147 -148
  211. data/lib/spec/runner/options.rb +343 -95
  212. data/lib/spec/runner/reporter.rb +117 -60
  213. data/lib/spec/runner.rb +39 -138
  214. data/lib/spec/stubs/cucumber.rb +5 -0
  215. data/lib/spec/test/unit.rb +10 -0
  216. data/lib/spec/version.rb +14 -22
  217. data/lib/spec.rb +5 -10
  218. data/resources/helpers/cmdline.rb +8 -0
  219. data/resources/rake/examples.rake +7 -0
  220. data/resources/rake/examples_with_rcov.rake +9 -0
  221. data/resources/rake/failing_examples_with_html.rake +9 -0
  222. data/resources/rake/verify_rcov.rake +7 -0
  223. data/spec/README.jruby +15 -0
  224. data/spec/autotest/autotest_helper.rb +8 -0
  225. data/spec/autotest/autotest_matchers.rb +38 -0
  226. data/spec/autotest/discover_spec.rb +8 -0
  227. data/spec/autotest/failed_results_re_spec.rb +31 -0
  228. data/spec/autotest/rspec_spec.rb +126 -0
  229. data/spec/ruby_forker.rb +13 -0
  230. data/spec/spec/dsl/main_spec.rb +103 -0
  231. data/spec/spec/example/example_group_class_definition_spec.rb +51 -0
  232. data/spec/spec/example/example_group_factory_spec.rb +180 -0
  233. data/spec/spec/example/example_group_methods_spec.rb +778 -0
  234. data/spec/spec/example/example_group_proxy_spec.rb +107 -0
  235. data/spec/spec/example/example_group_spec.rb +632 -0
  236. data/spec/spec/example/example_matcher_spec.rb +85 -0
  237. data/spec/spec/example/example_methods_spec.rb +162 -0
  238. data/spec/spec/example/example_proxy_spec.rb +57 -0
  239. data/spec/spec/example/helper_method_spec.rb +24 -0
  240. data/spec/spec/{dsl/behaviour_eval_spec.rb → example/nested_example_group_spec.rb} +25 -3
  241. data/spec/spec/example/pending_module_spec.rb +58 -0
  242. data/spec/spec/example/predicate_matcher_spec.rb +41 -0
  243. data/spec/spec/example/shared_example_group_spec.rb +257 -0
  244. data/spec/spec/example/subclassing_example_group_spec.rb +25 -0
  245. data/spec/spec/example/subject_spec.rb +110 -0
  246. data/spec/spec/expectations/differs/default_spec.rb +100 -13
  247. data/spec/spec/expectations/extensions/{object_spec.rb → kernel_spec.rb} +13 -14
  248. data/spec/spec/expectations/fail_with_spec.rb +42 -17
  249. data/spec/spec/expectations/handler_spec.rb +206 -0
  250. data/spec/spec/expectations/wrap_expectation_spec.rb +31 -0
  251. data/spec/spec/interop/test/unit/resources/spec_that_fails.rb +10 -0
  252. data/spec/spec/interop/test/unit/resources/spec_that_passes.rb +10 -0
  253. data/spec/spec/interop/test/unit/resources/spec_with_errors.rb +10 -0
  254. data/spec/spec/interop/test/unit/resources/spec_with_options_hash.rb +13 -0
  255. data/spec/spec/interop/test/unit/resources/test_case_that_fails.rb +10 -0
  256. data/spec/spec/interop/test/unit/resources/test_case_that_passes.rb +10 -0
  257. data/spec/spec/interop/test/unit/resources/test_case_with_errors.rb +10 -0
  258. data/spec/spec/interop/test/unit/resources/test_case_with_various_names.rb +22 -0
  259. data/spec/spec/interop/test/unit/resources/testsuite_adapter_spec_with_test_unit.rb +38 -0
  260. data/spec/spec/interop/test/unit/spec_spec.rb +48 -0
  261. data/spec/spec/interop/test/unit/test_unit_spec_helper.rb +18 -0
  262. data/spec/spec/interop/test/unit/testcase_spec.rb +50 -0
  263. data/spec/spec/interop/test/unit/testsuite_adapter_spec.rb +9 -0
  264. data/spec/spec/matchers/be_close_spec.rb +32 -21
  265. data/spec/spec/matchers/be_instance_of_spec.rb +36 -0
  266. data/spec/spec/matchers/be_kind_of_spec.rb +33 -0
  267. data/spec/spec/matchers/be_spec.rb +261 -10
  268. data/spec/spec/matchers/change_spec.rb +178 -61
  269. data/spec/spec/matchers/compatibility_spec.rb +28 -0
  270. data/spec/spec/matchers/description_generation_spec.rb +47 -46
  271. data/spec/spec/matchers/dsl_spec.rb +34 -0
  272. data/spec/spec/matchers/eql_spec.rb +14 -9
  273. data/spec/spec/matchers/equal_spec.rb +43 -14
  274. data/spec/spec/matchers/exist_spec.rb +41 -24
  275. data/spec/spec/matchers/has_spec.rb +154 -1
  276. data/spec/spec/matchers/have_spec.rb +311 -189
  277. data/spec/spec/matchers/include_spec.rb +45 -2
  278. data/spec/spec/matchers/match_array_spec.rb +115 -0
  279. data/spec/spec/matchers/match_spec.rb +25 -5
  280. data/spec/spec/matchers/matcher_spec.rb +289 -0
  281. data/spec/spec/matchers/matchers_spec.rb +2 -0
  282. data/spec/spec/matchers/operator_matcher_spec.rb +48 -15
  283. data/spec/spec/matchers/raise_exception_spec.rb +345 -0
  284. data/spec/spec/matchers/respond_to_spec.rb +78 -16
  285. data/spec/spec/matchers/satisfy_spec.rb +1 -1
  286. data/spec/spec/matchers/simple_matcher_spec.rb +100 -0
  287. data/spec/spec/matchers/throw_symbol_spec.rb +111 -41
  288. data/spec/spec/mocks/and_yield_spec.rb +117 -0
  289. data/spec/spec/mocks/any_number_of_times_spec.rb +9 -2
  290. data/spec/spec/mocks/argument_expectation_spec.rb +19 -15
  291. data/spec/spec/mocks/argument_matchers_spec.rb +19 -0
  292. data/spec/spec/mocks/at_least_spec.rb +2 -2
  293. data/spec/spec/mocks/at_most_spec.rb +3 -3
  294. data/spec/spec/mocks/bug_report_10260_spec.rb +1 -1
  295. data/spec/spec/mocks/bug_report_10263_spec.rb +27 -0
  296. data/spec/spec/mocks/bug_report_11545_spec.rb +32 -0
  297. data/spec/spec/mocks/bug_report_15719_spec.rb +30 -0
  298. data/spec/spec/mocks/bug_report_496_spec.rb +17 -0
  299. data/spec/spec/mocks/bug_report_600_spec.rb +22 -0
  300. data/spec/spec/mocks/bug_report_7611_spec.rb +2 -2
  301. data/spec/spec/mocks/bug_report_7805_spec.rb +2 -2
  302. data/spec/spec/mocks/bug_report_8165_spec.rb +4 -4
  303. data/spec/spec/mocks/bug_report_8302_spec.rb +2 -2
  304. data/spec/spec/mocks/bug_report_830_spec.rb +21 -0
  305. data/spec/spec/mocks/double_spec.rb +12 -0
  306. data/spec/spec/mocks/failing_argument_matchers_spec.rb +95 -0
  307. data/spec/spec/mocks/hash_including_matcher_spec.rb +90 -0
  308. data/spec/spec/mocks/hash_not_including_matcher_spec.rb +67 -0
  309. data/spec/spec/mocks/mock_ordering_spec.rb +15 -5
  310. data/spec/spec/mocks/mock_space_spec.rb +1 -1
  311. data/spec/spec/mocks/mock_spec.rb +346 -129
  312. data/spec/spec/mocks/multiple_return_value_spec.rb +9 -9
  313. data/spec/spec/mocks/nil_expectation_warning_spec.rb +53 -0
  314. data/spec/spec/mocks/null_object_mock_spec.rb +15 -1
  315. data/spec/spec/mocks/once_counts_spec.rb +2 -2
  316. data/spec/spec/mocks/options_hash_spec.rb +19 -17
  317. data/spec/spec/mocks/partial_mock_spec.rb +124 -12
  318. data/spec/spec/mocks/partial_mock_using_mocks_directly_spec.rb +2 -2
  319. data/spec/spec/mocks/passing_argument_matchers_spec.rb +145 -0
  320. data/spec/spec/mocks/precise_counts_spec.rb +2 -2
  321. data/spec/spec/mocks/record_messages_spec.rb +2 -2
  322. data/spec/spec/mocks/stub_chain_spec.rb +42 -0
  323. data/spec/spec/mocks/stub_implementation_spec.rb +31 -0
  324. data/spec/spec/mocks/stub_spec.rb +147 -103
  325. data/spec/spec/mocks/stubbed_message_expectations_spec.rb +26 -0
  326. data/spec/spec/mocks/twice_counts_spec.rb +2 -2
  327. data/spec/spec/mocks/unstub_spec.rb +127 -0
  328. data/spec/spec/package/bin_spec_spec.rb +11 -7
  329. data/spec/spec/rake/spectask_spec.rb +150 -0
  330. data/spec/spec/runner/class_and_argument_parser_spec.rb +23 -0
  331. data/spec/spec/runner/command_line_spec.rb +158 -29
  332. data/spec/spec/runner/configuration_spec.rb +320 -0
  333. data/spec/spec/runner/drb_command_line_spec.rb +137 -72
  334. data/spec/spec/runner/empty_file.txt +0 -0
  335. data/spec/spec/runner/example_group_runner_spec.rb +26 -0
  336. data/spec/spec/runner/examples.txt +2 -0
  337. data/spec/spec/runner/failed.txt +3 -0
  338. data/spec/spec/runner/formatter/base_formatter_spec.rb +30 -0
  339. data/spec/spec/runner/formatter/base_text_formatter_spec.rb +113 -0
  340. data/spec/spec/runner/formatter/failing_example_groups_formatter_spec.rb +45 -0
  341. data/spec/spec/runner/formatter/failing_examples_formatter_spec.rb +17 -12
  342. data/spec/spec/runner/formatter/html_formatted-1.8.6-jruby.html +377 -0
  343. data/spec/spec/runner/formatter/html_formatted-1.8.6.html +377 -0
  344. data/spec/spec/runner/formatter/html_formatted-1.8.7.html +377 -0
  345. data/spec/spec/runner/formatter/html_formatted-1.9.1.html +377 -0
  346. data/spec/spec/runner/formatter/html_formatter_spec.rb +112 -52
  347. data/spec/spec/runner/formatter/nested_text_formatter_spec.rb +329 -0
  348. data/spec/spec/runner/formatter/profile_formatter_spec.rb +70 -0
  349. data/spec/spec/runner/formatter/progress_bar_formatter_spec.rb +87 -16
  350. data/spec/spec/runner/formatter/snippet_extractor_spec.rb +14 -7
  351. data/spec/spec/runner/formatter/specdoc_formatter_spec.rb +153 -50
  352. data/spec/spec/runner/formatter/text_mate_formatted-1.8.6-jruby.html +371 -0
  353. data/spec/spec/runner/formatter/text_mate_formatted-1.8.6.html +371 -0
  354. data/spec/spec/runner/formatter/text_mate_formatted-1.8.7.html +371 -0
  355. data/spec/spec/runner/formatter/text_mate_formatted-1.9.1.html +371 -0
  356. data/spec/spec/runner/formatter/text_mate_formatter_spec.rb +106 -0
  357. data/spec/spec/runner/heckle_runner_spec.rb +32 -17
  358. data/spec/spec/runner/heckler_spec.rb +17 -11
  359. data/spec/spec/runner/line_number_query/line_number_query_fixture.rb +70 -0
  360. data/spec/spec/runner/line_number_query_spec.rb +129 -0
  361. data/spec/spec/runner/noisy_backtrace_tweaker_spec.rb +27 -21
  362. data/spec/spec/runner/option_parser_spec.rb +367 -164
  363. data/spec/spec/runner/options_spec.rb +506 -94
  364. data/spec/spec/runner/output_one_time_fixture.rb +7 -0
  365. data/spec/spec/runner/output_one_time_fixture_runner.rb +7 -0
  366. data/spec/spec/runner/output_one_time_spec.rb +15 -0
  367. data/spec/spec/runner/quiet_backtrace_tweaker_spec.rb +94 -27
  368. data/spec/spec/runner/reporter_spec.rb +212 -121
  369. data/spec/spec/runner/resources/a_bar.rb +0 -0
  370. data/spec/spec/runner/resources/a_foo.rb +0 -0
  371. data/spec/spec/runner/resources/a_spec.rb +1 -0
  372. data/spec/spec/runner/resources/custom_example_group_runner.rb +14 -0
  373. data/spec/spec/runner/resources/utf8_encoded.rb +8 -0
  374. data/spec/spec/runner/spec.opts +2 -0
  375. data/spec/spec/runner/spec_drb.opts +2 -0
  376. data/spec/spec/runner/spec_spaced.opts +2 -0
  377. data/spec/spec/runner_spec.rb +13 -0
  378. data/spec/spec.opts +6 -0
  379. data/spec/spec_helper.rb +87 -45
  380. data/spec/support/macros.rb +29 -0
  381. data/spec/{spec → support}/spec_classes.rb +26 -4
  382. metadata +461 -141
  383. data/CHANGES +0 -748
  384. data/EXAMPLES.rd +0 -108
  385. data/README +0 -70
  386. data/UPGRADE +0 -31
  387. data/bin/spec_translator +0 -8
  388. data/examples/auto_spec_description_example.rb +0 -19
  389. data/examples/before_and_after_example.rb +0 -39
  390. data/examples/behave_as_example.rb +0 -45
  391. data/examples/dynamic_spec.rb +0 -9
  392. data/examples/helper_method_example.rb +0 -11
  393. data/examples/legacy_spec.rb +0 -10
  394. data/examples/not_yet_implemented_spec.rb +0 -12
  395. data/examples/priority.txt +0 -1
  396. data/examples/spec_helper.rb +0 -1
  397. data/examples/test_case_adapter_example.rb +0 -26
  398. data/examples/test_case_spec.rb +0 -65
  399. data/lib/spec/dsl/behaviour.rb +0 -204
  400. data/lib/spec/dsl/behaviour_callbacks.rb +0 -77
  401. data/lib/spec/dsl/behaviour_eval.rb +0 -177
  402. data/lib/spec/dsl/behaviour_factory.rb +0 -42
  403. data/lib/spec/dsl/composite_proc_builder.rb +0 -28
  404. data/lib/spec/dsl/configuration.rb +0 -119
  405. data/lib/spec/dsl/description.rb +0 -46
  406. data/lib/spec/dsl/example.rb +0 -127
  407. data/lib/spec/dsl/example_matcher.rb +0 -28
  408. data/lib/spec/dsl/example_should_raise_handler.rb +0 -74
  409. data/lib/spec/expectations/differs/default.rb +0 -61
  410. data/lib/spec/expectations/extensions/object.rb +0 -66
  411. data/lib/spec/expectations/extensions/string_and_symbol.rb +0 -17
  412. data/lib/spec/extensions/object.rb +0 -6
  413. data/lib/spec/extensions.rb +0 -1
  414. data/lib/spec/matchers/raise_error.rb +0 -100
  415. data/lib/spec/mocks/argument_constraint_matchers.rb +0 -12
  416. data/lib/spec/mocks/spec_methods.rb +0 -30
  417. data/lib/spec/runner/behaviour_runner.rb +0 -102
  418. data/lib/spec/runner/extensions/object.rb +0 -32
  419. data/lib/spec/runner/formatter/failing_behaviours_formatter.rb +0 -25
  420. data/lib/spec/runner/formatter/rdoc_formatter.rb +0 -24
  421. data/lib/spec/runner/formatter.rb +0 -9
  422. data/lib/spec/runner/spec_parser.rb +0 -50
  423. data/lib/spec/test_case_adapter.rb +0 -10
  424. data/lib/spec/translator.rb +0 -106
  425. data/plugins/mock_frameworks/flexmock.rb +0 -27
  426. data/plugins/mock_frameworks/rspec.rb +0 -18
  427. data/spec/spec/dsl/behaviour_factory_spec.rb +0 -30
  428. data/spec/spec/dsl/behaviour_spec.rb +0 -604
  429. data/spec/spec/dsl/composite_proc_builder_spec.rb +0 -57
  430. data/spec/spec/dsl/configuration_spec.rb +0 -50
  431. data/spec/spec/dsl/description_spec.rb +0 -81
  432. data/spec/spec/dsl/example_class_spec.rb +0 -24
  433. data/spec/spec/dsl/example_instance_spec.rb +0 -162
  434. data/spec/spec/dsl/example_should_raise_spec.rb +0 -137
  435. data/spec/spec/dsl/predicate_matcher_spec.rb +0 -21
  436. data/spec/spec/dsl/shared_behaviour_spec.rb +0 -208
  437. data/spec/spec/matchers/handler_spec.rb +0 -88
  438. data/spec/spec/matchers/matcher_methods_spec.rb +0 -78
  439. data/spec/spec/matchers/raise_error_spec.rb +0 -147
  440. data/spec/spec/mocks/failing_mock_argument_constraints_spec.rb +0 -73
  441. data/spec/spec/mocks/passing_mock_argument_constraints_spec.rb +0 -92
  442. data/spec/spec/runner/behaviour_runner_spec.rb +0 -118
  443. data/spec/spec/runner/context_matching_spec.rb +0 -27
  444. data/spec/spec/runner/execution_context_spec.rb +0 -31
  445. data/spec/spec/runner/extensions/kernel_spec.rb +0 -36
  446. data/spec/spec/runner/formatter/failing_behaviours_formatter_spec.rb +0 -27
  447. data/spec/spec/runner/formatter/progress_bar_formatter_dry_run_spec.rb +0 -21
  448. data/spec/spec/runner/formatter/progress_bar_formatter_failure_dump_spec.rb +0 -36
  449. data/spec/spec/runner/formatter/rdoc_formatter_dry_run_spec.rb +0 -19
  450. data/spec/spec/runner/formatter/rdoc_formatter_spec.rb +0 -46
  451. data/spec/spec/runner/formatter/specdoc_formatter_dry_run_spec.rb +0 -21
  452. data/spec/spec/runner/object_ext_spec.rb +0 -11
  453. data/spec/spec/runner/spec_matcher_spec.rb +0 -102
  454. data/spec/spec/runner/spec_parser_spec.rb +0 -93
  455. data/spec/spec/translator_spec.rb +0 -216
  456. /data/examples/{custom_expectation_matchers.rb → passing/custom_matchers.rb} +0 -0
data/CHANGES DELETED
@@ -1,748 +0,0 @@
1
- = RSpec Changelog
2
-
3
- == Version 1.0.0
4
- The stake in the ground release. This represents a commitment to the API as it is. No significant
5
- backwards compatibility changes in the API are expected after this release.
6
-
7
- * Fixed [#10923] have_text matcher does not support should_not
8
- * Fixed [#10673] should > and should >= broken
9
- * Applied [#10921] Allow verify_rcov to accept greater than threshold coverage %'s via configuration
10
- * Applied [#10920] Added support for not implemented examples (Patch from Chad Humphries)
11
- * Patch to allow not implemented examples. This works by not providing a block to the example. (Patch from Chad Humphries, Ken Barker)
12
- * Yanked support for Rails 1.1.6 in Spec::Rails
13
- * RSpec.tmbundle uses CMD-SHIFT-R to run focused examples now.
14
- * Spec::Rails now bundles a spec:rcov task by default (suggestion from Kurt Schrader)
15
- * Fixed [#10814] Runner loads shared code, test cases require them again
16
- * Fixed [#10753] Global before and after
17
- * Fixed [#10774] Allow before and after to be specified in config II
18
- * Refactored Spec::Ui examples to use new global before and after blocks.
19
- * Added instructions about how to get Selenium working with Spec::Ui (spec_ui/examples/selenium/README.txt)
20
- * Fixed [#10805] selenium.rb missing from gem?
21
- * Added rdocs explaining how to deal with errors in Rails' controller actions
22
- * Applied [#10770] Finer grained includes.
23
- * Fixed [#10747] Helper methods defined in shared specs are not visible when shared spec is used
24
- * Fixed [#10748] Shared descriptions in separate files causes 'already exists' error
25
- * Applied [#10698] Running with --drb executes specs twice (patch from Ruy Asan)
26
-
27
- == Version 0.9.4
28
- This release introduces massive improvements to Spec::Ui - the user interface functional testing
29
- extension to RSpec. There are also some minor bug fixes to the RSpec core.
30
-
31
- * Massive improvements to Spec::Ui. Complete support for all Watir's ie.xxx(how, what) methods. Inline screenshots and HTML.
32
- * Reactivated --timeout, which had mysteriously been deactivated in a recent release.
33
- * Fixed [#10669] Kernel#describe override does not cover Kernel#context
34
- * Applied [#10636] Added spec for OptionParser in Runner (Patch from Scott Taylor)
35
- * Added [#10516] should_include should be able to accept multiple items
36
- * Applied [#10631] redirect_to matcher doesn't respect request.host (Patch from Tim Lucas)
37
- * Each formatter now flushes their own IO. This is to avoid buffering of output.
38
- * Fixed [#10670] IVarProxy#delete raises exception when instance variable does not exist
39
-
40
- == Version 0.9.3
41
- This is a bugfix release.
42
-
43
- * Fixed [#10594] Failing Custom Matcher show NAME NOT GENERATED description
44
- * describe(SomeType, "#message") will not add a space: "SomeType#message" (likewise for '.')
45
- * describe(SomeType, "message") will have a decription with a space: "SomeType message"
46
- * Applied [#10566] prepend_before and prepend_after callbacks
47
- * Applied [#10567] Call setup and teardown using before and after callbacks
48
-
49
- == Version 0.9.2
50
- This is a quick maintenance release.
51
-
52
- * Added some website love
53
- * Fixed [#10542] reverse predicate matcher syntax
54
- * Added a spec:translate Rake task to make 0.9 translation easier with Spec:Rails
55
- * Better translation of should_redirect_to
56
- * Fixed --colour support for Windows. This is a regression that was introduced in 0.9.1
57
- * Applied [#10460] Make SpecRunner easier to instantiate without using commandline args
58
-
59
- == Version 0.9.1
60
-
61
- This release introduces #describe and #it (aliased as #context and #specify for
62
- backwards compatibility). This allows you to express specs like this:
63
-
64
- describe SomeClass do # Creates a Behaviour
65
- it "should do something" do # Creates an Example
66
- end
67
- end
68
-
69
- The command line features four new options that give you more control over what specs
70
- are being run and in what order. This can be used to verify that your specs are
71
- independent (by running in opposite order with --reverse). It can also be used to cut
72
- down feedback time by running the most recently modified specs first (--loadby mtime --reverse).
73
-
74
- Further, --example replaces the old --spec option, and it can now take a file name of
75
- spec names as an alternative to just a spec name. The --format failing_examples:file.txt
76
- option allows you to output an --example compatible file, which makes it possible to only
77
- rerun the specs that failed in the last run. Spec::Rails uses all of these four options
78
- by default to optimise your RSpec experience.
79
-
80
- There is now a simple configuration model. For Spec::Rails, you do something like this:
81
-
82
- Spec::Runner.configure do |config|
83
- config.use_transactional_fixtures = true
84
- config.use_instantiated_fixtures = false
85
- config.fixture_path = RAILS_ROOT + '/spec/fixtures'
86
- end
87
-
88
- You can now use mocha or flexmock with RSpec if you prefer either to
89
- RSpec's own mock framework. Just put this:
90
-
91
- Spec::Runner.configure do |config|
92
- config.mock_with :mocha
93
- end
94
-
95
- or this:
96
-
97
- Spec::Runner.configure do |config|
98
- config.mock_with :flexmock
99
- end
100
-
101
- in a file that is loaded before your specs. You can also
102
- configure included modules and predicate_matchers:
103
-
104
- Spec::Runner.configure do |config|
105
- config.include SomeModule
106
- config.predicate_matchers[:does_something?] = :do_something
107
- end
108
-
109
- See Spec::DSL::Behaviour for more on predicate_matchers
110
-
111
- * Sugar FREE!
112
- * Added [10434 ] Please Make -s synonymous with -e for autotest compat. This is temporary until autotest uses -e instead of -s.
113
- * Fixed [#10133] custom predicate matchers
114
- * Applied [#10473] Add should exist (new matcher) - Patch from Bret Pettichord
115
- * Added another formatter: failing_behaviours. Writes the names of the failing behaviours for use with --example.
116
- * Applied [#10315] Patch to fix pre_commit bug 10313 - pre_commit_rails: doesn't always build correctly (Patch from Antii Tarvainen)
117
- * Applied [#10245] Patch to HTML escape the behavior name when using HTML Formatter (Patch from Josh Knowles)
118
- * Applied [#10410] redirect_to does not behave consistently with regards to query string parameter ordering (Patch from Nicholas Evans)
119
- * Applied [#9605] Patch for ER 9472, shared behaviour (Patch by Bob Cotton)
120
- * The '--format rdoc' option no longer causes a dry-run by default. --dry-run must be used explicitly.
121
- * It's possible to specify the output file in the --format option (See explanation in --help)
122
- * Several --format options may be specified to output several formats in one run.
123
- * The --out option is gone. Use --format html:path/to/my.html instead (or similar).
124
- * Spec::Runner::Formatter::BaseTextFormatter#initialize only takes one argument - an IO. dry_run and color are setters.
125
- * Made Spec::Ui *much* easier to install. It will be released separately. Check out trunk/spec_ui/examples
126
- * HTML reports now include a syntax highlighted snippet of the source code where the spec failed (needs the syntax gem)
127
- * Added [#10262] Better Helper testing of Erb evaluation block helpers
128
- * Added [#9735] support flexmock (thanks to Jim Weirich for his modifications to flexmock to support this)
129
- * Spec::Rails controller specs will no longer let mock exception ripple through to the response.
130
- * Fixed [#9260] IvarProxy does not act like a hash.
131
- * Applied [#9458] The rspec_resource generator does not take into account class nesting (Patch from Steve Tendon)
132
- * Applied [#9132] Rakefile spec:doc can fail without preparing database (Patch from Steve Ross)
133
- * Applied [#9678] Custom runner command line switch, and multi-threaded runner (Patch from Bob Cotton)
134
- * Applied [#9926] Rakefile - RSPEC_DEPS constant as an Array of Hashes instead of an Array of Arrays (Patch from Scott Taylor)
135
- * Applied [#9925] Changed ".rhtml" to "template" in REST spec generator (Patch from Scott Taylor)
136
- * Applied [#9852] Patch for RSpec's Website using Webgen 0.4.2 (Patch from Scott Taylor)
137
- * Fixed [#6523] Run rspec on rails without a db
138
- * Fixed [#9295] rake spec should run anything in the spec directory (not just rspec's standard dirs)
139
- * Added [#9786] infer controller and helper names from the described type
140
- * Fixed [#7795] form_tag renders action='/view_spec' in view specs
141
- * Fixed [#9767] rspec_on_rails should not define rescue_action on controllers
142
- * Fixed [#9421] --line doesn't work with behaviours that use class names
143
- * Fixed [#9760] rspec generators incompatible with changes to edge rails
144
- * Added [#9786] infer controller and helper names from the described type
145
- * Applied a simplified version of [#9282] Change to allow running specs from textmate with rspec installed as a rails plugin (and no rspec gem installed)
146
- * Applied [#9700] Make Spec::DSL::Example#name public / Add a --timeout switch. A great way to prevent specs from getting slow.
147
- * In Rails, script/generate rspec will generate a spec.opts file that optimises faster/more efficient running of specs.
148
- * Added [#9522] support using rspec's expectations with test/unit
149
- * Moved rspec_on_rails up to the project root, simplifying the download url
150
- * Fixed [#8103] RSpec not installing spec script correctly.
151
- * The --spec option is replaced by the --example option.
152
- * The --loadby option no longer supports a file argument. Use --example file_name instead.
153
- * The --example option can now take a file name as an argument. The file should contain example names.
154
- * Internal classes are named Behaviour/Example (rather than Context/Specification).
155
- * You can now use mocha by saying config.mock_with :mocha in a spec_helper
156
- * before_context_eval is replaced by before_eval.
157
- * Applied [#9509] allow spaced options in spec.opts
158
- * Applied [#9510] Added File for Ruby 1.8.6
159
- * Applied [#9511] Clarification to README file in spec/
160
- * Moved all of the Spec::Rails specs down to the plugins directory - now you can run the specs after you install.
161
- * Updated RSpec.tmbundle to the 0.9 syntax and replaced context/specify with describe/it.
162
- * Applied [#9232] ActionController::Base#render is sometimes protected (patch from Dan Manges)
163
- * Added --reverse option, allowing contexts/specs to be run in reverse order.
164
- * Added --loadby option, allowing better control over load order for spec files. mtime and file.txt supported.
165
- * Implemented [#8696] --order option (see --reverse and --loadby)
166
- * Added describe/it as aliases for context/specify - suggestion from Dan North.
167
- * Applied [#7637] [PATCH] add skip-migration option to rspec_resource generator
168
- * Added [#9167] string.should have_tag
169
- * Changed script/rails_spec_server to script/spec_server and added script/spec (w/ path to vendor/plugins/rspec)
170
- * Fixed [#8897] Error when mixing controller spec with/without integrated views and using template system other than rhtml
171
- * Updated sample app specs to 0.9 syntax
172
- * Updated generated specs to 0.9 syntax
173
- * Applied [#8994] trunk: generated names for be_ specs (Multiple patches from Yurii Rashkovskii)
174
- * Applied [#9983]: Allow before and after to be called in BehaviourEval. This is useful for shared examples.
175
-
176
- == Version 0.8.2
177
-
178
- Replaced assert_select fork with an assert_select wrapper for have_tag. This means that "should have_rjs" no longer supports :hide or :effect, but you can still use should_have_rjs for those.
179
-
180
- == Version 0.8.1
181
-
182
- Quick "in house" bug-fix
183
-
184
- == Version 0.8.0
185
-
186
- This release introduces a new approach to handling expectations using Expression Matchers.
187
-
188
- See Upgrade[http://rspec.rubyforge.org/upgrade.html], Spec::Expectations, Spec::Matchers and RELEASE-PLAN for more info.
189
-
190
- This release also improves the spec command line by adding DRb support and making it possible to
191
- store command line options in a file. This means a more flexible RSpec experience with Rails,
192
- Rake and editor plugins like TextMate.
193
-
194
- It also sports myriad new features, bug fixes, patches and general goodness:
195
-
196
- * Fixed [#8928] rspec_on_rails 0.8.0-RC1 controller tests make double call to setup_with_fixtures
197
- * Fixed [#8925] Documentation bug in 0.8.0RC1 rspec website
198
- * Applied [#8132] [PATCH] RSpec breaks "rake db:sessions:create" in a rails project that has the rspec_on_rails plugin (Patch from Erik Kastner)
199
- * Fixed [#8789] --line and --spec not working when the context has parenhesis in the name
200
- * Added [#8783] auto generate spec names from last expectation
201
- * --heckle now fails if the heckled class or module is not found.
202
- * Fixed [#8771] Spec::Mocks::BaseExpectation#with converts hash params to array of arrays with #collect
203
- * Fixed [#8750] should[_not]_include backwards compatibility between 0.8.0-RC1 and 0.7.5.1 broken
204
- * Fixed [#8646] Context Runner does not report on Non standard exceptions and return a 0 return code
205
- * RSpec on Rails' spec_helper.rb will only force RAILS_ENV to test if it was not specified on the command line.
206
- * Fixed [#5485] proc#should_raise and proc#should_not_raise output
207
- * Added [#8484] should_receive with blocks
208
- * Applied [#8218] heckle_runner.rb doesn't work with heckle >= 1.2.0 (Patch from Michal Kwiatkowski)
209
- * Fixed [#8240] Cryptic error message when no controller_name
210
- * Applied [#7461] [PATCH] Contexts don't call Module::included when they include a module
211
- * Removed unintended block of test/unit assertions in rspec_on_rails - they should all, in theory, now be accessible
212
- * Added mock_model method to RSpec on Rails, which stubs common methods. Based on http://metaclass.org/2006/12/22/making-a-mockery-of-activerecord
213
- * Fixed [#8165] Partial Mock Errors when respond_to? is true but the method is not in the object
214
- * Fixed [#7611] Partial Mocks override Subclass methods
215
- * Fixed [#8302] Strange side effect when mocking a class method
216
- * Applied [#8316] to_param should return a stringified key in resource generator's controller spec (Patch from Chris Anderson)
217
- * Applied [#8216] shortcut for creating object stub
218
- * Applied [#8008] Correct generated specs for view when calling resource generator (Patch from Jonathan Tron)
219
- * Fixed [#7754] Command-R fails to run spec in TextMate (added instruction from Luke Redpath to the website)
220
- * Fixed [#7826] RSpect.tmbundle web page out of date.
221
- * RSpec on Rails specs are now running against RoR 1.2.1 and 1.2.2
222
- * rspec_resource now generates specs for views
223
- * In a Rails app, RSpec core is only loaded when RAILS_ENV==test (init.rb)
224
- * Added support for target.should arbitrary_expectation_handler and target.should_not arbitrary_expectation_handler
225
- * Fixed [#7533] Spec suite fails and the process exits with a code 0
226
- * Fixed [#7565] Subsequent stub! calls for method fail to override the first call to method
227
- * Applied [#7524] Incorrect Documentation for 'pattern' in Rake task (patch from Stephen Duncan)
228
- * Fixed [#7409] default fixtures do not appear to run.
229
- * Fixed [#7507] "render..and return" doesn't return
230
- * Fixed [#7509] rcov/rspec incorrectly includes boot.rb (Patch from Courtenay)
231
- * Fixed [#7506] unnecessary complex output on failure of response.should be_redirect
232
- * Applied [#6098] Make scaffold_resource generator. Based on code from Pat Maddox.
233
- * The drbspec command is gone. Use spec --drb instead.
234
- * The drb option is gone from the Rake task. Pass --drb to spec_opts instead.
235
- * New -X/--drb option for running specs against a server like spec/rails' script/rails_spec_server
236
- * New -O/--options and -G/--generate flags for file-based options (handy for spec/rails)
237
- * Applied [#7339] Turn off caching in HTML reports
238
- * Applied [#7419] "c option for colorizing output does not work with rails_spec" (Patch from Shintaro Kakutani)
239
- * Applied [#7406] [PATCH] 0.7.5 rspec_on_rails loads fixtures into development database (Patch from Wilson Bilkovich)
240
- * Applied [#7387] Allow stubs to return consecutive values (Patch from Pat Maddox)
241
- * Applied [#7393] Fix for rake task (Patch from Pat Maddox)
242
- * Reinstated support for response.should_render (in addition to controller.should_render)
243
-
244
- == Version 0.7.5.1
245
-
246
- Bug fix release to allow downloads of rspec gem using rubygems 0.9.1.
247
-
248
- == Version 0.7.5
249
- This release adds support for Heckle - Seattle'rb's code mutation tool.
250
- There are also several bug fixes to the RSpec core and the RSpec on Rails plugin.
251
-
252
- * Removed svn:externals on rails versions and plugins
253
- * Applied [#7345] Adding context_setup and context_teardown, with specs and 100% rcov
254
- * Applied [#7320] [PATCH] Allow XHR requests in controller specs to render RJS templates
255
- * Applied [#7319] Migration code uses drop_column when it should use remove_column (patch from Pat Maddox)
256
- * Added support for Heckle
257
- * Applied [#7282] dump results even if spec is interrupted (patch from Kouhei Sutou)
258
- * Applied [#7277] model.should_have(n).errors_on(:attribute) (patch from Wilson Bilkovich)
259
- * Applied [#7270] RSpec render_partial colliding with simply_helpful (patch from David Goodlad)
260
- * Added [#7250] stubs should support throwing
261
- * Added [#7249] stubs should support yielding
262
- * Fixed [#6760] fatal error when accessing nested finders in rspec
263
- * Fixed [#7179] script/generate rspec_resource generates incorrect helper name
264
- * Added preliminary support for assert_select (response.should_have)
265
- * Fixed [#6971] and_yield does not work when the arity is -1
266
- * Fixed [#6898] Can we separate rspec from the plugins?
267
- * Added [#7025] should_change should accept a block
268
- * Applied [#6989] partials with locals (patch from Micah Martin)
269
- * Applied [#7023] Typo in team.page
270
-
271
- == Version 0.7.4
272
-
273
- This release features a complete redesign of the reports generated with --format html.
274
- As usual there are many bug fixes - mostly related to spec/rails.
275
-
276
- * Applied [#7010] Fixes :spacer_template does not work w/ view spec (patch from Shintaro Kakutani)
277
- * Applied [#6798] ensure two ':' in the first backtrace line for Emacs's 'next-error' command (patch from Kouhei Sutou)
278
- * Added Much nicer reports to generated website
279
- * Much nicer reports with --format --html (patch from Luke Redpath)
280
- * Applied [#6959] Calls to render and redirect in controllers should return true
281
- * Fixed [#6981] helper method is not available in partial template.
282
- * Added [#6978] mock should tell you the expected and actual args when receiving the right message with the wrong args
283
- * Added the possibility to tweak the output of the HtmlFormatter (by overriding extra_failure_content).
284
- * Fixed [#6936] View specs don't include ApplicationHelper by default
285
- * Fixed [#6903] Rendering a partial in a view makes the view spec blow up
286
- * Added callback library from Brian Takita
287
- * Added [#6925] support controller.should_render :action_name
288
- * Fixed [#6884] intermittent errors related to method binding
289
- * Fixed [#6870] rspec on edge rails spec:controller fixture loading fails
290
- * Using obj.inspect for all messages
291
- * Improved performance by getting rid of instance_exec (instance_eval is good enough because we never need to pass it args)
292
-
293
- == Version 0.7.3
294
-
295
- Almost normal bug fix/new feature release.
296
-
297
- A couple of things you need to change in your rails specs:
298
- # spec_helper.rb is a little different (see http://rspec.rubyforge.org/upgrade.html)
299
- # use controller.should_render before OR after the action (controller.should_have_rendered is deprecated)
300
-
301
- * Applied [#6577] messy mock backtrace when frozen to edge rails (patch from Jay Levitt)
302
- * Fixed [#6674] rspec_on_rails fails on @session deprecation warning
303
- * Fixed [#6780] routing() was failing...fix included - works for 1.1.6 and edge (1.2)
304
- * Fixed [#6835] bad message with arbitrary predicate
305
- * Added [#6731] Partial templates rendered
306
- * Fixed [#6713] helper methods not rendered in view tests?
307
- * Fixed [#6707] cannot run controller / helper tests via rails_spec or spec only works with rake
308
- * Applied [#6417] lambda {...}.should_change(receiver, :message) (patch from Wilson Bilkovich)
309
- * Eliminated dependency on ZenTest
310
- * Fixed [#6650] Reserved characters in the TextMate bundle break svn on Win32
311
- * Fixed [#6643] script/generate rspec_controller: invalid symbol generation for 'controller_name' for *modularized* controllers
312
- * The script/rails_spec command has been moved to bin/drbspec in RSpec core (installed by the gem)
313
-
314
- == Version 0.7.2
315
-
316
- This release introduces a brand new RSpec bundle for TextMate, plus some small bugfixes.
317
-
318
- * Packaged RSpec.tmbundle.tgz as part of the distro
319
- * Fixed [#6593] Add moving progress bar to HtmlFormatter using Javascript
320
- * Applied [#6265] should_raise should accept an Exception object
321
- * Fixed [#6616] Can't run Rails specs with RSpec.tmbundle
322
- * Fixed [#6411] Can't run Rails specs with ruby
323
- * Added [#6589] New -l --line option. This is useful for IDE/editor runners/extensions.
324
- * Fixed [#6615] controller.should_render_rjs should support :partial => 'path/to/template'
325
-
326
- == Version 0.7.1
327
-
328
- Bug fixes and a couple o' new features.
329
-
330
- * Fixed [#6575] Parse error in aliasing the partial mock original method (patch by Brian Takita)
331
- * Fixed [#6277] debris left by stubbing (trunk) [submitted by dastels] (fixed by fix to [#6575])
332
- * Fixed [#6575] Parse error in aliasing the partial mock original method
333
- * Fixed [#6555] should_have_tag does not match documentation
334
- * Fixed [#6567] SyntaxError should not stop entire run
335
- * Fixed [#6558] integrated views look for template even when redirected
336
- * Fixed [#6547] response.should be_redirect broken in 0.7.0
337
- * Applied [#6471] Easy way to spec routes
338
- * Applied [#6587] Rspec on Rails displays "Spec::Rails::ContextFactory" as context name
339
- * Applied [#6514] Document has trivial typos.
340
- * Added [#6560] controller.session should be available before the action
341
- * Added support for should_have_rjs :visual_effect
342
- * Different printing and colours for unmet expectations (red) and other exceptions (magenta)
343
- * Simplified method_missing on mock_methods to make it less invasive on partial mocks.
344
-
345
- == Version 0.7.0
346
-
347
- This is the "Grow up and eat your own dog food release". RSpec is now used on itself and
348
- we're no longer using Test::Unit to test it. Although, we are still extending Test::Unit
349
- for the rails plugin (indirectly - through ZenTest)
350
-
351
- IMPORTANT NOTE: THIS RELEASE IS NOT 100% BACKWARDS COMPATIBLE TO 0.6.x
352
-
353
- There are a few changes that will require that you change your existing specs.
354
-
355
- RSpec now handles equality exactly like ruby does:
356
-
357
- # actual.should_equal(expected) will pass if actual.equal?(expected) returns true
358
- # actual.should eql(expected) will pass if actual.eql?(expected) returns true
359
- # actual.should == expected will pass if actual == expected) returns true
360
-
361
- At the high level, eql? implies equivalence, while equal? implies object identity. For more
362
- information on how ruby deals w/ equality, you should do this:
363
-
364
- ri equal?
365
-
366
- or look at this:
367
-
368
- http://www.ruby-doc.org/core/classes/Object.html#M001057
369
-
370
- Also, we left in should_be as a synonym for should_equal, so the only specs that should break are the
371
- ones using should_equal (which used to use <code>==</code> instead of <code>.equal?</code>).
372
-
373
- Lastly, should_be used to handle true and false differently from any other values. We've removed
374
- this special handling, so now actual.should_be true will fail for any value other than true (it
375
- used to pass for any non-nil, non-false value), and actual.should_be false will fail for any
376
- value other than false (it used to pass for nil or false).
377
-
378
- Here's what you'll need to do to update your specs:
379
- # search for "should_equal" and replace with "should_eql"
380
- # run specs
381
-
382
- If any specs still fail, they are probably related to should be_true or should_be_false using
383
- non-boolean values. Those you'll just have to inspect manually and adjust appropriately (sorry!).
384
-
385
- --------------------------------------------------
386
- Specifying multiple return values in mocks now works like this:
387
-
388
- mock.should_receive(:message).and_return(1,2,3)
389
-
390
- It used to work like this:
391
-
392
- mock.should_receive(:message).and_return([1,2,3])
393
-
394
- but we decided that was counter intuitive and otherwise lame.
395
-
396
- Here's what you'll need to do to update your specs:
397
- # search for "and_return(["
398
- # get rid of the "[" and "]"
399
-
400
- --------------------------------------------------
401
- RSpec on Rails now supports the following (thanks to ZenTest upon which it is built):
402
-
403
- # Separate specs for models, views, controllers and helpers
404
- # Controller specs are completely decoupled from the views by default (though you can tell them to couple themselves if you prefer)
405
- # View specs are completely decoupled from app-specific controllers
406
-
407
- See http://rspec.rubyforge.org/documentation/rails/index.html for more information
408
- --------------------------------------------------
409
- As usual, there are also other new features and bug fixes:
410
-
411
- * Added lots of documentation on mocks/stubs and the rails plugin.
412
- * Added support for assigns[key] syntax for controller specs (to align w/ pre-existing syntax for view specs)
413
- * Added support for controller.should_redirect_to
414
- * RSpec on Rails automatically checks whether it's compatible with the installed RSpec
415
- * Applied [#6393] rspec_on_rails uses deprecated '@response' instead of the accessor
416
- * RSpec now has 100% spec coverage(!)
417
- * Added support for stubbing and partial mocking
418
- * Progress (....F..F.) is now coloured. Tweaked patch from KAKUTANI Shintaro.
419
- * Backtrace now excludes the rcov runner (/usr/local/bin/rcov)
420
- * Fixed [#5539] predicates do not work w/ rails
421
- * Added [#6091] support for Regexp matching messages sent to should_raise
422
- * Added [#6333] support for Regexp matching in mock arguments
423
- * Applied [#6283] refactoring of diff support to allow selectable formats and custom differs
424
- * Fixed [#5564] "ruby spec_file.rb" doesn't work the same way as "spec spec_file.rb"
425
- * Fixed [#6056] Multiple output of failing-spec notice
426
- * Fixed [#6233] Colours in specdoc
427
- * Applied [#6207] Allows --diff option to diff target and expected's #inspect output (Patch by Lachie Cox)
428
- * Fixed [#6203] Failure messages are misleading - consider using inspect.
429
- * Added [#6334] subject.should_have_xyz will try to call subject.has_xyz? - use this for hash.should_have_key(key)
430
- * Fixed [#6017] Rake task should ignore empty or non-existent spec-dirs
431
-
432
- == Version 0.6.4
433
-
434
- In addition to a number of bug fixes and patches, this release begins to formalize the support for
435
- RSpec on Rails.
436
-
437
- * Added Christopher Petrilli's TextMate bundle to vendor/textmate/RSpec.tmbundle
438
- * Fixed [#5909], once again supporting multi_word_predicates
439
- * Applied [#5873] - response.should_have_rjs (initial patch from Jake Howerton, based on ARTS by Kevin Clark)
440
- * Added generation of view specs for rspec_on_rails
441
- * Applied [#5815] active_record_subclass.should_have(3).records
442
- * Added support in "rake stats" for view specs (in spec/views)
443
- * Applied [#5801] QuickRef.pdf should say RSpec, not rSpec
444
- * Applied [#5728] rails_spec_runner fails on Windows (Patch from Lindsay Evans).
445
- * Applied [#5708] RSpec Rails plugin rspec_controller generator makes specs that do not parse.
446
- * Cleaned up RSpec on Rails so it doesn't pollute as much during bootstrapping.
447
- * Added support for response.should_have_tag and response.should_not_have_tag (works just like assert_tag in rails)
448
- * Added new -c, --colour, --color option for colourful (red/green) output. Inspired from Pat Eyler's Redgreen gem.
449
- * Added examples for Watir and Selenium under the gem's vendor directory.
450
- * Renamed rails_spec_runner to rails_spec_server (as referred to in the docs)
451
- * Added support for trying a plural for arbitrary predicates. E.g. Album.should_exist(:name => "Hey Jude") will call Album.exists?(:name => "Hey Jude")
452
- * Added support for should_have to work with methods taking args returning a collection. E.g. @dave.should_have(3).albums_i_have_that_this_guy_doesnt(@aslak)
453
- * Added [#5570] should_not_receive(:msg).with(:specific, "args")
454
- * Applied [#5065] to support using define_method rather than method_missing to capture expected messages on mocks. Thanks to Eero Saynatkari for the tip that made it work.
455
- * Restructured directories and Modules in order to separate rspec into three distinct Modules: Spec::Expectations, Spec::Runner and Spec::Mocks. This will allow us to more easily integrate other mock frameworks and/or allow test/unit users to take advantage of the expectation API.
456
- * Applied [#5620] support any boolean method and arbitrary comparisons (5.should_be < 6) (Patch from Mike Williams)
457
-
458
- == Version 0.6.3
459
-
460
- This release fixes some minor bugs related to RSpec on Rails
461
- Note that if you upgrade a rails app with this version of the rspec_on_rails plugin
462
- you should remove your lib/tasks/rspec.rake if it exists.
463
-
464
- * Backtraces from drb (and other standard ruby libraries) are now stripped from backtraces.
465
- * Applied [#5557] Put rspec.rake into the task directory of the RSpec on Rails plugin (Patch from Daniel Siemssen)
466
- * Applied [#5556] rails_spec_server loads environment.rb twice (Patch from Daniel Siemssen)
467
-
468
- == Version 0.6.2
469
- This release fixes a couple of regressions with the rake task that were introduced in the previous version (0.6.1)
470
-
471
- * Fixed [#5518] ruby -w: warnings in 0.6.1
472
- * Applied [#5525] fix rake task path to spec tool for gem-installed rspec (patch from Riley Lynch)
473
- * Fixed a teensey regression with the rake task - introduced in 0.6.1. The spec command is now quoted so it works on windows.
474
-
475
- == Version 0.6.1
476
- This is the "fix the most annoying bugs release" of RSpec. There are 9 bugfixes this time.
477
- Things that may break backwards compatibility:
478
- 1) Spec::Rake::SpecTask no longer has the options attribute. Use ruby_opts, spec_opts and rcov_opts instead.
479
-
480
- * Fixed [#4891] RCOV task failing on windows
481
- * Fixed [#4896] Shouldn't modify user's $LOAD_PATH (Tip from Gavin Sinclair)
482
- * Fixed [#5369] ruby -w: warnings in RSpec 0.5.16 (Tip from Suraj Kurapati)
483
- * Applied [#5141] ExampleMatcher doesn't escape strings before matching (Patch from Nikolai Weibull).
484
- * Fixed [#5224] Move 'require diff-lcs' from test_helper.rb to diff_test.rb (Tip from Chris Roos)
485
- * Applied [#5449] Rake stats for specs (Patch from Nick Sieger)
486
- * Applied [#5468, #5058] Fix spec runner to correctly run controller specs (Patch from Daniel Siemssen)
487
- * Applied fixes to rails_spec_server to improve its ability to run several times. (Patch from Daniel Siemssen)
488
- * Changed RCov::VerifyTask to fail if the coverage is above the threshold. This is to ensure it gets bumped when coverage improves.
489
-
490
- == Version 0.6.0
491
- This release makes an official commitment to underscore_syntax (with no more support for dot.syntax)
492
-
493
- * Fixed bug (5292) that caused mock argument matching to fail
494
- * Converted ALL tests to use underscore syntax
495
- * Fixed all remaining problems with underscores revealed by converting all the tests to underscores
496
- * Enhanced sugar to support combinations of methods (i.e. once.and_return)
497
- * Simplified helper structure taking advantage of dot/underscore combos (i.e. should.be.an_instance_of, which can be expressed as should be_an_instance_of)
498
- * Added support for at_most in mocks
499
- * Added support for should_not_receive(:msg) (will be removing should_receive(:msg).never some time soon)
500
- * Added support for should_have_exactly(5).items_in_collection
501
-
502
- == Version 0.5.16
503
- This release improves Rails support and test2spec translation.
504
-
505
- * Fixed underscore problems that occurred when RSpec was used in Rails
506
- * Simplified the Rails support by packaging it as a plugin instead of a generator gem.
507
- * Fixed [#5063] 'rspec_on_rails' require line in spec_helper.rb
508
- * Added pre_commit rake task to reduce risk of regressions. Useful for RSpec developers and patchers.
509
- * Added failure_message to RSpec Rake task
510
- * test2spec now defines converted helper methods outside of the setup block (bug #5057).
511
-
512
- == Version 0.5.15
513
- This release removes a prematurely added feature that shouldn't have been added.
514
-
515
- * Removed support for differences that was added in 0.5.14. The functionality is not aligned with RSpec's vision.
516
-
517
- == Version 0.5.14
518
- This release introduces better ways to extend specs, improves some of the core API and
519
- a experimental support for faster rails specs.
520
-
521
- * Added proc methods for specifying differences (increments and decrements). See difference_test.rb
522
- * Methods can now be defined alongside specs. This obsoletes the need for defining methods in setup. (Patch #5002 from Brian Takita)
523
- * Sugar (underscores) now works correctly with should be_a_kind_of and should be_an_instance_of
524
- * Added support for include and inherit in contexts. (Patch #4971 from Brian Takita)
525
- * Added rails_spec and rails_spec_server for faster specs on rails (still buggy - help needed)
526
- * Fixed bug that caused should_render to break if given a :symbol (in Rails)
527
- * Added support for comparing exception message in should_raise and should_not_raise
528
-
529
- == Version 0.5.13
530
- This release fixes some subtle bugs in the mock API.
531
-
532
- * Use fully-qualified class name of Exceptions in failure message. Easier to debug that way.
533
- * Fixed a bug that caused mocks to yield a one-element array (rather than the element) when one yield arg specified.
534
- * Mocks not raise AmbiguousReturnError if an explicit return is used at the same time as an expectation block.
535
- * Blocks passed to yielding mocks can now raise without causing mock verification to fail.
536
-
537
- == Version 0.5.12
538
- This release adds diff support for failure messages, a HTML formatter plus some other
539
- minor enhancements.
540
-
541
- * Added HTML formatter.
542
- * Added fail_on_error option to spectask.
543
- * Added support for diffing, using the diff-lcs Rubygem (#2648).
544
- * Remove RSpec on Rails files from backtrace (#4694).
545
- * All of RSpec's own tests run successfully after translation with test2spec.
546
- * Added --verbose mode for test2spec - useful for debugging when classes fail to translate.
547
- * Output of various formatters is now flushed - to get more continuous output.
548
-
549
- == Version 0.5.11
550
- This release makes test2spec usable with Rails (with some manual steps).
551
- See http://rspec.rubyforge.org/tools/rails.html for more details
552
-
553
- * test2spec now correctly translates bodies of helper methods (non- test_*, setup and teardown ones).
554
- * Added more documentation about how to get test2spec to work with Rails.
555
-
556
- == Version 0.5.10
557
- This version features a second rewrite of test2spec - hopefully better than the previous one.
558
-
559
- * Improved test2spec's internals. It now transforms the syntax tree before writing out the code.
560
-
561
- == Version 0.5.9
562
- This release improves test2spec by allowing more control over the output
563
-
564
- * Added --template option to test2spec, which allows for custom output driven by ERB
565
- * Added --quiet option to test2spec
566
- * Removed unnecessary dependency on RubyToC
567
-
568
- == Version 0.5.8
569
- This release features a new Test::Unit to RSpec translation tool.
570
- Also note that the RubyGem of the previous release (0.5.7) was corrupt.
571
- We're close to being able to translate all of RSpec's own Test::Unit
572
- tests and have them run successfully!
573
-
574
- * Updated test2spec documentation.
575
- * Replaced old test2rspec with a new test2spec, which is based on ParseTree and RubyInline.
576
-
577
- == Version 0.5.7
578
- This release changes examples and documentation to recommend underscores rather than dots,
579
- and addresses some bugfixes and changes to the spec commandline.
580
-
581
- * spec DIR now works correctly, recursing down and slurping all *.rb files
582
- * All documentation and examples are now using '_' instead of '.'
583
- * Custom external formatters can now be specified via --require and --format.
584
-
585
- == Version 0.5.6
586
- This release fixes a bug in the Rails controller generator
587
-
588
- * The controller generator did not write correct source code (missing 'do'). Fixed.
589
-
590
- == Version 0.5.5
591
- This release adds initial support for Ruby on Rails in the rspec_generator gem.
592
-
593
- * [Rails] Reorganised Lachie's original code to be a generator packaged as a gem rather than a plugin.
594
- * [Rails] Imported code from http://lachie.info/svn/projects/rails_plugins/rspec_on_rails (Written by Lachie Cox)
595
- * Remove stack trace lines from TextMate's Ruby bundle
596
- * Better error message from spectask when no spec files are found.
597
-
598
- == Version 0.5.4
599
- The "the tutorial is ahead of the gem" release
600
-
601
- * Support for running a single spec with --spec
602
- * Exitcode is now 1 unless all specs pass, in which case it's 0.
603
- * -v, --version now both mean the same thing
604
- * For what was verbose output (-v), use --format specdoc or -f s
605
- * --format rdoc always runs in dry-run mode
606
- * Removed --doc and added --format and --dry-run
607
- * Refactored towards more pluggable formatters
608
- * Use webgen's execute tag when generating website (more accurate)
609
- * Fixed incorrect quoting of spec_opts in SpecTask
610
- * Added patch to enable underscored shoulds like 1.should_equal(1) - patch from Rich Kilmer
611
- * Removed most inherited instance method from Mock, making more methods mockable.
612
- * Made the RCovVerify task part of the standard toolset.
613
- * Documented Rake task and how to use it with Rcov
614
- * Implemented <ruby></ruby> tags for website (hooking into ERB, RedCloth and syntax)
615
- * RSpec Rake task now takes spec_opts and out params so it can be used for doc generation
616
- * RCov integration for RSpec Rake task (#4058)
617
- * Group all results instead of printing them several times (#4057)
618
- * Mocks can now yield
619
- * Various improvements to error reporting (including #4191)
620
- * backtrace excludes rspec code - use -b to include it
621
- * split examples into examples (passing) and failing_examples
622
-
623
- == Version 0.5.3
624
- The "hurry up, CoR is in two days" release.
625
-
626
- * Don't run rcov by default
627
- * Make separate task for running tests with RCov
628
- * Added Rake task to fail build if coverage drops below a certain threshold
629
- * Even more failure output cleanup (simplification)
630
- * Added duck_type constraint for mocks
631
-
632
- == Version 0.5.2
633
- This release has minor improvements to the commandline and fixes some gem warnings
634
-
635
- * Readded README to avoid RDoc warnings
636
- * Added --version switch to commandline
637
- * More changes to the mock API
638
-
639
- == Version 0.5.1
640
- This release is the first release of RSpec with a new website. It will look better soon.
641
-
642
- * Added initial documentation for API
643
- * Added website based on webgen
644
- * Modified test task to use rcov
645
- * Deleted unused code (thanks, rcov!)
646
- * Various changes to the mock API,
647
- * Various improvements to failure reporting
648
-
649
- == Version 0.5.0
650
- This release introduces a new API and obsolesces previous versions.
651
-
652
- * Moved source code to separate subfolders
653
- * Added new DSL runner based on instance_exec
654
- * Added spike for testdox/rdoc generation
655
- * merge Astels' and Chelimsky's work on ShouldHelper
656
- * this would be 0.5.0 if I updated the documentation
657
- * it breaks all of your existing specifications. We're not sorry.
658
-
659
- == Version 0.3.2
660
-
661
- The "srbaker is an idiot" release.
662
-
663
- * also forgot to update the path to the actual Subversion repository
664
- * this should be it
665
-
666
- == Version 0.3.1
667
-
668
- This is just 0.3.0, but with the TUTORIAL added to the documentation list.
669
-
670
- * forgot to include TUTORIAL in the documentation
671
-
672
- == Version 0.3.0
673
-
674
- It's been a while since last release, lots of new stuff is available. For instance:
675
-
676
- * improvements to the runners
677
- * addition of should_raise expectation (thanks to Brian Takita)
678
- * some documentation improvements
679
- * RSpec usable as a DSL
680
-
681
- == Version 0.2.0
682
-
683
- This release provides a tutorial for new users wishing to get started with
684
- RSpec, and many improvements.
685
-
686
- * improved reporting in the spec runner output
687
- * update the examples to the new mock api
688
- * added TUTORIAL, a getting started document for new users of RSpec
689
-
690
- == Version 0.1.7
691
-
692
- This release improves installation and documentation, mock integration and error reporting.
693
-
694
- * Comparison errors now print the class name too.
695
- * Mocks now take an optional +options+ parameter to specify behaviour.
696
- * Removed __expects in favour of should_receive
697
- * Added line number reporting in mock error messages for unreceived message expectations.
698
- * Added should_match and should_not_match.
699
- * Added a +mock+ method to Spec::Context which will create mocks that autoverify (no need to call __verify).
700
- * Mocks now require names in the constructor to ensure sensible error messages.
701
- * Made 'spec' executable and updated usage instructions in README accordingly.
702
- * Made more parts of the Spec::Context API private to avoid accidental usage.
703
- * Added more RDoc to Spec::Context.
704
-
705
- == Version 0.1.6
706
-
707
- More should methods.
708
-
709
- * Added should_match and should_not_match.
710
-
711
- == Version 0.1.5
712
-
713
- Included examples and tests in gem.
714
-
715
- == Version 0.1.4
716
-
717
- More tests on block based Mock expectations.
718
-
719
- == Version 0.1.3
720
-
721
- Improved mocking:
722
-
723
- * block based Mock expectations.
724
-
725
- == Version 0.1.2
726
-
727
- This release adds some improvements to the mock API and minor syntax improvements
728
-
729
- * Added Mock.should_expect for a more consistent DSL.
730
- * Added MockExpectation.and_returns for a better DSL.
731
- * Made Mock behave as a null object after a call to Mock.ignore_missing
732
- * Internal syntax improvements.
733
- * Improved exception trace by adding exception class name to error message.
734
- * Renamed some tests for better consistency.
735
-
736
- == Version 0.1.1
737
-
738
- This release adds some shoulds and improves error reporting
739
-
740
- * Added should be_same_as and should_not be_same_as.
741
- * Improved error reporting for comparison expectations.
742
-
743
- == Version 0.1.0
744
-
745
- This is the first preview release of RSpec, a Behaviour-Driven Development library for Ruby
746
-
747
- * Added Rake script with tasks for gems, rdoc etc.
748
- * Added an XForge task to make release go easier.