rspec 1.1.12 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (267) hide show
  1. data/.autotest +2 -1
  2. data/.document +7 -0
  3. data/History.txt +58 -0
  4. data/License.txt +1 -1
  5. data/Manifest.txt +45 -82
  6. data/README.txt +3 -6
  7. data/Rakefile +33 -13
  8. data/Ruby1.9.markdown +32 -0
  9. data/TODO.txt +10 -4
  10. data/Upgrade.markdown +63 -0
  11. data/bin/spec +1 -1
  12. data/cucumber.yml +3 -0
  13. data/examples/failing/{failing_autogenerated_docstrings_example.rb → failing_implicit_docstrings_example.rb} +0 -0
  14. data/examples/failing/pending_example.rb +9 -0
  15. data/examples/failing/spec_helper.rb +1 -1
  16. data/examples/passing/{custom_expectation_matchers.rb → custom_matchers.rb} +0 -0
  17. data/examples/passing/filtered_formatter.rb +18 -0
  18. data/examples/passing/filtered_formatter_example.rb +31 -0
  19. data/examples/passing/implicit_docstrings_example.rb +18 -0
  20. data/examples/passing/spec_helper.rb +1 -1
  21. data/examples/ruby1.9.compatibility/access_to_constants_spec.rb +17 -18
  22. data/features/before_and_after_blocks/before_and_after_blocks.feature +4 -4
  23. data/features/example_groups/example_group_with_should_methods.feature +1 -1
  24. data/features/example_groups/{autogenerated_docstrings.feature → implicit_docstrings.feature} +7 -9
  25. data/features/example_groups/nested_groups.feature +1 -1
  26. data/features/heckle/heckle.feature +56 -0
  27. data/features/interop/examples_and_tests_together.feature +1 -1
  28. data/features/interop/test_but_not_test_unit.feature +1 -1
  29. data/features/interop/test_case_with_should_methods.feature +1 -1
  30. data/features/matchers/create_matcher.feature +115 -0
  31. data/features/mock_framework_integration/use_flexmock.feature +22 -4
  32. data/features/mock_framework_integration/use_mocha.feature +27 -0
  33. data/features/mock_framework_integration/use_rr.feature +27 -0
  34. data/features/mocks/mix_stubs_and_mocks.feature +22 -0
  35. data/features/pending/pending_examples.feature +81 -0
  36. data/features/step_definitions/running_rspec.rb +5 -3
  37. data/features/support/env.rb +1 -1
  38. data/features/support/matchers/smart_match.rb +2 -2
  39. data/lib/autotest/rspec.rb +1 -1
  40. data/lib/spec.rb +1 -1
  41. data/lib/{adapters → spec/adapters}/mock_frameworks/flexmock.rb +0 -0
  42. data/lib/{adapters → spec/adapters}/mock_frameworks/mocha.rb +0 -0
  43. data/lib/{adapters → spec/adapters}/mock_frameworks/rr.rb +0 -0
  44. data/lib/{adapters → spec/adapters}/mock_frameworks/rspec.rb +0 -1
  45. data/lib/spec/autorun.rb +3 -0
  46. data/lib/spec/dsl.rb +3 -1
  47. data/lib/spec/dsl/matchers.rb +13 -0
  48. data/lib/spec/example.rb +4 -0
  49. data/lib/spec/example/before_and_after_hooks.rb +5 -20
  50. data/lib/spec/example/errors.rb +3 -3
  51. data/lib/spec/example/example_description.rb +15 -0
  52. data/lib/spec/example/example_group.rb +0 -15
  53. data/lib/spec/example/example_group_factory.rb +34 -46
  54. data/lib/spec/example/example_group_hierarchy.rb +53 -0
  55. data/lib/spec/example/example_group_methods.rb +101 -211
  56. data/lib/spec/example/example_methods.rb +61 -81
  57. data/lib/spec/example/module_reopening_fix.rb +23 -1
  58. data/lib/spec/example/pending.rb +3 -2
  59. data/lib/spec/example/predicate_matchers.rb +47 -0
  60. data/lib/spec/example/subject.rb +91 -0
  61. data/lib/spec/expectations.rb +1 -1
  62. data/lib/spec/expectations/differs/default.rb +0 -1
  63. data/lib/spec/expectations/extensions.rb +0 -1
  64. data/lib/spec/expectations/handler.rb +13 -6
  65. data/lib/spec/interop/test.rb +5 -0
  66. data/lib/spec/interop/test/unit/testcase.rb +5 -22
  67. data/lib/spec/matchers.rb +22 -8
  68. data/lib/spec/matchers/be.rb +4 -9
  69. data/lib/spec/matchers/be_close.rb +20 -5
  70. data/lib/spec/matchers/be_instance_of.rb +45 -0
  71. data/lib/spec/matchers/be_kind_of.rb +45 -0
  72. data/lib/spec/matchers/change.rb +8 -6
  73. data/lib/spec/matchers/compatibility.rb +14 -0
  74. data/lib/spec/matchers/eql.rb +24 -6
  75. data/lib/spec/matchers/equal.rb +24 -6
  76. data/lib/spec/matchers/exist.rb +21 -5
  77. data/lib/spec/matchers/extensions/instance_exec.rb +25 -0
  78. data/lib/spec/matchers/generated_descriptions.rb +2 -2
  79. data/lib/spec/matchers/has.rb +28 -11
  80. data/lib/spec/matchers/have.rb +2 -2
  81. data/lib/spec/matchers/include.rb +2 -2
  82. data/lib/spec/matchers/match.rb +25 -7
  83. data/lib/spec/matchers/match_array.rb +3 -3
  84. data/lib/spec/matchers/matcher.rb +51 -0
  85. data/lib/spec/matchers/method_missing.rb +2 -2
  86. data/lib/spec/matchers/operator_matcher.rb +12 -5
  87. data/lib/spec/matchers/raise_error.rb +3 -3
  88. data/lib/spec/matchers/respond_to.rb +3 -3
  89. data/lib/spec/matchers/satisfy.rb +7 -7
  90. data/lib/spec/matchers/throw_symbol.rb +3 -5
  91. data/lib/spec/mocks.rb +3 -3
  92. data/lib/spec/mocks/argument_expectation.rb +15 -15
  93. data/lib/spec/mocks/{argument_constraints.rb → argument_matchers.rb} +19 -23
  94. data/lib/spec/mocks/error_generator.rb +5 -8
  95. data/lib/spec/mocks/framework.rb +1 -1
  96. data/lib/spec/mocks/message_expectation.rb +5 -13
  97. data/lib/spec/mocks/mock.rb +4 -5
  98. data/lib/spec/mocks/proxy.rb +9 -5
  99. data/lib/spec/mocks/spec_methods.rb +10 -1
  100. data/lib/spec/rake/spectask.rb +0 -1
  101. data/lib/spec/runner.rb +6 -28
  102. data/lib/spec/runner/configuration.rb +3 -3
  103. data/lib/spec/runner/drb_command_line.rb +2 -1
  104. data/lib/spec/runner/example_group_runner.rb +3 -2
  105. data/lib/spec/runner/formatter/base_text_formatter.rb +34 -19
  106. data/lib/spec/runner/formatter/failing_example_groups_formatter.rb +3 -5
  107. data/lib/spec/runner/formatter/html_formatter.rb +2 -3
  108. data/lib/spec/runner/formatter/nested_text_formatter.rb +7 -25
  109. data/lib/spec/runner/formatter/progress_bar_formatter.rb +1 -1
  110. data/lib/spec/runner/formatter/snippet_extractor.rb +1 -1
  111. data/lib/spec/runner/formatter/specdoc_formatter.rb +1 -7
  112. data/lib/spec/runner/heckle_runner.rb +3 -6
  113. data/lib/spec/runner/heckle_runner_unsupported.rb +1 -1
  114. data/lib/spec/runner/option_parser.rb +19 -21
  115. data/lib/spec/runner/options.rb +32 -27
  116. data/lib/spec/runner/reporter.rb +8 -9
  117. data/lib/spec/test/unit.rb +10 -0
  118. data/lib/spec/version.rb +2 -2
  119. data/{features/support → resources}/helpers/cmdline.rb +2 -2
  120. data/resources/rake/verify_rcov.rake +1 -1
  121. data/resources/spec/example_group_with_should_methods.rb +1 -1
  122. data/resources/spec/simple_spec.rb +1 -1
  123. data/resources/test/spec_and_test_together.rb +2 -3
  124. data/resources/test/spec_including_test_but_not_unit.rb +1 -1
  125. data/resources/test/test_case_with_should_methods.rb +2 -3
  126. data/spec/autotest/autotest_helper.rb +0 -1
  127. data/spec/autotest/rspec_spec.rb +95 -98
  128. data/spec/spec/dsl/main_spec.rb +3 -3
  129. data/spec/spec/dsl/matchers_spec.rb +25 -0
  130. data/spec/spec/example/example_group_class_definition_spec.rb +14 -15
  131. data/spec/spec/example/example_group_factory_spec.rb +31 -44
  132. data/spec/spec/example/example_group_methods_spec.rb +86 -52
  133. data/spec/spec/example/example_group_spec.rb +32 -79
  134. data/spec/spec/example/example_matcher_spec.rb +10 -10
  135. data/spec/spec/example/example_methods_spec.rb +108 -242
  136. data/spec/spec/example/nested_example_group_spec.rb +2 -2
  137. data/spec/spec/example/pending_module_spec.rb +66 -41
  138. data/spec/spec/example/shared_example_group_spec.rb +4 -4
  139. data/spec/spec/{matchers → expectations}/handler_spec.rb +52 -4
  140. data/spec/spec/interop/test/unit/resources/spec_that_fails.rb +2 -2
  141. data/spec/spec/interop/test/unit/resources/spec_that_passes.rb +2 -2
  142. data/spec/spec/interop/test/unit/resources/spec_with_errors.rb +2 -2
  143. data/spec/spec/interop/test/unit/resources/spec_with_options_hash.rb +2 -2
  144. data/spec/spec/interop/test/unit/resources/test_case_that_fails.rb +2 -2
  145. data/spec/spec/interop/test/unit/resources/test_case_that_passes.rb +2 -2
  146. data/spec/spec/interop/test/unit/resources/test_case_with_errors.rb +2 -2
  147. data/spec/spec/interop/test/unit/resources/testsuite_adapter_spec_with_test_unit.rb +2 -2
  148. data/spec/spec/interop/test/unit/testcase_spec.rb +0 -4
  149. data/spec/spec/matchers/be_close_spec.rb +1 -1
  150. data/spec/spec/matchers/be_instance_of_spec.rb +29 -0
  151. data/spec/spec/matchers/be_kind_of_spec.rb +29 -0
  152. data/spec/spec/matchers/change_spec.rb +20 -0
  153. data/spec/spec/matchers/compatibility_spec.rb +34 -0
  154. data/spec/spec/matchers/description_generation_spec.rb +0 -12
  155. data/spec/spec/matchers/eql_spec.rb +2 -2
  156. data/spec/spec/matchers/equal_spec.rb +2 -2
  157. data/spec/spec/matchers/exist_spec.rb +8 -4
  158. data/spec/spec/matchers/have_spec.rb +4 -4
  159. data/spec/spec/matchers/match_spec.rb +2 -2
  160. data/spec/spec/matchers/matcher_methods_spec.rb +1 -1
  161. data/spec/spec/matchers/matcher_spec.rb +97 -0
  162. data/spec/spec/matchers/throw_symbol_spec.rb +8 -8
  163. data/spec/spec/mocks/{bug_report_496.rb → bug_report_496_spec.rb} +0 -0
  164. data/spec/spec/mocks/{failing_mock_argument_constraints_spec.rb → failing_argument_matchers_spec.rb} +2 -2
  165. data/spec/spec/mocks/hash_including_matcher_spec.rb +4 -4
  166. data/spec/spec/mocks/hash_not_including_matcher_spec.rb +3 -3
  167. data/spec/spec/mocks/mock_spec.rb +27 -2
  168. data/spec/spec/mocks/nil_expectation_warning_spec.rb +1 -1
  169. data/spec/spec/mocks/partial_mock_spec.rb +18 -3
  170. data/spec/spec/mocks/{passing_mock_argument_constraints_spec.rb → passing_argument_matchers_spec.rb} +6 -6
  171. data/spec/spec/mocks/stubbed_message_expectations_spec.rb +13 -1
  172. data/spec/spec/package/bin_spec_spec.rb +2 -2
  173. data/spec/spec/runner/configuration_spec.rb +12 -12
  174. data/spec/spec/runner/drb_command_line_spec.rb +71 -73
  175. data/spec/spec/runner/formatter/base_text_formatter_spec.rb +82 -1
  176. data/spec/spec/runner/formatter/failing_example_groups_formatter_spec.rb +8 -8
  177. data/spec/spec/runner/formatter/failing_examples_formatter_spec.rb +4 -4
  178. data/spec/spec/runner/formatter/html_formatted-1.8.6.html +8 -8
  179. data/spec/spec/runner/formatter/html_formatted-1.8.7.html +38 -26
  180. data/spec/spec/runner/formatter/html_formatted-1.9.1.html +61 -53
  181. data/spec/spec/runner/formatter/html_formatter_spec.rb +100 -48
  182. data/spec/spec/runner/formatter/nested_text_formatter_spec.rb +20 -34
  183. data/spec/spec/runner/formatter/profile_formatter_spec.rb +2 -1
  184. data/spec/spec/runner/formatter/progress_bar_formatter_spec.rb +9 -6
  185. data/spec/spec/runner/formatter/specdoc_formatter_spec.rb +6 -6
  186. data/spec/spec/runner/formatter/text_mate_formatted-1.8.6.html +20 -20
  187. data/spec/spec/runner/formatter/text_mate_formatted-1.8.7.html +38 -26
  188. data/spec/spec/runner/formatter/text_mate_formatted-1.9.1.html +55 -47
  189. data/spec/spec/runner/formatter/{spec_mate_formatter_spec.rb → text_mate_formatter_spec.rb} +11 -9
  190. data/spec/spec/runner/heckle_runner_spec.rb +1 -1
  191. data/spec/spec/runner/heckler_spec.rb +1 -1
  192. data/spec/spec/runner/option_parser_spec.rb +28 -11
  193. data/spec/spec/runner/options_spec.rb +34 -0
  194. data/spec/spec/runner/reporter_spec.rb +66 -62
  195. data/spec/spec/runner/resources/utf8_encoded.rb +1 -0
  196. data/spec/spec/runner/spec_drb.opts +1 -0
  197. data/spec/spec/runner_spec.rb +7 -5
  198. data/spec/spec_helper.rb +24 -2
  199. metadata +49 -90
  200. data/examples/passing/autogenerated_docstrings_example.rb +0 -25
  201. data/examples/passing/before_and_after_example.rb +0 -40
  202. data/examples/passing/behave_as_example.rb +0 -45
  203. data/examples/passing/legacy_spec.rb +0 -11
  204. data/examples/passing/priority.txt +0 -1
  205. data/features/support/helpers/story_helper.rb +0 -16
  206. data/lib/spec/expectations/extensions/string_and_symbol.rb +0 -17
  207. data/lib/spec/runner/formatter/story/html_formatter.rb +0 -174
  208. data/lib/spec/runner/formatter/story/plain_text_formatter.rb +0 -194
  209. data/lib/spec/runner/formatter/story/progress_bar_formatter.rb +0 -42
  210. data/lib/spec/story.rb +0 -10
  211. data/lib/spec/story/extensions.rb +0 -3
  212. data/lib/spec/story/extensions/main.rb +0 -86
  213. data/lib/spec/story/extensions/regexp.rb +0 -9
  214. data/lib/spec/story/extensions/string.rb +0 -9
  215. data/lib/spec/story/given_scenario.rb +0 -14
  216. data/lib/spec/story/runner.rb +0 -57
  217. data/lib/spec/story/runner/plain_text_story_runner.rb +0 -48
  218. data/lib/spec/story/runner/scenario_collector.rb +0 -18
  219. data/lib/spec/story/runner/scenario_runner.rb +0 -54
  220. data/lib/spec/story/runner/story_mediator.rb +0 -137
  221. data/lib/spec/story/runner/story_parser.rb +0 -247
  222. data/lib/spec/story/runner/story_runner.rb +0 -74
  223. data/lib/spec/story/scenario.rb +0 -14
  224. data/lib/spec/story/step.rb +0 -70
  225. data/lib/spec/story/step_group.rb +0 -89
  226. data/lib/spec/story/step_mother.rb +0 -38
  227. data/lib/spec/story/story.rb +0 -39
  228. data/lib/spec/story/world.rb +0 -124
  229. data/resources/spec/spec_with_flexmock.rb +0 -19
  230. data/rspec.gemspec +0 -32
  231. data/spec/spec/matchers/mock_constraint_matchers_spec.rb +0 -24
  232. data/spec/spec/runner/formatter/story/html_formatter_spec.rb +0 -135
  233. data/spec/spec/runner/formatter/story/plain_text_formatter_spec.rb +0 -600
  234. data/spec/spec/runner/formatter/story/progress_bar_formatter_spec.rb +0 -82
  235. data/spec/spec/spec_spec.rb +0 -21
  236. data/spec/spec/story/builders.rb +0 -46
  237. data/spec/spec/story/extensions/main_spec.rb +0 -161
  238. data/spec/spec/story/extensions_spec.rb +0 -14
  239. data/spec/spec/story/given_scenario_spec.rb +0 -27
  240. data/spec/spec/story/runner/plain_text_story_runner_spec.rb +0 -90
  241. data/spec/spec/story/runner/scenario_collector_spec.rb +0 -27
  242. data/spec/spec/story/runner/scenario_runner_spec.rb +0 -214
  243. data/spec/spec/story/runner/story_mediator_spec.rb +0 -143
  244. data/spec/spec/story/runner/story_parser_spec.rb +0 -401
  245. data/spec/spec/story/runner/story_runner_spec.rb +0 -294
  246. data/spec/spec/story/runner_spec.rb +0 -93
  247. data/spec/spec/story/scenario_spec.rb +0 -18
  248. data/spec/spec/story/step_group_spec.rb +0 -157
  249. data/spec/spec/story/step_mother_spec.rb +0 -84
  250. data/spec/spec/story/step_spec.rb +0 -272
  251. data/spec/spec/story/story_helper.rb +0 -2
  252. data/spec/spec/story/story_spec.rb +0 -84
  253. data/spec/spec/story/world_spec.rb +0 -423
  254. data/story_server/prototype/javascripts/builder.js +0 -136
  255. data/story_server/prototype/javascripts/controls.js +0 -972
  256. data/story_server/prototype/javascripts/dragdrop.js +0 -976
  257. data/story_server/prototype/javascripts/effects.js +0 -1117
  258. data/story_server/prototype/javascripts/prototype.js +0 -4140
  259. data/story_server/prototype/javascripts/rspec.js +0 -149
  260. data/story_server/prototype/javascripts/scriptaculous.js +0 -58
  261. data/story_server/prototype/javascripts/slider.js +0 -276
  262. data/story_server/prototype/javascripts/sound.js +0 -55
  263. data/story_server/prototype/javascripts/unittest.js +0 -568
  264. data/story_server/prototype/lib/server.rb +0 -24
  265. data/story_server/prototype/stories.html +0 -176
  266. data/story_server/prototype/stylesheets/rspec.css +0 -136
  267. data/story_server/prototype/stylesheets/test.css +0 -90
@@ -1,3 +1,4 @@
1
+ # encoding: utf-8
1
2
  module Custom
2
3
  class ExampleUTF8ClassNameVarietà
3
4
  def self.è
@@ -1 +1,2 @@
1
+ --colour
1
2
  --drb
@@ -1,11 +1,13 @@
1
1
  require File.dirname(__FILE__) + '/../spec_helper.rb'
2
2
 
3
3
  module Spec
4
- describe Runner, ".configure" do
5
- it "should yield global configuration" do
6
- Spec::Runner.configure do |config|
7
- config.should equal(Spec::Runner.configuration)
4
+ describe Runner do
5
+ describe ".configure" do
6
+ it "should yield global configuration" do
7
+ Spec::Runner.configure do |config|
8
+ config.should equal(Spec::Runner.configuration)
9
+ end
8
10
  end
9
11
  end
10
12
  end
11
- end
13
+ end
@@ -7,7 +7,6 @@ $_spec_spec = true # Prevents Kernel.exit in various places
7
7
 
8
8
  require 'spec'
9
9
  require 'spec/mocks'
10
- require 'spec/story'
11
10
  spec_classes_path = File.expand_path("#{dir}/../spec/spec/spec_classes")
12
11
  require spec_classes_path unless $LOAD_PATH.include?(spec_classes_path)
13
12
  require File.dirname(__FILE__) + '/../lib/spec/expectations/differs/default'
@@ -45,7 +44,7 @@ module Spec
45
44
  end
46
45
 
47
46
  def with_ruby(version)
48
- yield if RUBY_PLATFORM =~ Regexp.compile("^#{version}")
47
+ yield if RUBY_VERSION =~ Regexp.compile("^#{version.to_s}")
49
48
  end
50
49
  end
51
50
  end
@@ -83,3 +82,26 @@ def with_sandboxed_config
83
82
 
84
83
  yield
85
84
  end
85
+
86
+ module Spec
87
+ module Example
88
+ module Resettable
89
+ def reset # :nodoc:
90
+ @before_all_parts = nil
91
+ @after_all_parts = nil
92
+ @before_each_parts = nil
93
+ @after_each_parts = nil
94
+ end
95
+ end
96
+ class ExampleGroup
97
+ extend Resettable
98
+ end
99
+ class ExampleGroupDouble < ExampleGroup
100
+ ::Spec::Runner.options.remove_example_group self
101
+ def register_example_group(klass)
102
+ #ignore
103
+ end
104
+ end
105
+ end
106
+ end
107
+
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.1.12
4
+ version: 1.2.0
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-01-11 00:00:00 -06:00
12
+ date: 2009-03-15 00:00:00 -05:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -30,7 +30,7 @@ dependencies:
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: 1.8.2
33
+ version: 1.10.0
34
34
  version:
35
35
  description: Behaviour Driven Development for Ruby.
36
36
  email:
@@ -47,23 +47,23 @@ extra_rdoc_files:
47
47
  - README.txt
48
48
  - TODO.txt
49
49
  - examples/failing/README.txt
50
- - examples/passing/priority.txt
51
- - spec/spec/runner/empty_file.txt
52
- - spec/spec/runner/examples.txt
53
- - spec/spec/runner/failed.txt
54
50
  files:
55
51
  - .autotest
52
+ - .document
56
53
  - History.txt
57
54
  - License.txt
58
55
  - Manifest.txt
59
56
  - README.txt
60
57
  - Rakefile
58
+ - Ruby1.9.markdown
61
59
  - TODO.txt
60
+ - Upgrade.markdown
62
61
  - bin/autospec
63
62
  - bin/spec
63
+ - cucumber.yml
64
64
  - examples/failing/README.txt
65
65
  - examples/failing/diffing_spec.rb
66
- - examples/failing/failing_autogenerated_docstrings_example.rb
66
+ - examples/failing/failing_implicit_docstrings_example.rb
67
67
  - examples/failing/failure_in_after.rb
68
68
  - examples/failing/failure_in_before.rb
69
69
  - examples/failing/mocking_example.rb
@@ -71,32 +71,31 @@ files:
71
71
  - examples/failing/mocking_with_mocha.rb
72
72
  - examples/failing/mocking_with_rr.rb
73
73
  - examples/failing/partial_mock_example.rb
74
+ - examples/failing/pending_example.rb
74
75
  - examples/failing/predicate_example.rb
75
76
  - examples/failing/raising_example.rb
76
77
  - examples/failing/spec_helper.rb
77
78
  - examples/failing/syntax_error_example.rb
78
79
  - examples/failing/team_spec.rb
79
80
  - examples/failing/timeout_behaviour.rb
80
- - examples/passing/autogenerated_docstrings_example.rb
81
- - examples/passing/before_and_after_example.rb
82
- - examples/passing/behave_as_example.rb
83
- - examples/passing/custom_expectation_matchers.rb
84
81
  - examples/passing/custom_formatter.rb
82
+ - examples/passing/custom_matchers.rb
85
83
  - examples/passing/dynamic_spec.rb
86
84
  - examples/passing/file_accessor.rb
87
85
  - examples/passing/file_accessor_spec.rb
86
+ - examples/passing/filtered_formatter.rb
87
+ - examples/passing/filtered_formatter_example.rb
88
88
  - examples/passing/greeter_spec.rb
89
89
  - examples/passing/helper_method_example.rb
90
+ - examples/passing/implicit_docstrings_example.rb
90
91
  - examples/passing/io_processor.rb
91
92
  - examples/passing/io_processor_spec.rb
92
- - examples/passing/legacy_spec.rb
93
93
  - examples/passing/mocking_example.rb
94
94
  - examples/passing/multi_threaded_example_group_runner.rb
95
95
  - examples/passing/nested_classes_example.rb
96
96
  - examples/passing/partial_mock_example.rb
97
97
  - examples/passing/pending_example.rb
98
98
  - examples/passing/predicate_example.rb
99
- - examples/passing/priority.txt
100
99
  - examples/passing/shared_example_group_example.rb
101
100
  - examples/passing/shared_stack_examples.rb
102
101
  - examples/passing/simple_matcher_example.rb
@@ -108,46 +107,55 @@ files:
108
107
  - examples/passing/yielding_example.rb
109
108
  - examples/ruby1.9.compatibility/access_to_constants_spec.rb
110
109
  - features/before_and_after_blocks/before_and_after_blocks.feature
111
- - features/example_groups/autogenerated_docstrings.feature
112
110
  - features/example_groups/example_group_with_should_methods.feature
111
+ - features/example_groups/implicit_docstrings.feature
113
112
  - features/example_groups/nested_groups.feature
114
113
  - features/example_groups/output.feature
114
+ - features/heckle/heckle.feature
115
115
  - features/interop/examples_and_tests_together.feature
116
116
  - features/interop/test_but_not_test_unit.feature
117
117
  - features/interop/test_case_with_should_methods.feature
118
+ - features/matchers/create_matcher.feature
118
119
  - features/mock_framework_integration/use_flexmock.feature
120
+ - features/mock_framework_integration/use_mocha.feature
121
+ - features/mock_framework_integration/use_rr.feature
122
+ - features/mocks/mix_stubs_and_mocks.feature
123
+ - features/pending/pending_examples.feature
119
124
  - features/step_definitions/running_rspec.rb
120
125
  - features/support/env.rb
121
- - features/support/helpers/cmdline.rb
122
- - features/support/helpers/story_helper.rb
123
126
  - features/support/matchers/smart_match.rb
124
127
  - init.rb
125
- - lib/adapters/mock_frameworks/flexmock.rb
126
- - lib/adapters/mock_frameworks/mocha.rb
127
- - lib/adapters/mock_frameworks/rr.rb
128
- - lib/adapters/mock_frameworks/rspec.rb
129
128
  - lib/autotest/discover.rb
130
129
  - lib/autotest/rspec.rb
131
130
  - lib/spec.rb
131
+ - lib/spec/adapters/mock_frameworks/flexmock.rb
132
+ - lib/spec/adapters/mock_frameworks/mocha.rb
133
+ - lib/spec/adapters/mock_frameworks/rr.rb
134
+ - lib/spec/adapters/mock_frameworks/rspec.rb
135
+ - lib/spec/autorun.rb
132
136
  - lib/spec/dsl.rb
133
137
  - lib/spec/dsl/main.rb
138
+ - lib/spec/dsl/matchers.rb
134
139
  - lib/spec/example.rb
135
140
  - lib/spec/example/before_and_after_hooks.rb
136
141
  - lib/spec/example/errors.rb
142
+ - lib/spec/example/example_description.rb
137
143
  - lib/spec/example/example_group.rb
138
144
  - lib/spec/example/example_group_factory.rb
145
+ - lib/spec/example/example_group_hierarchy.rb
139
146
  - lib/spec/example/example_group_methods.rb
140
147
  - lib/spec/example/example_matcher.rb
141
148
  - lib/spec/example/example_methods.rb
142
149
  - lib/spec/example/module_reopening_fix.rb
143
150
  - lib/spec/example/pending.rb
151
+ - lib/spec/example/predicate_matchers.rb
144
152
  - lib/spec/example/shared_example_group.rb
153
+ - lib/spec/example/subject.rb
145
154
  - lib/spec/expectations.rb
146
155
  - lib/spec/expectations/differs/default.rb
147
156
  - lib/spec/expectations/errors.rb
148
157
  - lib/spec/expectations/extensions.rb
149
158
  - lib/spec/expectations/extensions/object.rb
150
- - lib/spec/expectations/extensions/string_and_symbol.rb
151
159
  - lib/spec/expectations/handler.rb
152
160
  - lib/spec/interop/test.rb
153
161
  - lib/spec/interop/test/unit/autorunner.rb
@@ -158,17 +166,22 @@ files:
158
166
  - lib/spec/matchers.rb
159
167
  - lib/spec/matchers/be.rb
160
168
  - lib/spec/matchers/be_close.rb
169
+ - lib/spec/matchers/be_instance_of.rb
170
+ - lib/spec/matchers/be_kind_of.rb
161
171
  - lib/spec/matchers/change.rb
172
+ - lib/spec/matchers/compatibility.rb
162
173
  - lib/spec/matchers/eql.rb
163
174
  - lib/spec/matchers/equal.rb
164
175
  - lib/spec/matchers/errors.rb
165
176
  - lib/spec/matchers/exist.rb
177
+ - lib/spec/matchers/extensions/instance_exec.rb
166
178
  - lib/spec/matchers/generated_descriptions.rb
167
179
  - lib/spec/matchers/has.rb
168
180
  - lib/spec/matchers/have.rb
169
181
  - lib/spec/matchers/include.rb
170
182
  - lib/spec/matchers/match.rb
171
183
  - lib/spec/matchers/match_array.rb
184
+ - lib/spec/matchers/matcher.rb
172
185
  - lib/spec/matchers/method_missing.rb
173
186
  - lib/spec/matchers/operator_matcher.rb
174
187
  - lib/spec/matchers/raise_error.rb
@@ -178,8 +191,8 @@ files:
178
191
  - lib/spec/matchers/throw_symbol.rb
179
192
  - lib/spec/matchers/wrap_expectation.rb
180
193
  - lib/spec/mocks.rb
181
- - lib/spec/mocks/argument_constraints.rb
182
194
  - lib/spec/mocks/argument_expectation.rb
195
+ - lib/spec/mocks/argument_matchers.rb
183
196
  - lib/spec/mocks/error_generator.rb
184
197
  - lib/spec/mocks/errors.rb
185
198
  - lib/spec/mocks/extensions.rb
@@ -212,9 +225,6 @@ files:
212
225
  - lib/spec/runner/formatter/progress_bar_formatter.rb
213
226
  - lib/spec/runner/formatter/snippet_extractor.rb
214
227
  - lib/spec/runner/formatter/specdoc_formatter.rb
215
- - lib/spec/runner/formatter/story/html_formatter.rb
216
- - lib/spec/runner/formatter/story/plain_text_formatter.rb
217
- - lib/spec/runner/formatter/story/progress_bar_formatter.rb
218
228
  - lib/spec/runner/formatter/text_mate_formatter.rb
219
229
  - lib/spec/runner/heckle_runner.rb
220
230
  - lib/spec/runner/heckle_runner_unsupported.rb
@@ -222,37 +232,18 @@ files:
222
232
  - lib/spec/runner/options.rb
223
233
  - lib/spec/runner/reporter.rb
224
234
  - lib/spec/runner/spec_parser.rb
225
- - lib/spec/story.rb
226
- - lib/spec/story/extensions.rb
227
- - lib/spec/story/extensions/main.rb
228
- - lib/spec/story/extensions/regexp.rb
229
- - lib/spec/story/extensions/string.rb
230
- - lib/spec/story/given_scenario.rb
231
- - lib/spec/story/runner.rb
232
- - lib/spec/story/runner/plain_text_story_runner.rb
233
- - lib/spec/story/runner/scenario_collector.rb
234
- - lib/spec/story/runner/scenario_runner.rb
235
- - lib/spec/story/runner/story_mediator.rb
236
- - lib/spec/story/runner/story_parser.rb
237
- - lib/spec/story/runner/story_runner.rb
238
- - lib/spec/story/scenario.rb
239
- - lib/spec/story/step.rb
240
- - lib/spec/story/step_group.rb
241
- - lib/spec/story/step_mother.rb
242
- - lib/spec/story/story.rb
243
- - lib/spec/story/world.rb
235
+ - lib/spec/test/unit.rb
244
236
  - lib/spec/version.rb
237
+ - resources/helpers/cmdline.rb
245
238
  - resources/rake/examples.rake
246
239
  - resources/rake/examples_with_rcov.rake
247
240
  - resources/rake/failing_examples_with_html.rake
248
241
  - resources/rake/verify_rcov.rake
249
242
  - resources/spec/example_group_with_should_methods.rb
250
243
  - resources/spec/simple_spec.rb
251
- - resources/spec/spec_with_flexmock.rb
252
244
  - resources/test/spec_and_test_together.rb
253
245
  - resources/test/spec_including_test_but_not_unit.rb
254
246
  - resources/test/test_case_with_should_methods.rb
255
- - rspec.gemspec
256
247
  - spec/README.jruby
257
248
  - spec/autotest/autotest_helper.rb
258
249
  - spec/autotest/autotest_matchers.rb
@@ -263,6 +254,7 @@ files:
263
254
  - spec/ruby_forker.rb
264
255
  - spec/spec.opts
265
256
  - spec/spec/dsl/main_spec.rb
257
+ - spec/spec/dsl/matchers_spec.rb
266
258
  - spec/spec/example/example_group_class_definition_spec.rb
267
259
  - spec/spec/example/example_group_factory_spec.rb
268
260
  - spec/spec/example/example_group_methods_spec.rb
@@ -278,6 +270,7 @@ files:
278
270
  - spec/spec/expectations/differs/default_spec.rb
279
271
  - spec/spec/expectations/extensions/object_spec.rb
280
272
  - spec/spec/expectations/fail_with_spec.rb
273
+ - spec/spec/expectations/handler_spec.rb
281
274
  - spec/spec/expectations/wrap_expectation_spec.rb
282
275
  - spec/spec/interop/test/unit/resources/spec_that_fails.rb
283
276
  - spec/spec/interop/test/unit/resources/spec_that_passes.rb
@@ -292,20 +285,22 @@ files:
292
285
  - spec/spec/interop/test/unit/testcase_spec.rb
293
286
  - spec/spec/interop/test/unit/testsuite_adapter_spec.rb
294
287
  - spec/spec/matchers/be_close_spec.rb
288
+ - spec/spec/matchers/be_instance_of_spec.rb
289
+ - spec/spec/matchers/be_kind_of_spec.rb
295
290
  - spec/spec/matchers/be_spec.rb
296
291
  - spec/spec/matchers/change_spec.rb
292
+ - spec/spec/matchers/compatibility_spec.rb
297
293
  - spec/spec/matchers/description_generation_spec.rb
298
294
  - spec/spec/matchers/eql_spec.rb
299
295
  - spec/spec/matchers/equal_spec.rb
300
296
  - spec/spec/matchers/exist_spec.rb
301
- - spec/spec/matchers/handler_spec.rb
302
297
  - spec/spec/matchers/has_spec.rb
303
298
  - spec/spec/matchers/have_spec.rb
304
299
  - spec/spec/matchers/include_spec.rb
305
300
  - spec/spec/matchers/match_array_spec.rb
306
301
  - spec/spec/matchers/match_spec.rb
307
302
  - spec/spec/matchers/matcher_methods_spec.rb
308
- - spec/spec/matchers/mock_constraint_matchers_spec.rb
303
+ - spec/spec/matchers/matcher_spec.rb
309
304
  - spec/spec/matchers/operator_matcher_spec.rb
310
305
  - spec/spec/matchers/raise_error_spec.rb
311
306
  - spec/spec/matchers/respond_to_spec.rb
@@ -320,13 +315,13 @@ files:
320
315
  - spec/spec/mocks/bug_report_10263_spec.rb
321
316
  - spec/spec/mocks/bug_report_11545_spec.rb
322
317
  - spec/spec/mocks/bug_report_15719_spec.rb
323
- - spec/spec/mocks/bug_report_496.rb
318
+ - spec/spec/mocks/bug_report_496_spec.rb
324
319
  - spec/spec/mocks/bug_report_600_spec.rb
325
320
  - spec/spec/mocks/bug_report_7611_spec.rb
326
321
  - spec/spec/mocks/bug_report_7805_spec.rb
327
322
  - spec/spec/mocks/bug_report_8165_spec.rb
328
323
  - spec/spec/mocks/bug_report_8302_spec.rb
329
- - spec/spec/mocks/failing_mock_argument_constraints_spec.rb
324
+ - spec/spec/mocks/failing_argument_matchers_spec.rb
330
325
  - spec/spec/mocks/hash_including_matcher_spec.rb
331
326
  - spec/spec/mocks/hash_not_including_matcher_spec.rb
332
327
  - spec/spec/mocks/mock_ordering_spec.rb
@@ -339,7 +334,7 @@ files:
339
334
  - spec/spec/mocks/options_hash_spec.rb
340
335
  - spec/spec/mocks/partial_mock_spec.rb
341
336
  - spec/spec/mocks/partial_mock_using_mocks_directly_spec.rb
342
- - spec/spec/mocks/passing_mock_argument_constraints_spec.rb
337
+ - spec/spec/mocks/passing_argument_matchers_spec.rb
343
338
  - spec/spec/mocks/precise_counts_spec.rb
344
339
  - spec/spec/mocks/record_messages_spec.rb
345
340
  - spec/spec/mocks/stub_spec.rb
@@ -370,15 +365,12 @@ files:
370
365
  - spec/spec/runner/formatter/profile_formatter_spec.rb
371
366
  - spec/spec/runner/formatter/progress_bar_formatter_spec.rb
372
367
  - spec/spec/runner/formatter/snippet_extractor_spec.rb
373
- - spec/spec/runner/formatter/spec_mate_formatter_spec.rb
374
368
  - spec/spec/runner/formatter/specdoc_formatter_spec.rb
375
- - spec/spec/runner/formatter/story/html_formatter_spec.rb
376
- - spec/spec/runner/formatter/story/plain_text_formatter_spec.rb
377
- - spec/spec/runner/formatter/story/progress_bar_formatter_spec.rb
378
369
  - spec/spec/runner/formatter/text_mate_formatted-1.8.4.html
379
370
  - spec/spec/runner/formatter/text_mate_formatted-1.8.6.html
380
371
  - spec/spec/runner/formatter/text_mate_formatted-1.8.7.html
381
372
  - spec/spec/runner/formatter/text_mate_formatted-1.9.1.html
373
+ - spec/spec/runner/formatter/text_mate_formatter_spec.rb
382
374
  - spec/spec/runner/heckle_runner_spec.rb
383
375
  - spec/spec/runner/heckler_spec.rb
384
376
  - spec/spec/runner/noisy_backtrace_tweaker_spec.rb
@@ -401,40 +393,7 @@ files:
401
393
  - spec/spec/runner/spec_spaced.opts
402
394
  - spec/spec/runner_spec.rb
403
395
  - spec/spec/spec_classes.rb
404
- - spec/spec/spec_spec.rb
405
- - spec/spec/story/builders.rb
406
- - spec/spec/story/extensions/main_spec.rb
407
- - spec/spec/story/extensions_spec.rb
408
- - spec/spec/story/given_scenario_spec.rb
409
- - spec/spec/story/runner/plain_text_story_runner_spec.rb
410
- - spec/spec/story/runner/scenario_collector_spec.rb
411
- - spec/spec/story/runner/scenario_runner_spec.rb
412
- - spec/spec/story/runner/story_mediator_spec.rb
413
- - spec/spec/story/runner/story_parser_spec.rb
414
- - spec/spec/story/runner/story_runner_spec.rb
415
- - spec/spec/story/runner_spec.rb
416
- - spec/spec/story/scenario_spec.rb
417
- - spec/spec/story/step_group_spec.rb
418
- - spec/spec/story/step_mother_spec.rb
419
- - spec/spec/story/step_spec.rb
420
- - spec/spec/story/story_helper.rb
421
- - spec/spec/story/story_spec.rb
422
- - spec/spec/story/world_spec.rb
423
396
  - spec/spec_helper.rb
424
- - story_server/prototype/javascripts/builder.js
425
- - story_server/prototype/javascripts/controls.js
426
- - story_server/prototype/javascripts/dragdrop.js
427
- - story_server/prototype/javascripts/effects.js
428
- - story_server/prototype/javascripts/prototype.js
429
- - story_server/prototype/javascripts/rspec.js
430
- - story_server/prototype/javascripts/scriptaculous.js
431
- - story_server/prototype/javascripts/slider.js
432
- - story_server/prototype/javascripts/sound.js
433
- - story_server/prototype/javascripts/unittest.js
434
- - story_server/prototype/lib/server.rb
435
- - story_server/prototype/stories.html
436
- - story_server/prototype/stylesheets/rspec.css
437
- - story_server/prototype/stylesheets/test.css
438
397
  has_rdoc: true
439
398
  homepage: http://rspec.info/
440
399
  post_install_message:
@@ -461,6 +420,6 @@ rubyforge_project: rspec
461
420
  rubygems_version: 1.3.1
462
421
  signing_key:
463
422
  specification_version: 2
464
- summary: rspec 1.1.12
423
+ summary: rspec 1.2.0
465
424
  test_files: []
466
425
 
@@ -1,25 +0,0 @@
1
- require File.dirname(__FILE__) + '/spec_helper'
2
-
3
- # Run spec w/ -fs to see the output of this file
4
-
5
- describe "Examples with no descriptions" do
6
-
7
- # description is auto-generated as "should equal(5)" based on the last #should
8
- specify do
9
- 3.should equal(3)
10
- 5.should equal(5)
11
- end
12
-
13
- specify { 3.should be < 5 }
14
-
15
- specify { ["a"].should include("a") }
16
-
17
- specify { [1,2,3].should respond_to(:size) }
18
-
19
- end
20
-
21
- describe "the number 1" do
22
- subject { 1 }
23
- it { should == 1 }
24
- it { should be < 2}
25
- end