tuktuk-rails 0.0.6 → 0.0.7

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 (531) hide show
  1. checksums.yaml +4 -4
  2. data/lib/tasks/tuktuk_tasks.rake +0 -1
  3. data/lib/tuktuk/version.rb +1 -1
  4. data/{app → vendor}/assets/javascripts/index.js +0 -0
  5. data/{app → vendor}/assets/javascripts/tuktuk/tuktuk.js +0 -0
  6. data/{app → vendor}/assets/stylesheets/index.css +0 -0
  7. data/{app → vendor}/assets/stylesheets/tuktuk/tuktuk.css +0 -0
  8. data/{app → vendor}/assets/stylesheets/tuktuk/tuktuk.icons.css +0 -0
  9. data/{app → vendor}/assets/stylesheets/tuktuk/tuktuk.theme.css +0 -0
  10. data/vendor/bundle/ruby/2.0.0/bin/autospec +23 -0
  11. data/vendor/bundle/ruby/2.0.0/bin/htmldiff +25 -0
  12. data/vendor/bundle/ruby/2.0.0/bin/ldiff +25 -0
  13. data/vendor/bundle/ruby/2.0.0/bin/rspec +23 -0
  14. data/vendor/bundle/ruby/2.0.0/build_info/diff-lcs-1.2.5.info +1 -0
  15. data/vendor/bundle/ruby/2.0.0/build_info/rspec-2.14.1.info +1 -0
  16. data/vendor/bundle/ruby/2.0.0/build_info/rspec-core-2.14.7.info +1 -0
  17. data/vendor/bundle/ruby/2.0.0/build_info/rspec-expectations-2.14.4.info +1 -0
  18. data/vendor/bundle/ruby/2.0.0/build_info/rspec-mocks-2.14.4.info +1 -0
  19. data/vendor/bundle/ruby/2.0.0/cache/diff-lcs-1.2.5.gem +0 -0
  20. data/vendor/bundle/ruby/2.0.0/cache/rspec-2.14.1.gem +0 -0
  21. data/vendor/bundle/ruby/2.0.0/cache/rspec-core-2.14.7.gem +0 -0
  22. data/vendor/bundle/ruby/2.0.0/cache/rspec-expectations-2.14.4.gem +0 -0
  23. data/vendor/bundle/ruby/2.0.0/cache/rspec-mocks-2.14.4.gem +0 -0
  24. data/vendor/bundle/ruby/2.0.0/gems/diff-lcs-1.2.5/Contributing.rdoc +64 -0
  25. data/vendor/bundle/ruby/2.0.0/gems/diff-lcs-1.2.5/Gemfile +20 -0
  26. data/vendor/bundle/ruby/2.0.0/gems/diff-lcs-1.2.5/History.rdoc +152 -0
  27. data/vendor/bundle/ruby/2.0.0/gems/diff-lcs-1.2.5/License.rdoc +39 -0
  28. data/vendor/bundle/ruby/2.0.0/gems/diff-lcs-1.2.5/Manifest.txt +38 -0
  29. data/vendor/bundle/ruby/2.0.0/gems/diff-lcs-1.2.5/README.rdoc +85 -0
  30. data/vendor/bundle/ruby/2.0.0/gems/diff-lcs-1.2.5/Rakefile +41 -0
  31. data/vendor/bundle/ruby/2.0.0/gems/diff-lcs-1.2.5/autotest/discover.rb +1 -0
  32. data/vendor/bundle/ruby/2.0.0/gems/diff-lcs-1.2.5/bin/htmldiff +32 -0
  33. data/vendor/bundle/ruby/2.0.0/gems/diff-lcs-1.2.5/bin/ldiff +6 -0
  34. data/vendor/bundle/ruby/2.0.0/gems/diff-lcs-1.2.5/docs/COPYING.txt +339 -0
  35. data/vendor/bundle/ruby/2.0.0/gems/diff-lcs-1.2.5/docs/artistic.txt +127 -0
  36. data/vendor/bundle/ruby/2.0.0/gems/diff-lcs-1.2.5/lib/diff-lcs.rb +3 -0
  37. data/vendor/bundle/ruby/2.0.0/gems/diff-lcs-1.2.5/lib/diff/lcs.rb +805 -0
  38. data/vendor/bundle/ruby/2.0.0/gems/diff-lcs-1.2.5/lib/diff/lcs/array.rb +7 -0
  39. data/vendor/bundle/ruby/2.0.0/gems/diff-lcs-1.2.5/lib/diff/lcs/block.rb +37 -0
  40. data/vendor/bundle/ruby/2.0.0/gems/diff-lcs-1.2.5/lib/diff/lcs/callbacks.rb +322 -0
  41. data/vendor/bundle/ruby/2.0.0/gems/diff-lcs-1.2.5/lib/diff/lcs/change.rb +177 -0
  42. data/vendor/bundle/ruby/2.0.0/gems/diff-lcs-1.2.5/lib/diff/lcs/htmldiff.rb +149 -0
  43. data/vendor/bundle/ruby/2.0.0/gems/diff-lcs-1.2.5/lib/diff/lcs/hunk.rb +276 -0
  44. data/vendor/bundle/ruby/2.0.0/gems/diff-lcs-1.2.5/lib/diff/lcs/internals.rb +301 -0
  45. data/vendor/bundle/ruby/2.0.0/gems/diff-lcs-1.2.5/lib/diff/lcs/ldiff.rb +195 -0
  46. data/vendor/bundle/ruby/2.0.0/gems/diff-lcs-1.2.5/lib/diff/lcs/string.rb +5 -0
  47. data/vendor/bundle/ruby/2.0.0/gems/diff-lcs-1.2.5/spec/change_spec.rb +65 -0
  48. data/vendor/bundle/ruby/2.0.0/gems/diff-lcs-1.2.5/spec/diff_spec.rb +47 -0
  49. data/vendor/bundle/ruby/2.0.0/gems/diff-lcs-1.2.5/spec/hunk_spec.rb +72 -0
  50. data/vendor/bundle/ruby/2.0.0/gems/diff-lcs-1.2.5/spec/issues_spec.rb +24 -0
  51. data/vendor/bundle/ruby/2.0.0/gems/diff-lcs-1.2.5/spec/lcs_spec.rb +54 -0
  52. data/vendor/bundle/ruby/2.0.0/gems/diff-lcs-1.2.5/spec/patch_spec.rb +414 -0
  53. data/vendor/bundle/ruby/2.0.0/gems/diff-lcs-1.2.5/spec/sdiff_spec.rb +214 -0
  54. data/vendor/bundle/ruby/2.0.0/gems/diff-lcs-1.2.5/spec/spec_helper.rb +290 -0
  55. data/vendor/bundle/ruby/2.0.0/gems/diff-lcs-1.2.5/spec/traverse_balanced_spec.rb +310 -0
  56. data/vendor/bundle/ruby/2.0.0/gems/diff-lcs-1.2.5/spec/traverse_sequences_spec.rb +139 -0
  57. data/vendor/bundle/ruby/2.0.0/gems/rspec-2.14.1/License.txt +24 -0
  58. data/vendor/bundle/ruby/2.0.0/gems/rspec-2.14.1/README.md +47 -0
  59. data/vendor/bundle/ruby/2.0.0/gems/rspec-2.14.1/lib/rspec.rb +3 -0
  60. data/vendor/bundle/ruby/2.0.0/gems/rspec-2.14.1/lib/rspec/version.rb +5 -0
  61. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/Changelog.md +904 -0
  62. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/License.txt +24 -0
  63. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/README.md +261 -0
  64. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/exe/autospec +13 -0
  65. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/exe/rspec +25 -0
  66. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/Autotest.md +38 -0
  67. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/README.md +17 -0
  68. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/Upgrade.md +364 -0
  69. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/command_line/README.md +28 -0
  70. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/command_line/example_name_option.feature +97 -0
  71. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/command_line/exit_status.feature +82 -0
  72. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/command_line/format_option.feature +75 -0
  73. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/command_line/init.feature +18 -0
  74. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/command_line/line_number_appended_to_path.feature +140 -0
  75. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/command_line/line_number_option.feature +58 -0
  76. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/command_line/order.feature +29 -0
  77. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/command_line/pattern_option.feature +49 -0
  78. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/command_line/rake_task.feature +122 -0
  79. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/command_line/require_option.feature +43 -0
  80. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/command_line/ruby.feature +22 -0
  81. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/command_line/tag.feature +98 -0
  82. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/command_line/warnings_option.feature +29 -0
  83. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/configuration/alias_example_to.feature +48 -0
  84. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/configuration/backtrace_clean_patterns.feature +102 -0
  85. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/configuration/custom_settings.feature +84 -0
  86. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/configuration/default_path.feature +38 -0
  87. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/configuration/deprecation_stream.feature +58 -0
  88. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/configuration/fail_fast.feature +77 -0
  89. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/configuration/failure_exit_code.feature +36 -0
  90. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/configuration/order_and_seed.feature +3 -0
  91. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/configuration/output_stream.feature +24 -0
  92. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/configuration/pattern.feature +38 -0
  93. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/configuration/profile.feature +220 -0
  94. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/configuration/read_options_from_file.feature +90 -0
  95. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/configuration/run_all_when_everything_filtered.feature +76 -0
  96. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/configuration/show_failures_in_pending_blocks.feature +61 -0
  97. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/configuration/treat_symbols_as_metadata_keys_with_true_values.feature +52 -0
  98. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/example_groups/basic_structure.feature +55 -0
  99. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/example_groups/shared_context.feature +74 -0
  100. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/example_groups/shared_examples.feature +294 -0
  101. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/expectation_framework_integration/configure_expectation_framework.feature +102 -0
  102. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/filtering/exclusion_filters.feature +138 -0
  103. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/filtering/if_and_unless.feature +168 -0
  104. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/filtering/inclusion_filters.feature +105 -0
  105. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/formatters/configurable_colors.feature +31 -0
  106. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/formatters/custom_formatter.feature +36 -0
  107. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/formatters/json_formatter.feature +30 -0
  108. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/formatters/text_formatter.feature +46 -0
  109. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/helper_methods/arbitrary_methods.feature +40 -0
  110. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/helper_methods/let.feature +50 -0
  111. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/helper_methods/modules.feature +149 -0
  112. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/hooks/around_hooks.feature +343 -0
  113. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/hooks/before_and_after_hooks.feature +427 -0
  114. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/hooks/filtering.feature +234 -0
  115. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/metadata/current_example.feature +17 -0
  116. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/metadata/described_class.feature +17 -0
  117. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/metadata/user_defined.feature +113 -0
  118. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/mock_framework_integration/use_any_framework.feature +106 -0
  119. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/mock_framework_integration/use_flexmock.feature +96 -0
  120. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/mock_framework_integration/use_mocha.feature +97 -0
  121. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/mock_framework_integration/use_rr.feature +98 -0
  122. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/mock_framework_integration/use_rspec.feature +97 -0
  123. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/pending/pending_examples.feature +229 -0
  124. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/spec_files/arbitrary_file_suffix.feature +13 -0
  125. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/step_definitions/additional_cli_steps.rb +49 -0
  126. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/subject/attribute_of_subject.feature +124 -0
  127. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/subject/explicit_subject.feature +101 -0
  128. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/subject/implicit_receiver.feature +29 -0
  129. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/subject/implicit_subject.feature +63 -0
  130. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/support/env.rb +14 -0
  131. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/support/rubinius.rb +6 -0
  132. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/lib/autotest/discover.rb +1 -0
  133. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/lib/autotest/rspec2.rb +73 -0
  134. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/lib/rspec/autorun.rb +2 -0
  135. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/lib/rspec/core.rb +169 -0
  136. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/lib/rspec/core/backtrace_cleaner.rb +46 -0
  137. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/lib/rspec/core/backward_compatibility.rb +55 -0
  138. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/lib/rspec/core/command_line.rb +36 -0
  139. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/lib/rspec/core/configuration.rb +1174 -0
  140. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/lib/rspec/core/configuration_options.rb +156 -0
  141. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/lib/rspec/core/deprecation.rb +31 -0
  142. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/lib/rspec/core/drb_command_line.rb +26 -0
  143. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/lib/rspec/core/drb_options.rb +87 -0
  144. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/lib/rspec/core/dsl.rb +26 -0
  145. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/lib/rspec/core/example.rb +325 -0
  146. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/lib/rspec/core/example_group.rb +479 -0
  147. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/lib/rspec/core/extensions/instance_eval_with_args.rb +44 -0
  148. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/lib/rspec/core/extensions/kernel.rb +9 -0
  149. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/lib/rspec/core/extensions/module_eval_with_args.rb +38 -0
  150. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/lib/rspec/core/extensions/ordered.rb +27 -0
  151. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/lib/rspec/core/filter_manager.rb +203 -0
  152. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/lib/rspec/core/formatters.rb +55 -0
  153. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/lib/rspec/core/formatters/base_formatter.rb +246 -0
  154. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/lib/rspec/core/formatters/base_text_formatter.rb +329 -0
  155. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/lib/rspec/core/formatters/deprecation_formatter.rb +39 -0
  156. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/lib/rspec/core/formatters/documentation_formatter.rb +67 -0
  157. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/lib/rspec/core/formatters/helpers.rb +110 -0
  158. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/lib/rspec/core/formatters/html_formatter.rb +155 -0
  159. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/lib/rspec/core/formatters/html_printer.rb +408 -0
  160. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/lib/rspec/core/formatters/json_formatter.rb +70 -0
  161. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/lib/rspec/core/formatters/progress_formatter.rb +32 -0
  162. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/lib/rspec/core/formatters/snippet_extractor.rb +92 -0
  163. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/lib/rspec/core/formatters/text_mate_formatter.rb +34 -0
  164. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/lib/rspec/core/hooks.rb +519 -0
  165. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/lib/rspec/core/memoized_helpers.rb +514 -0
  166. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/lib/rspec/core/metadata.rb +299 -0
  167. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/lib/rspec/core/metadata_hash_builder.rb +97 -0
  168. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/lib/rspec/core/mocking/with_absolutely_nothing.rb +11 -0
  169. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/lib/rspec/core/mocking/with_flexmock.rb +27 -0
  170. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/lib/rspec/core/mocking/with_mocha.rb +52 -0
  171. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/lib/rspec/core/mocking/with_rr.rb +27 -0
  172. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/lib/rspec/core/mocking/with_rspec.rb +27 -0
  173. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/lib/rspec/core/option_parser.rb +219 -0
  174. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/lib/rspec/core/pending.rb +113 -0
  175. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/lib/rspec/core/project_initializer.rb +86 -0
  176. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/lib/rspec/core/rake_task.rb +206 -0
  177. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/lib/rspec/core/reporter.rb +132 -0
  178. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/lib/rspec/core/ruby_project.rb +44 -0
  179. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/lib/rspec/core/runner.rb +87 -0
  180. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/lib/rspec/core/shared_context.rb +55 -0
  181. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/lib/rspec/core/shared_example_group.rb +185 -0
  182. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/lib/rspec/core/shared_example_group/collection.rb +43 -0
  183. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/lib/rspec/core/version.rb +8 -0
  184. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/lib/rspec/core/world.rb +127 -0
  185. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/autotest/discover_spec.rb +19 -0
  186. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/autotest/failed_results_re_spec.rb +45 -0
  187. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/autotest/rspec_spec.rb +133 -0
  188. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/command_line/order_spec.rb +204 -0
  189. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/rspec/core/backtrace_cleaner_spec.rb +68 -0
  190. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/rspec/core/command_line_spec.rb +108 -0
  191. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/rspec/core/command_line_spec_output.txt +0 -0
  192. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/rspec/core/configuration_options_spec.rb +417 -0
  193. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/rspec/core/configuration_spec.rb +1561 -0
  194. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/rspec/core/deprecation_spec.rb +46 -0
  195. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/rspec/core/deprecations_spec.rb +73 -0
  196. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/rspec/core/drb_command_line_spec.rb +102 -0
  197. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/rspec/core/drb_options_spec.rb +193 -0
  198. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/rspec/core/dsl_spec.rb +25 -0
  199. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/rspec/core/example_group_spec.rb +1187 -0
  200. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/rspec/core/example_spec.rb +465 -0
  201. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/rspec/core/filter_manager_spec.rb +246 -0
  202. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/rspec/core/formatters/base_formatter_spec.rb +108 -0
  203. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/rspec/core/formatters/base_text_formatter_spec.rb +494 -0
  204. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/rspec/core/formatters/deprecation_formatter_spec.rb +96 -0
  205. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/rspec/core/formatters/documentation_formatter_spec.rb +88 -0
  206. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/rspec/core/formatters/helpers_spec.rb +104 -0
  207. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/rspec/core/formatters/html_formatted-1.8.7-jruby.html +404 -0
  208. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/rspec/core/formatters/html_formatted-1.8.7-rbx.html +477 -0
  209. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/rspec/core/formatters/html_formatted-1.8.7.html +414 -0
  210. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/rspec/core/formatters/html_formatted-1.9.2.html +425 -0
  211. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/rspec/core/formatters/html_formatted-1.9.3-jruby.html +404 -0
  212. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/rspec/core/formatters/html_formatted-1.9.3-rbx.html +477 -0
  213. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/rspec/core/formatters/html_formatted-1.9.3.html +425 -0
  214. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/rspec/core/formatters/html_formatted-2.0.0.html +425 -0
  215. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/rspec/core/formatters/html_formatter_spec.rb +110 -0
  216. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/rspec/core/formatters/json_formatter_spec.rb +115 -0
  217. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/rspec/core/formatters/progress_formatter_spec.rb +30 -0
  218. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/rspec/core/formatters/snippet_extractor_spec.rb +26 -0
  219. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/rspec/core/formatters/text_mate_formatted-1.8.7-jruby.html +395 -0
  220. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/rspec/core/formatters/text_mate_formatted-1.8.7-rbx.html +477 -0
  221. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/rspec/core/formatters/text_mate_formatted-1.8.7.html +414 -0
  222. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/rspec/core/formatters/text_mate_formatted-1.9.2.html +425 -0
  223. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/rspec/core/formatters/text_mate_formatted-1.9.3-jruby.html +404 -0
  224. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/rspec/core/formatters/text_mate_formatted-1.9.3-rbx.html +477 -0
  225. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/rspec/core/formatters/text_mate_formatted-1.9.3.html +425 -0
  226. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/rspec/core/formatters/text_mate_formatted-2.0.0.html +425 -0
  227. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/rspec/core/formatters/text_mate_formatter_spec.rb +96 -0
  228. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/rspec/core/hooks_filtering_spec.rb +227 -0
  229. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/rspec/core/hooks_spec.rb +267 -0
  230. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/rspec/core/kernel_extensions_spec.rb +9 -0
  231. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/rspec/core/memoized_helpers_spec.rb +688 -0
  232. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/rspec/core/metadata_spec.rb +491 -0
  233. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/rspec/core/option_parser_spec.rb +242 -0
  234. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/rspec/core/pending_example_spec.rb +220 -0
  235. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/rspec/core/project_initializer_spec.rb +130 -0
  236. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/rspec/core/rake_task_spec.rb +181 -0
  237. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/rspec/core/reporter_spec.rb +141 -0
  238. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/rspec/core/resources/a_bar.rb +0 -0
  239. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/rspec/core/resources/a_foo.rb +0 -0
  240. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/rspec/core/resources/a_spec.rb +1 -0
  241. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/rspec/core/resources/custom_example_group_runner.rb +14 -0
  242. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/rspec/core/resources/formatter_specs.rb +60 -0
  243. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/rspec/core/resources/utf8_encoded.rb +8 -0
  244. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/rspec/core/rspec_matchers_spec.rb +45 -0
  245. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/rspec/core/ruby_project_spec.rb +26 -0
  246. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/rspec/core/runner_spec.rb +82 -0
  247. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/rspec/core/shared_context_spec.rb +114 -0
  248. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/rspec/core/shared_example_group/collection_spec.rb +70 -0
  249. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/rspec/core/shared_example_group_spec.rb +120 -0
  250. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/rspec/core/world_spec.rb +142 -0
  251. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/rspec/core_spec.rb +74 -0
  252. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/spec_helper.rb +132 -0
  253. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/support/config_options_helper.rb +15 -0
  254. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/support/helper_methods.rb +36 -0
  255. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/support/in_sub_process.rb +37 -0
  256. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/support/isolate_load_path_mutation.rb +6 -0
  257. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/support/isolated_directory.rb +10 -0
  258. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/support/isolated_home_directory.rb +16 -0
  259. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/support/matchers.rb +65 -0
  260. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/support/mathn_integration_support.rb +12 -0
  261. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/support/sandboxed_mock_space.rb +100 -0
  262. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/support/shared_example_groups.rb +41 -0
  263. data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/support/spec_files.rb +44 -0
  264. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/Changelog.md +419 -0
  265. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/License.txt +23 -0
  266. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/README.md +184 -0
  267. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/features/README.md +48 -0
  268. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/features/Upgrade.md +53 -0
  269. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/features/built_in_matchers/README.md +90 -0
  270. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/features/built_in_matchers/be.feature +175 -0
  271. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/features/built_in_matchers/be_within.feature +48 -0
  272. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/features/built_in_matchers/cover.feature +47 -0
  273. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/features/built_in_matchers/end_with.feature +48 -0
  274. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/features/built_in_matchers/equality.feature +139 -0
  275. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/features/built_in_matchers/exist.feature +45 -0
  276. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/features/built_in_matchers/expect_change.feature +59 -0
  277. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/features/built_in_matchers/expect_error.feature +144 -0
  278. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/features/built_in_matchers/have.feature +109 -0
  279. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/features/built_in_matchers/include.feature +174 -0
  280. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/features/built_in_matchers/match.feature +52 -0
  281. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/features/built_in_matchers/operators.feature +227 -0
  282. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/features/built_in_matchers/predicates.feature +137 -0
  283. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/features/built_in_matchers/respond_to.feature +84 -0
  284. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/features/built_in_matchers/satisfy.feature +33 -0
  285. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/features/built_in_matchers/start_with.feature +48 -0
  286. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/features/built_in_matchers/throw_symbol.feature +91 -0
  287. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/features/built_in_matchers/types.feature +116 -0
  288. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/features/built_in_matchers/yield.feature +161 -0
  289. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/features/custom_matchers/access_running_example.feature +53 -0
  290. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/features/custom_matchers/define_diffable_matcher.feature +27 -0
  291. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/features/custom_matchers/define_matcher.feature +368 -0
  292. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/features/custom_matchers/define_matcher_outside_rspec.feature +38 -0
  293. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/features/custom_matchers/define_matcher_with_fluent_interface.feature +24 -0
  294. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/features/customized_message.feature +22 -0
  295. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/features/diffing.feature +85 -0
  296. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/features/implicit_docstrings.feature +52 -0
  297. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/features/step_definitions/additional_cli_steps.rb +22 -0
  298. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/features/support/env.rb +14 -0
  299. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/features/support/rubinius.rb +6 -0
  300. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/features/syntax_configuration.feature +71 -0
  301. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/features/test_frameworks/test_unit.feature +44 -0
  302. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/lib/rspec-expectations.rb +1 -0
  303. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/lib/rspec/expectations.rb +73 -0
  304. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/lib/rspec/expectations/deprecation.rb +31 -0
  305. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/lib/rspec/expectations/differ.rb +154 -0
  306. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/lib/rspec/expectations/errors.rb +9 -0
  307. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/lib/rspec/expectations/expectation_target.rb +87 -0
  308. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/lib/rspec/expectations/extensions.rb +2 -0
  309. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/lib/rspec/expectations/extensions/array.rb +9 -0
  310. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/lib/rspec/expectations/extensions/object.rb +29 -0
  311. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/lib/rspec/expectations/fail_with.rb +79 -0
  312. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/lib/rspec/expectations/handler.rb +68 -0
  313. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/lib/rspec/expectations/syntax.rb +164 -0
  314. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/lib/rspec/expectations/version.rb +9 -0
  315. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/lib/rspec/matchers.rb +694 -0
  316. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/lib/rspec/matchers/be_close.rb +9 -0
  317. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/lib/rspec/matchers/built_in.rb +39 -0
  318. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/lib/rspec/matchers/built_in/base_matcher.rb +68 -0
  319. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/lib/rspec/matchers/built_in/be.rb +197 -0
  320. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/lib/rspec/matchers/built_in/be_instance_of.rb +15 -0
  321. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/lib/rspec/matchers/built_in/be_kind_of.rb +11 -0
  322. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/lib/rspec/matchers/built_in/be_within.rb +55 -0
  323. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/lib/rspec/matchers/built_in/change.rb +141 -0
  324. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/lib/rspec/matchers/built_in/cover.rb +21 -0
  325. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/lib/rspec/matchers/built_in/eq.rb +22 -0
  326. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/lib/rspec/matchers/built_in/eql.rb +23 -0
  327. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/lib/rspec/matchers/built_in/equal.rb +48 -0
  328. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/lib/rspec/matchers/built_in/exist.rb +26 -0
  329. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/lib/rspec/matchers/built_in/has.rb +48 -0
  330. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/lib/rspec/matchers/built_in/have.rb +124 -0
  331. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/lib/rspec/matchers/built_in/include.rb +61 -0
  332. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/lib/rspec/matchers/built_in/match.rb +17 -0
  333. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/lib/rspec/matchers/built_in/match_array.rb +51 -0
  334. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/lib/rspec/matchers/built_in/raise_error.rb +127 -0
  335. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/lib/rspec/matchers/built_in/respond_to.rb +74 -0
  336. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/lib/rspec/matchers/built_in/satisfy.rb +30 -0
  337. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/lib/rspec/matchers/built_in/start_and_end_with.rb +48 -0
  338. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/lib/rspec/matchers/built_in/throw_symbol.rb +94 -0
  339. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/lib/rspec/matchers/built_in/yield.rb +296 -0
  340. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/lib/rspec/matchers/compatibility.rb +14 -0
  341. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/lib/rspec/matchers/configuration.rb +108 -0
  342. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/lib/rspec/matchers/dsl.rb +24 -0
  343. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/lib/rspec/matchers/extensions/instance_eval_with_args.rb +39 -0
  344. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/lib/rspec/matchers/generated_descriptions.rb +35 -0
  345. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/lib/rspec/matchers/matcher.rb +300 -0
  346. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/lib/rspec/matchers/method_missing.rb +12 -0
  347. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/lib/rspec/matchers/operator_matcher.rb +113 -0
  348. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/lib/rspec/matchers/pretty.rb +70 -0
  349. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/lib/rspec/matchers/test_unit_integration.rb +11 -0
  350. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/spec/rspec/expectations/differ_spec.rb +229 -0
  351. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/spec/rspec/expectations/expectation_target_spec.rb +82 -0
  352. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/spec/rspec/expectations/extensions/kernel_spec.rb +67 -0
  353. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/spec/rspec/expectations/fail_with_spec.rb +114 -0
  354. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/spec/rspec/expectations/handler_spec.rb +227 -0
  355. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/spec/rspec/expectations/syntax_spec.rb +139 -0
  356. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/spec/rspec/expectations_spec.rb +50 -0
  357. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/spec/rspec/matchers/base_matcher_spec.rb +62 -0
  358. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/spec/rspec/matchers/be_close_spec.rb +22 -0
  359. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/spec/rspec/matchers/be_instance_of_spec.rb +63 -0
  360. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/spec/rspec/matchers/be_kind_of_spec.rb +41 -0
  361. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/spec/rspec/matchers/be_spec.rb +522 -0
  362. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/spec/rspec/matchers/be_within_spec.rb +137 -0
  363. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/spec/rspec/matchers/change_spec.rb +567 -0
  364. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/spec/rspec/matchers/configuration_spec.rb +206 -0
  365. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/spec/rspec/matchers/cover_spec.rb +69 -0
  366. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/spec/rspec/matchers/description_generation_spec.rb +190 -0
  367. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/spec/rspec/matchers/dsl_spec.rb +57 -0
  368. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/spec/rspec/matchers/eq_spec.rb +60 -0
  369. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/spec/rspec/matchers/eql_spec.rb +41 -0
  370. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/spec/rspec/matchers/equal_spec.rb +78 -0
  371. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/spec/rspec/matchers/exist_spec.rb +124 -0
  372. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/spec/rspec/matchers/has_spec.rb +122 -0
  373. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/spec/rspec/matchers/have_spec.rb +455 -0
  374. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/spec/rspec/matchers/include_matcher_integration_spec.rb +30 -0
  375. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/spec/rspec/matchers/include_spec.rb +531 -0
  376. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/spec/rspec/matchers/match_array_spec.rb +194 -0
  377. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/spec/rspec/matchers/match_spec.rb +74 -0
  378. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/spec/rspec/matchers/matcher_spec.rb +471 -0
  379. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/spec/rspec/matchers/matchers_spec.rb +37 -0
  380. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/spec/rspec/matchers/method_missing_spec.rb +28 -0
  381. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/spec/rspec/matchers/operator_matcher_spec.rb +252 -0
  382. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/spec/rspec/matchers/raise_error_spec.rb +535 -0
  383. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/spec/rspec/matchers/respond_to_spec.rb +292 -0
  384. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/spec/rspec/matchers/satisfy_spec.rb +44 -0
  385. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/spec/rspec/matchers/start_with_end_with_spec.rb +186 -0
  386. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/spec/rspec/matchers/throw_symbol_spec.rb +116 -0
  387. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/spec/rspec/matchers/yield_spec.rb +514 -0
  388. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/spec/spec_helper.rb +54 -0
  389. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/spec/support/classes.rb +56 -0
  390. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/spec/support/in_sub_process.rb +38 -0
  391. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/spec/support/matchers.rb +22 -0
  392. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/spec/support/ruby_version.rb +10 -0
  393. data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/spec/support/shared_examples.rb +13 -0
  394. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/Changelog.md +420 -0
  395. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/License.txt +23 -0
  396. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/README.md +315 -0
  397. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/features/README.md +67 -0
  398. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/features/Scope.md +17 -0
  399. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/features/Upgrade.md +22 -0
  400. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/features/argument_matchers/README.md +27 -0
  401. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/features/argument_matchers/explicit.feature +59 -0
  402. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/features/argument_matchers/general_matchers.feature +85 -0
  403. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/features/argument_matchers/type_matchers.feature +26 -0
  404. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/features/message_expectations/README.md +73 -0
  405. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/features/message_expectations/allow_any_instance_of.feature +26 -0
  406. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/features/message_expectations/any_instance.feature +21 -0
  407. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/features/message_expectations/block_local_expectations.feature.pending +55 -0
  408. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/features/message_expectations/call_original.feature +24 -0
  409. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/features/message_expectations/expect_any_instance_of.feature +27 -0
  410. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/features/message_expectations/expect_message_using_expect.feature +107 -0
  411. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/features/message_expectations/expect_message_using_should_receive.feature +118 -0
  412. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/features/message_expectations/receive_counts.feature +209 -0
  413. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/features/message_expectations/warn_when_expectation_is_set_on_nil.feature +50 -0
  414. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/features/method_stubs/README.md +73 -0
  415. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/features/method_stubs/any_instance.feature +136 -0
  416. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/features/method_stubs/as_null_object.feature +40 -0
  417. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/features/method_stubs/simple_return_value_with_allow.feature +44 -0
  418. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/features/method_stubs/simple_return_value_with_stub.feature +64 -0
  419. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/features/method_stubs/stub_chain.feature +51 -0
  420. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/features/method_stubs/stub_implementation.feature +48 -0
  421. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/features/method_stubs/to_ary.feature +51 -0
  422. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/features/mutating_constants/README.md +82 -0
  423. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/features/mutating_constants/hiding_defined_constant.feature +64 -0
  424. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/features/mutating_constants/stub_defined_constant.feature +79 -0
  425. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/features/mutating_constants/stub_undefined_constant.feature +50 -0
  426. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/features/outside_rspec/configuration.feature +62 -0
  427. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/features/outside_rspec/standalone.feature +33 -0
  428. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/features/spies/spy_partial_mock_method.feature +34 -0
  429. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/features/spies/spy_pure_mock_method.feature +76 -0
  430. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/features/spies/spy_unstubbed_method.feature +18 -0
  431. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/features/step_definitions/additional_cli_steps.rb +11 -0
  432. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/features/support/env.rb +13 -0
  433. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/features/support/rubinius.rb +6 -0
  434. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/features/test_frameworks/test_unit.feature +43 -0
  435. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/lib/rspec/mocks.rb +96 -0
  436. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/lib/rspec/mocks/any_instance/chain.rb +94 -0
  437. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/lib/rspec/mocks/any_instance/expectation_chain.rb +42 -0
  438. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/lib/rspec/mocks/any_instance/message_chains.rb +60 -0
  439. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/lib/rspec/mocks/any_instance/recorder.rb +211 -0
  440. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/lib/rspec/mocks/any_instance/stub_chain.rb +40 -0
  441. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/lib/rspec/mocks/any_instance/stub_chain_chain.rb +23 -0
  442. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/lib/rspec/mocks/argument_list_matcher.rb +97 -0
  443. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/lib/rspec/mocks/argument_matchers.rb +238 -0
  444. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/lib/rspec/mocks/configuration.rb +55 -0
  445. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/lib/rspec/mocks/deprecation.rb +18 -0
  446. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/lib/rspec/mocks/error_generator.rb +179 -0
  447. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/lib/rspec/mocks/errors.rb +12 -0
  448. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/lib/rspec/mocks/example_methods.rb +156 -0
  449. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/lib/rspec/mocks/extensions/instance_exec.rb +34 -0
  450. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/lib/rspec/mocks/extensions/marshal.rb +17 -0
  451. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/lib/rspec/mocks/framework.rb +34 -0
  452. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/lib/rspec/mocks/instance_method_stasher.rb +94 -0
  453. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/lib/rspec/mocks/matchers/have_received.rb +93 -0
  454. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/lib/rspec/mocks/matchers/receive.rb +97 -0
  455. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/lib/rspec/mocks/message_expectation.rb +583 -0
  456. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/lib/rspec/mocks/method_double.rb +271 -0
  457. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/lib/rspec/mocks/mock.rb +7 -0
  458. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/lib/rspec/mocks/mutate_const.rb +403 -0
  459. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/lib/rspec/mocks/order_group.rb +40 -0
  460. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/lib/rspec/mocks/proxy.rb +223 -0
  461. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/lib/rspec/mocks/proxy_for_nil.rb +37 -0
  462. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/lib/rspec/mocks/space.rb +91 -0
  463. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/lib/rspec/mocks/standalone.rb +3 -0
  464. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/lib/rspec/mocks/stub_chain.rb +51 -0
  465. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/lib/rspec/mocks/syntax.rb +349 -0
  466. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/lib/rspec/mocks/targets.rb +69 -0
  467. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/lib/rspec/mocks/test_double.rb +135 -0
  468. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/lib/rspec/mocks/version.rb +7 -0
  469. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/lib/spec/mocks.rb +4 -0
  470. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/spec/rspec/mocks/and_call_original_spec.rb +243 -0
  471. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/spec/rspec/mocks/and_yield_spec.rb +127 -0
  472. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/spec/rspec/mocks/any_instance/message_chains_spec.rb +41 -0
  473. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/spec/rspec/mocks/any_instance_spec.rb +987 -0
  474. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/spec/rspec/mocks/any_number_of_times_spec.rb +36 -0
  475. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/spec/rspec/mocks/argument_expectation_spec.rb +32 -0
  476. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/spec/rspec/mocks/at_least_spec.rb +151 -0
  477. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/spec/rspec/mocks/at_most_spec.rb +90 -0
  478. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/spec/rspec/mocks/block_return_value_spec.rb +88 -0
  479. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/spec/rspec/mocks/bug_report_10260_spec.rb +8 -0
  480. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/spec/rspec/mocks/bug_report_10263_spec.rb +27 -0
  481. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/spec/rspec/mocks/bug_report_11545_spec.rb +32 -0
  482. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/spec/rspec/mocks/bug_report_496_spec.rb +17 -0
  483. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/spec/rspec/mocks/bug_report_600_spec.rb +22 -0
  484. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/spec/rspec/mocks/bug_report_7611_spec.rb +16 -0
  485. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/spec/rspec/mocks/bug_report_8165_spec.rb +31 -0
  486. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/spec/rspec/mocks/bug_report_830_spec.rb +21 -0
  487. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/spec/rspec/mocks/bug_report_957_spec.rb +22 -0
  488. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/spec/rspec/mocks/combining_implementation_instructions_spec.rb +205 -0
  489. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/spec/rspec/mocks/configuration_spec.rb +150 -0
  490. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/spec/rspec/mocks/double_spec.rb +24 -0
  491. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/spec/rspec/mocks/extensions/marshal_spec.rb +54 -0
  492. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/spec/rspec/mocks/failing_argument_matchers_spec.rb +110 -0
  493. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/spec/rspec/mocks/hash_excluding_matcher_spec.rb +67 -0
  494. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/spec/rspec/mocks/hash_including_matcher_spec.rb +90 -0
  495. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/spec/rspec/mocks/instance_method_stasher_spec.rb +58 -0
  496. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/spec/rspec/mocks/matchers/have_received_spec.rb +266 -0
  497. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/spec/rspec/mocks/matchers/receive_spec.rb +336 -0
  498. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/spec/rspec/mocks/methods_spec.rb +27 -0
  499. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/spec/rspec/mocks/mock_ordering_spec.rb +103 -0
  500. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/spec/rspec/mocks/mock_space_spec.rb +113 -0
  501. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/spec/rspec/mocks/mock_spec.rb +798 -0
  502. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/spec/rspec/mocks/multiple_return_value_spec.rb +132 -0
  503. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/spec/rspec/mocks/mutate_const_spec.rb +501 -0
  504. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/spec/rspec/mocks/nil_expectation_warning_spec.rb +68 -0
  505. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/spec/rspec/mocks/null_object_mock_spec.rb +123 -0
  506. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/spec/rspec/mocks/once_counts_spec.rb +52 -0
  507. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/spec/rspec/mocks/options_hash_spec.rb +35 -0
  508. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/spec/rspec/mocks/partial_mock_spec.rb +205 -0
  509. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/spec/rspec/mocks/partial_mock_using_mocks_directly_spec.rb +95 -0
  510. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/spec/rspec/mocks/passing_argument_matchers_spec.rb +142 -0
  511. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/spec/rspec/mocks/precise_counts_spec.rb +68 -0
  512. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/spec/rspec/mocks/record_messages_spec.rb +26 -0
  513. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/spec/rspec/mocks/serialization_spec.rb +89 -0
  514. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/spec/rspec/mocks/space_spec.rb +32 -0
  515. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/spec/rspec/mocks/stash_spec.rb +46 -0
  516. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/spec/rspec/mocks/stub_chain_spec.rb +154 -0
  517. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/spec/rspec/mocks/stub_implementation_spec.rb +81 -0
  518. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/spec/rspec/mocks/stub_spec.rb +353 -0
  519. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/spec/rspec/mocks/stubbed_message_expectations_spec.rb +58 -0
  520. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/spec/rspec/mocks/syntax_agnostic_message_matchers_spec.rb +81 -0
  521. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/spec/rspec/mocks/test_double_spec.rb +67 -0
  522. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/spec/rspec/mocks/to_ary_spec.rb +54 -0
  523. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/spec/rspec/mocks/twice_counts_spec.rb +66 -0
  524. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/spec/rspec/mocks_spec.rb +65 -0
  525. data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/spec/spec_helper.rb +60 -0
  526. data/vendor/bundle/ruby/2.0.0/specifications/diff-lcs-1.2.5.gemspec +65 -0
  527. data/vendor/bundle/ruby/2.0.0/specifications/rspec-2.14.1.gemspec +39 -0
  528. data/vendor/bundle/ruby/2.0.0/specifications/rspec-core-2.14.7.gemspec +58 -0
  529. data/vendor/bundle/ruby/2.0.0/specifications/rspec-expectations-2.14.4.gemspec +40 -0
  530. data/vendor/bundle/ruby/2.0.0/specifications/rspec-mocks-2.14.4.gemspec +37 -0
  531. metadata +528 -7
@@ -0,0 +1,46 @@
1
+ module RSpec
2
+ module Core
3
+ class BacktraceCleaner
4
+
5
+ DEFAULT_EXCLUSION_PATTERNS = [
6
+ /\/lib\d*\/ruby\//,
7
+ /org\/jruby\//,
8
+ /bin\//,
9
+ %r|/gems/|,
10
+ /spec\/spec_helper\.rb/,
11
+ /lib\/rspec\/(core|expectations|matchers|mocks)/
12
+ ]
13
+
14
+ attr_accessor :inclusion_patterns
15
+ attr_accessor :exclusion_patterns
16
+
17
+ def initialize(inclusion_patterns=nil, exclusion_patterns=DEFAULT_EXCLUSION_PATTERNS.dup)
18
+ @exclusion_patterns = exclusion_patterns
19
+
20
+ if inclusion_patterns.nil?
21
+ @inclusion_patterns = (matches_an_exclusion_pattern? Dir.getwd) ? [Regexp.new(Dir.getwd)] : []
22
+ else
23
+ @inclusion_patterns = inclusion_patterns
24
+ end
25
+ end
26
+
27
+ def exclude?(line)
28
+ @inclusion_patterns.none? {|p| line =~ p} and matches_an_exclusion_pattern?(line)
29
+ end
30
+
31
+ def full_backtrace=(true_or_false)
32
+ @exclusion_patterns = true_or_false ? [] : DEFAULT_EXCLUSION_PATTERNS.dup
33
+ end
34
+
35
+ def full_backtrace?
36
+ @exclusion_patterns.empty?
37
+ end
38
+
39
+ private
40
+
41
+ def matches_an_exclusion_pattern?(line)
42
+ @exclusion_patterns.any? {|p| line =~ p}
43
+ end
44
+ end
45
+ end
46
+ end
@@ -0,0 +1,55 @@
1
+ module RSpec
2
+ module Core
3
+ # @private
4
+ module ConstMissing
5
+ # Used to print deprecation warnings for Rspec and Spec constants (use
6
+ # RSpec instead)
7
+ def const_missing(name)
8
+ case name
9
+ when :Rspec, :Spec
10
+ RSpec.deprecate(name.to_s, :replacement => "RSpec")
11
+ RSpec
12
+ else
13
+ begin
14
+ super
15
+ rescue Exception => e
16
+ e.backtrace.reject! {|l| l =~ Regexp.compile(__FILE__) }
17
+ raise e
18
+ end
19
+ end
20
+ end
21
+ end
22
+ end
23
+
24
+ module Runner
25
+ # @deprecated use RSpec.configure instead.
26
+ def self.configure(&block)
27
+ RSpec.deprecate("Spec::Runner.configure", :replacement => "RSpec.configure")
28
+ RSpec.configure(&block)
29
+ end
30
+ end
31
+
32
+ # @private
33
+ module Rake
34
+ # Used to print deprecation warnings for Rake::SpecTask constant (use
35
+ # RSpec::Core::RakeTask instead)
36
+ def self.const_missing(name)
37
+ case name
38
+ when :SpecTask
39
+ RSpec.deprecate("Spec::Rake::SpecTask", :replacement => "RSpec::Core::RakeTask")
40
+ require 'rspec/core/rake_task'
41
+ RSpec::Core::RakeTask
42
+ else
43
+ begin
44
+ super
45
+ rescue Exception => e
46
+ e.backtrace.reject! {|l| l =~ Regexp.compile(__FILE__) }
47
+ raise e
48
+ end
49
+ end
50
+ end
51
+
52
+ end
53
+ end
54
+
55
+ Object.extend(RSpec::Core::ConstMissing)
@@ -0,0 +1,36 @@
1
+ module RSpec
2
+ module Core
3
+ class CommandLine
4
+ def initialize(options, configuration=RSpec::configuration, world=RSpec::world)
5
+ if Array === options
6
+ options = ConfigurationOptions.new(options)
7
+ options.parse_options
8
+ end
9
+ @options = options
10
+ @configuration = configuration
11
+ @world = world
12
+ end
13
+
14
+ # Configures and runs a suite
15
+ #
16
+ # @param [IO] err
17
+ # @param [IO] out
18
+ def run(err, out)
19
+ @configuration.error_stream = err
20
+ @configuration.output_stream ||= out
21
+ @options.configure(@configuration)
22
+ @configuration.load_spec_files
23
+ @world.announce_filters
24
+
25
+ @configuration.reporter.report(@world.example_count, @configuration.randomize? ? @configuration.seed : nil) do |reporter|
26
+ begin
27
+ @configuration.run_hook(:before, :suite)
28
+ @world.example_groups.ordered.map {|g| g.run(reporter)}.all? ? 0 : @configuration.failure_exit_code
29
+ ensure
30
+ @configuration.run_hook(:after, :suite)
31
+ end
32
+ end
33
+ end
34
+ end
35
+ end
36
+ end
@@ -0,0 +1,1174 @@
1
+ require 'fileutils'
2
+ require 'rspec/core/backtrace_cleaner'
3
+ require 'rspec/core/ruby_project'
4
+ require 'rspec/core/formatters/deprecation_formatter.rb'
5
+
6
+ module RSpec
7
+ module Core
8
+ # Stores runtime configuration information.
9
+ #
10
+ # Configuration options are loaded from `~/.rspec`, `.rspec`,
11
+ # `.rspec-local`, command line switches, and the `SPEC_OPTS` environment
12
+ # variable (listed in lowest to highest precedence; for example, an option
13
+ # in `~/.rspec` can be overridden by an option in `.rspec-local`).
14
+ #
15
+ # @example Standard settings
16
+ # RSpec.configure do |c|
17
+ # c.drb = true
18
+ # c.drb_port = 1234
19
+ # c.default_path = 'behavior'
20
+ # end
21
+ #
22
+ # @example Hooks
23
+ # RSpec.configure do |c|
24
+ # c.before(:suite) { establish_connection }
25
+ # c.before(:each) { log_in_as :authorized }
26
+ # c.around(:each) { |ex| Database.transaction(&ex) }
27
+ # end
28
+ #
29
+ # @see RSpec.configure
30
+ # @see Hooks
31
+ class Configuration
32
+ include RSpec::Core::Hooks
33
+
34
+ class MustBeConfiguredBeforeExampleGroupsError < StandardError; end
35
+
36
+ # @private
37
+ def self.define_reader(name)
38
+ define_method(name) do
39
+ variable = instance_variable_defined?("@#{name}") ? instance_variable_get("@#{name}") : nil
40
+ value_for(name, variable)
41
+ end
42
+ end
43
+
44
+ # @private
45
+ def self.deprecate_alias_key
46
+ RSpec.deprecate("add_setting with :alias option", :replacement => ":alias_with")
47
+ end
48
+
49
+ # @private
50
+ def self.define_aliases(name, alias_name)
51
+ alias_method alias_name, name
52
+ alias_method "#{alias_name}=", "#{name}="
53
+ define_predicate_for alias_name
54
+ end
55
+
56
+ # @private
57
+ def self.define_predicate_for(*names)
58
+ names.each {|name| alias_method "#{name}?", name}
59
+ end
60
+
61
+ # @private
62
+ #
63
+ # Invoked by the `add_setting` instance method. Use that method on a
64
+ # `Configuration` instance rather than this class method.
65
+ def self.add_setting(name, opts={})
66
+ raise "Use the instance add_setting method if you want to set a default" if opts.has_key?(:default)
67
+ if opts[:alias]
68
+ deprecate_alias_key
69
+ define_aliases(opts[:alias], name)
70
+ else
71
+ attr_writer name
72
+ define_reader name
73
+ define_predicate_for name
74
+ end
75
+ [opts[:alias_with]].flatten.compact.each do |alias_name|
76
+ define_aliases(name, alias_name)
77
+ end
78
+ end
79
+
80
+ # @macro [attach] add_setting
81
+ # @attribute $1
82
+
83
+ # Path to use if no path is provided to the `rspec` command (default:
84
+ # `"spec"`). Allows you to just type `rspec` instead of `rspec spec` to
85
+ # run all the examples in the `spec` directory.
86
+ add_setting :default_path
87
+
88
+ # Run examples over DRb (default: `false`). RSpec doesn't supply the DRb
89
+ # server, but you can use tools like spork.
90
+ add_setting :drb
91
+
92
+ # The drb_port (default: nil).
93
+ add_setting :drb_port
94
+
95
+ # Default: `$stderr`.
96
+ add_setting :error_stream
97
+
98
+ # Default: `$stderr`.
99
+ add_setting :deprecation_stream
100
+
101
+ # Clean up and exit after the first failure (default: `false`).
102
+ add_setting :fail_fast
103
+
104
+ # The exit code to return if there are any failures (default: 1).
105
+ add_setting :failure_exit_code
106
+
107
+ # Determines the order in which examples are run (default: OS standard
108
+ # load order for files, declaration order for groups and examples).
109
+ define_reader :order
110
+
111
+ # Indicates files configured to be required
112
+ define_reader :requires
113
+
114
+ # Returns dirs that have been prepended to the load path by #lib=
115
+ define_reader :libs
116
+
117
+ # Default: `$stdout`.
118
+ # Also known as `output` and `out`
119
+ add_setting :output_stream, :alias_with => [:output, :out]
120
+
121
+ # Load files matching this pattern (default: `'**/*_spec.rb'`)
122
+ add_setting :pattern, :alias_with => :filename_pattern
123
+
124
+ # Report the times for the slowest examples (default: `false`).
125
+ # Use this to specify the number of examples to include in the profile.
126
+ add_setting :profile_examples
127
+
128
+ # Run all examples if none match the configured filters (default: `false`).
129
+ add_setting :run_all_when_everything_filtered
130
+
131
+ # Allow user to configure their own success/pending/failure colors
132
+ # @param [Symbol] should be one of the following: [:black, :white, :red, :green, :yellow, :blue, :magenta, :cyan]
133
+ add_setting :success_color
134
+ add_setting :pending_color
135
+ add_setting :failure_color
136
+ add_setting :default_color
137
+ add_setting :fixed_color
138
+ add_setting :detail_color
139
+
140
+ # Seed for random ordering (default: generated randomly each run).
141
+ #
142
+ # When you run specs with `--order random`, RSpec generates a random seed
143
+ # for the randomization and prints it to the `output_stream` (assuming
144
+ # you're using RSpec's built-in formatters). If you discover an ordering
145
+ # dependency (i.e. examples fail intermittently depending on order), set
146
+ # this (on Configuration or on the command line with `--seed`) to run
147
+ # using the same seed while you debug the issue.
148
+ #
149
+ # We recommend, actually, that you use the command line approach so you
150
+ # don't accidentally leave the seed encoded.
151
+ define_reader :seed
152
+
153
+ # When a block passed to pending fails (as expected), display the failure
154
+ # without reporting it as a failure (default: false).
155
+ add_setting :show_failures_in_pending_blocks
156
+
157
+ # Convert symbols to hashes with the symbol as a key with a value of
158
+ # `true` (default: false).
159
+ #
160
+ # This allows you to tag a group or example like this:
161
+ #
162
+ # describe "something slow", :slow do
163
+ # # ...
164
+ # end
165
+ #
166
+ # ... instead of having to type:
167
+ #
168
+ # describe "something slow", :slow => true do
169
+ # # ...
170
+ # end
171
+ add_setting :treat_symbols_as_metadata_keys_with_true_values
172
+
173
+ # @private
174
+ add_setting :tty
175
+ # @private
176
+ add_setting :include_or_extend_modules
177
+ # @private
178
+ add_setting :files_to_run
179
+ # @private
180
+ add_setting :expecting_with_rspec
181
+ # @private
182
+ attr_accessor :filter_manager
183
+
184
+ attr_reader :backtrace_cleaner
185
+
186
+ def initialize
187
+ @expectation_frameworks = []
188
+ @include_or_extend_modules = []
189
+ @mock_framework = nil
190
+ @files_to_run = []
191
+ @formatters = []
192
+ @color = false
193
+ @pattern = '**/*_spec.rb'
194
+ @failure_exit_code = 1
195
+
196
+ @backtrace_cleaner = BacktraceCleaner.new
197
+
198
+ @default_path = 'spec'
199
+ @deprecation_stream = $stderr
200
+ @filter_manager = FilterManager.new
201
+ @preferred_options = {}
202
+ @seed = srand % 0xFFFF
203
+ @failure_color = :red
204
+ @success_color = :green
205
+ @pending_color = :yellow
206
+ @default_color = :white
207
+ @fixed_color = :blue
208
+ @detail_color = :cyan
209
+ @profile_examples = false
210
+ @requires = []
211
+ @libs = []
212
+ end
213
+
214
+ # @private
215
+ #
216
+ # Used to set higher priority option values from the command line.
217
+ def force(hash)
218
+ if hash.has_key?(:seed)
219
+ hash[:order], hash[:seed] = order_and_seed_from_seed(hash[:seed])
220
+ elsif hash.has_key?(:order)
221
+ set_order_and_seed(hash)
222
+ end
223
+ @preferred_options.merge!(hash)
224
+ self.warnings = value_for :warnings, nil
225
+ end
226
+
227
+ # @private
228
+ def reset
229
+ @reporter = nil
230
+ @formatters.clear
231
+ end
232
+
233
+ # @overload add_setting(name)
234
+ # @overload add_setting(name, opts)
235
+ # @option opts [Symbol] :default
236
+ #
237
+ # set a default value for the generated getter and predicate methods:
238
+ #
239
+ # add_setting(:foo, :default => "default value")
240
+ #
241
+ # @option opts [Symbol] :alias_with
242
+ #
243
+ # Use `:alias_with` to alias the setter, getter, and predicate to another
244
+ # name, or names:
245
+ #
246
+ # add_setting(:foo, :alias_with => :bar)
247
+ # add_setting(:foo, :alias_with => [:bar, :baz])
248
+ #
249
+ # Adds a custom setting to the RSpec.configuration object.
250
+ #
251
+ # RSpec.configuration.add_setting :foo
252
+ #
253
+ # Used internally and by extension frameworks like rspec-rails, so they
254
+ # can add config settings that are domain specific. For example:
255
+ #
256
+ # RSpec.configure do |c|
257
+ # c.add_setting :use_transactional_fixtures,
258
+ # :default => true,
259
+ # :alias_with => :use_transactional_examples
260
+ # end
261
+ #
262
+ # `add_setting` creates three methods on the configuration object, a
263
+ # setter, a getter, and a predicate:
264
+ #
265
+ # RSpec.configuration.foo=(value)
266
+ # RSpec.configuration.foo
267
+ # RSpec.configuration.foo? # returns true if foo returns anything but nil or false
268
+ def add_setting(name, opts={})
269
+ default = opts.delete(:default)
270
+ (class << self; self; end).class_eval do
271
+ add_setting(name, opts)
272
+ end
273
+ send("#{name}=", default) if default
274
+ end
275
+
276
+ # Returns the configured mock framework adapter module
277
+ def mock_framework
278
+ mock_with :rspec unless @mock_framework
279
+ @mock_framework
280
+ end
281
+
282
+ # Delegates to mock_framework=(framework)
283
+ def mock_framework=(framework)
284
+ mock_with framework
285
+ end
286
+
287
+ # The patterns to discard from backtraces. Deprecated, use
288
+ # Configuration#backtrace_exclusion_patterns instead
289
+ #
290
+ # Defaults to RSpec::Core::BacktraceCleaner::DEFAULT_EXCLUSION_PATTERNS
291
+ #
292
+ # One can replace the list by using the setter or modify it through the
293
+ # getter
294
+ #
295
+ # To override this behaviour and display a full backtrace, use
296
+ # `--backtrace`on the command line, in a `.rspec` file, or in the
297
+ # `rspec_options` attribute of RSpec's rake task.
298
+ def backtrace_clean_patterns
299
+ RSpec.deprecate("RSpec::Core::Configuration#backtrace_clean_patterns",
300
+ :replacement => "RSpec::Core::Configuration#backtrace_exclusion_patterns")
301
+ @backtrace_cleaner.exclusion_patterns
302
+ end
303
+
304
+ def backtrace_clean_patterns=(patterns)
305
+ RSpec.deprecate("RSpec::Core::Configuration#backtrace_clean_patterns",
306
+ :replacement => "RSpec::Core::Configuration#backtrace_exclusion_patterns")
307
+ @backtrace_cleaner.exclusion_patterns = patterns
308
+ end
309
+
310
+ # The patterns to always include to backtraces.
311
+ #
312
+ # Defaults to [Regexp.new Dir.getwd] if the current working directory
313
+ # matches any of the exclusion patterns. Otherwise it defaults to empty.
314
+ #
315
+ # One can replace the list by using the setter or modify it through the
316
+ # getter
317
+ def backtrace_inclusion_patterns
318
+ @backtrace_cleaner.inclusion_patterns
319
+ end
320
+
321
+ def backtrace_inclusion_patterns=(patterns)
322
+ @backtrace_cleaner.inclusion_patterns = patterns
323
+ end
324
+
325
+ # The patterns to discard from backtraces.
326
+ #
327
+ # Defaults to RSpec::Core::BacktraceCleaner::DEFAULT_EXCLUSION_PATTERNS
328
+ #
329
+ # One can replace the list by using the setter or modify it through the
330
+ # getter
331
+ #
332
+ # To override this behaviour and display a full backtrace, use
333
+ # `--backtrace`on the command line, in a `.rspec` file, or in the
334
+ # `rspec_options` attribute of RSpec's rake task.
335
+ def backtrace_exclusion_patterns
336
+ @backtrace_cleaner.exclusion_patterns
337
+ end
338
+
339
+ def backtrace_exclusion_patterns=(patterns)
340
+ @backtrace_cleaner.exclusion_patterns = patterns
341
+ end
342
+
343
+ # Sets the mock framework adapter module.
344
+ #
345
+ # `framework` can be a Symbol or a Module.
346
+ #
347
+ # Given any of `:rspec`, `:mocha`, `:flexmock`, or `:rr`, configures the
348
+ # named framework.
349
+ #
350
+ # Given `:nothing`, configures no framework. Use this if you don't use
351
+ # any mocking framework to save a little bit of overhead.
352
+ #
353
+ # Given a Module, includes that module in every example group. The module
354
+ # should adhere to RSpec's mock framework adapter API:
355
+ #
356
+ # setup_mocks_for_rspec
357
+ # - called before each example
358
+ #
359
+ # verify_mocks_for_rspec
360
+ # - called after each example. Framework should raise an exception
361
+ # when expectations fail
362
+ #
363
+ # teardown_mocks_for_rspec
364
+ # - called after verify_mocks_for_rspec (even if there are errors)
365
+ #
366
+ # If the module responds to `configuration` and `mock_with` receives a block,
367
+ # it will yield the configuration object to the block e.g.
368
+ #
369
+ # config.mock_with OtherMockFrameworkAdapter do |mod_config|
370
+ # mod_config.custom_setting = true
371
+ # end
372
+ def mock_with(framework)
373
+ framework_module = case framework
374
+ when Module
375
+ framework
376
+ when String, Symbol
377
+ require case framework.to_s
378
+ when /rspec/i
379
+ 'rspec/core/mocking/with_rspec'
380
+ when /mocha/i
381
+ 'rspec/core/mocking/with_mocha'
382
+ when /rr/i
383
+ 'rspec/core/mocking/with_rr'
384
+ when /flexmock/i
385
+ 'rspec/core/mocking/with_flexmock'
386
+ else
387
+ 'rspec/core/mocking/with_absolutely_nothing'
388
+ end
389
+ RSpec::Core::MockFrameworkAdapter
390
+ end
391
+
392
+ new_name, old_name = [framework_module, @mock_framework].map do |mod|
393
+ mod.respond_to?(:framework_name) ? mod.framework_name : :unnamed
394
+ end
395
+
396
+ unless new_name == old_name
397
+ assert_no_example_groups_defined(:mock_framework)
398
+ end
399
+
400
+ if block_given?
401
+ raise "#{framework_module} must respond to `configuration` so that mock_with can yield it." unless framework_module.respond_to?(:configuration)
402
+ yield framework_module.configuration
403
+ end
404
+
405
+ @mock_framework = framework_module
406
+ end
407
+
408
+ # Returns the configured expectation framework adapter module(s)
409
+ def expectation_frameworks
410
+ expect_with :rspec if @expectation_frameworks.empty?
411
+ @expectation_frameworks
412
+ end
413
+
414
+ # Delegates to expect_with(framework)
415
+ def expectation_framework=(framework)
416
+ expect_with(framework)
417
+ end
418
+
419
+ # Sets the expectation framework module(s) to be included in each example
420
+ # group.
421
+ #
422
+ # `frameworks` can be `:rspec`, `:stdlib`, a custom module, or any
423
+ # combination thereof:
424
+ #
425
+ # config.expect_with :rspec
426
+ # config.expect_with :stdlib
427
+ # config.expect_with :rspec, :stdlib
428
+ # config.expect_with OtherExpectationFramework
429
+ #
430
+ # RSpec will translate `:rspec` and `:stdlib` into the appropriate
431
+ # modules.
432
+ #
433
+ # ## Configuration
434
+ #
435
+ # If the module responds to `configuration`, `expect_with` will
436
+ # yield the `configuration` object if given a block:
437
+ #
438
+ # config.expect_with OtherExpectationFramework do |custom_config|
439
+ # custom_config.custom_setting = true
440
+ # end
441
+ def expect_with(*frameworks)
442
+ modules = frameworks.map do |framework|
443
+ case framework
444
+ when Module
445
+ framework
446
+ when :rspec
447
+ require 'rspec/expectations'
448
+ self.expecting_with_rspec = true
449
+ ::RSpec::Matchers
450
+ when :stdlib
451
+ require 'test/unit/assertions'
452
+ ::Test::Unit::Assertions
453
+ else
454
+ raise ArgumentError, "#{framework.inspect} is not supported"
455
+ end
456
+ end
457
+
458
+ if (modules - @expectation_frameworks).any?
459
+ assert_no_example_groups_defined(:expect_with)
460
+ end
461
+
462
+ if block_given?
463
+ raise "expect_with only accepts a block with a single argument. Call expect_with #{modules.length} times, once with each argument, instead." if modules.length > 1
464
+ raise "#{modules.first} must respond to `configuration` so that expect_with can yield it." unless modules.first.respond_to?(:configuration)
465
+ yield modules.first.configuration
466
+ end
467
+
468
+ @expectation_frameworks.push(*modules)
469
+ end
470
+
471
+ def full_backtrace?
472
+ @backtrace_cleaner.full_backtrace?
473
+ end
474
+
475
+ def full_backtrace=(true_or_false)
476
+ @backtrace_cleaner.full_backtrace = true_or_false
477
+ end
478
+
479
+ def color(output=output_stream)
480
+ # rspec's built-in formatters all call this with the output argument,
481
+ # but defaulting to output_stream for backward compatibility with
482
+ # formatters in extension libs
483
+ return false unless output_to_tty?(output)
484
+ value_for(:color, @color)
485
+ end
486
+
487
+ def color=(bool)
488
+ if bool
489
+ if RSpec.windows_os? and not ENV['ANSICON']
490
+ warn "You must use ANSICON 1.31 or later (http://adoxa.3eeweb.com/ansicon/) to use colour on Windows"
491
+ @color = false
492
+ else
493
+ @color = true
494
+ end
495
+ end
496
+ end
497
+
498
+ # TODO - deprecate color_enabled - probably not until the last 2.x
499
+ # release before 3.0
500
+ alias_method :color_enabled, :color
501
+ alias_method :color_enabled=, :color=
502
+ define_predicate_for :color_enabled, :color
503
+
504
+ def libs=(libs)
505
+ libs.map do |lib|
506
+ @libs.unshift lib
507
+ $LOAD_PATH.unshift lib
508
+ end
509
+ end
510
+
511
+ def requires=(paths)
512
+ RSpec.deprecate("RSpec::Core::Configuration#requires=(paths)",
513
+ :replacement => "paths.each {|path| require path}")
514
+ paths.map {|path| require path}
515
+ @requires += paths
516
+ end
517
+
518
+ def debug=(bool)
519
+ return unless bool
520
+ begin
521
+ require 'ruby-debug'
522
+ Debugger.start
523
+ rescue LoadError => e
524
+ raise <<-EOM
525
+
526
+ #{'*'*50}
527
+ #{e.message}
528
+
529
+ If you have it installed as a ruby gem, then you need to either require
530
+ 'rubygems' or configure the RUBYOPT environment variable with the value
531
+ 'rubygems'.
532
+
533
+ #{e.backtrace.join("\n")}
534
+ #{'*'*50}
535
+ EOM
536
+ end
537
+ end
538
+
539
+ def debug?
540
+ !!defined?(Debugger)
541
+ end
542
+
543
+ # Run examples defined on `line_numbers` in all files to run.
544
+ def line_numbers=(line_numbers)
545
+ filter_run :line_numbers => line_numbers.map{|l| l.to_i}
546
+ end
547
+
548
+ def line_numbers
549
+ filter.fetch(:line_numbers,[])
550
+ end
551
+
552
+ def full_description=(description)
553
+ filter_run :full_description => Regexp.union(*Array(description).map {|d| Regexp.new(d) })
554
+ end
555
+
556
+ def full_description
557
+ filter.fetch :full_description, nil
558
+ end
559
+
560
+ # @overload add_formatter(formatter)
561
+ #
562
+ # Adds a formatter to the formatters collection. `formatter` can be a
563
+ # string representing any of the built-in formatters (see
564
+ # `built_in_formatter`), or a custom formatter class.
565
+ #
566
+ # ### Note
567
+ #
568
+ # For internal purposes, `add_formatter` also accepts the name of a class
569
+ # and paths to use for output streams, but you should consider that a
570
+ # private api that may change at any time without notice.
571
+ def add_formatter(formatter_to_use, *paths)
572
+ formatter_class =
573
+ built_in_formatter(formatter_to_use) ||
574
+ custom_formatter(formatter_to_use) ||
575
+ (raise ArgumentError, "Formatter '#{formatter_to_use}' unknown - maybe you meant 'documentation' or 'progress'?.")
576
+
577
+ paths << output if paths.empty?
578
+ formatters << formatter_class.new(*paths.map {|p| String === p ? file_at(p) : p})
579
+ end
580
+
581
+ alias_method :formatter=, :add_formatter
582
+
583
+ def formatters
584
+ @formatters ||= []
585
+ end
586
+
587
+ def reporter
588
+ @reporter ||= begin
589
+ add_formatter('progress') if formatters.empty?
590
+ add_formatter(RSpec::Core::Formatters::DeprecationFormatter, deprecation_stream, output_stream)
591
+ Reporter.new(*formatters)
592
+ end
593
+ end
594
+
595
+ # @api private
596
+ #
597
+ # Defaults `profile_examples` to 10 examples when `@profile_examples` is `true`.
598
+ #
599
+ def profile_examples
600
+ profile = value_for(:profile_examples, @profile_examples)
601
+ if profile && !profile.is_a?(Integer)
602
+ 10
603
+ else
604
+ profile
605
+ end
606
+ end
607
+
608
+ # @private
609
+ def files_or_directories_to_run=(*files)
610
+ files = files.flatten
611
+ files << default_path if (command == 'rspec' || Runner.running_in_drb?) && default_path && files.empty?
612
+ self.files_to_run = get_files_to_run(files)
613
+ end
614
+
615
+ # Creates a method that delegates to `example` including the submitted
616
+ # `args`. Used internally to add variants of `example` like `pending`:
617
+ #
618
+ # @example
619
+ # alias_example_to :pending, :pending => true
620
+ #
621
+ # # This lets you do this:
622
+ #
623
+ # describe Thing do
624
+ # pending "does something" do
625
+ # thing = Thing.new
626
+ # end
627
+ # end
628
+ #
629
+ # # ... which is the equivalent of
630
+ #
631
+ # describe Thing do
632
+ # it "does something", :pending => true do
633
+ # thing = Thing.new
634
+ # end
635
+ # end
636
+ def alias_example_to(new_name, *args)
637
+ extra_options = build_metadata_hash_from(args)
638
+ RSpec::Core::ExampleGroup.alias_example_to(new_name, extra_options)
639
+ end
640
+
641
+ # Define an alias for it_should_behave_like that allows different
642
+ # language (like "it_has_behavior" or "it_behaves_like") to be
643
+ # employed when including shared examples.
644
+ #
645
+ # Example:
646
+ #
647
+ # alias_it_behaves_like_to(:it_has_behavior, 'has behavior:')
648
+ #
649
+ # allows the user to include a shared example group like:
650
+ #
651
+ # describe Entity do
652
+ # it_has_behavior 'sortability' do
653
+ # let(:sortable) { Entity.new }
654
+ # end
655
+ # end
656
+ #
657
+ # which is reported in the output as:
658
+ #
659
+ # Entity
660
+ # has behavior: sortability
661
+ # # sortability examples here
662
+ def alias_it_behaves_like_to(new_name, report_label = '')
663
+ RSpec::Core::ExampleGroup.alias_it_behaves_like_to(new_name, report_label)
664
+ end
665
+
666
+ alias_method :alias_it_should_behave_like_to, :alias_it_behaves_like_to
667
+
668
+ # Adds key/value pairs to the `inclusion_filter`. If the
669
+ # `treat_symbols_as_metadata_keys_with_true_values` config option is set
670
+ # to true and `args` includes any symbols that are not part of a hash,
671
+ # each symbol is treated as a key in the hash with the value `true`.
672
+ #
673
+ # ### Note
674
+ #
675
+ # Filters set using this method can be overridden from the command line
676
+ # or config files (e.g. `.rspec`).
677
+ #
678
+ # @example
679
+ # # given this declaration
680
+ # describe "something", :foo => 'bar' do
681
+ # # ...
682
+ # end
683
+ #
684
+ # # any of the following will include that group
685
+ # config.filter_run_including :foo => 'bar'
686
+ # config.filter_run_including :foo => /^ba/
687
+ # config.filter_run_including :foo => lambda {|v| v == 'bar'}
688
+ # config.filter_run_including :foo => lambda {|v,m| m[:foo] == 'bar'}
689
+ #
690
+ # # given a proc with an arity of 1, the lambda is passed the value related to the key, e.g.
691
+ # config.filter_run_including :foo => lambda {|v| v == 'bar'}
692
+ #
693
+ # # given a proc with an arity of 2, the lambda is passed the value related to the key,
694
+ # # and the metadata itself e.g.
695
+ # config.filter_run_including :foo => lambda {|v,m| m[:foo] == 'bar'}
696
+ #
697
+ # # with treat_symbols_as_metadata_keys_with_true_values = true
698
+ # filter_run_including :foo # same as filter_run_including :foo => true
699
+ def filter_run_including(*args)
700
+ filter_manager.include_with_low_priority build_metadata_hash_from(args)
701
+ end
702
+
703
+ alias_method :filter_run, :filter_run_including
704
+
705
+ # Clears and reassigns the `inclusion_filter`. Set to `nil` if you don't
706
+ # want any inclusion filter at all.
707
+ #
708
+ # ### Warning
709
+ #
710
+ # This overrides any inclusion filters/tags set on the command line or in
711
+ # configuration files.
712
+ def inclusion_filter=(filter)
713
+ filter_manager.include! build_metadata_hash_from([filter])
714
+ end
715
+
716
+ alias_method :filter=, :inclusion_filter=
717
+
718
+ # Returns the `inclusion_filter`. If none has been set, returns an empty
719
+ # hash.
720
+ def inclusion_filter
721
+ filter_manager.inclusions
722
+ end
723
+
724
+ alias_method :filter, :inclusion_filter
725
+
726
+ # Adds key/value pairs to the `exclusion_filter`. If the
727
+ # `treat_symbols_as_metadata_keys_with_true_values` config option is set
728
+ # to true and `args` excludes any symbols that are not part of a hash,
729
+ # each symbol is treated as a key in the hash with the value `true`.
730
+ #
731
+ # ### Note
732
+ #
733
+ # Filters set using this method can be overridden from the command line
734
+ # or config files (e.g. `.rspec`).
735
+ #
736
+ # @example
737
+ # # given this declaration
738
+ # describe "something", :foo => 'bar' do
739
+ # # ...
740
+ # end
741
+ #
742
+ # # any of the following will exclude that group
743
+ # config.filter_run_excluding :foo => 'bar'
744
+ # config.filter_run_excluding :foo => /^ba/
745
+ # config.filter_run_excluding :foo => lambda {|v| v == 'bar'}
746
+ # config.filter_run_excluding :foo => lambda {|v,m| m[:foo] == 'bar'}
747
+ #
748
+ # # given a proc with an arity of 1, the lambda is passed the value related to the key, e.g.
749
+ # config.filter_run_excluding :foo => lambda {|v| v == 'bar'}
750
+ #
751
+ # # given a proc with an arity of 2, the lambda is passed the value related to the key,
752
+ # # and the metadata itself e.g.
753
+ # config.filter_run_excluding :foo => lambda {|v,m| m[:foo] == 'bar'}
754
+ #
755
+ # # with treat_symbols_as_metadata_keys_with_true_values = true
756
+ # filter_run_excluding :foo # same as filter_run_excluding :foo => true
757
+ def filter_run_excluding(*args)
758
+ filter_manager.exclude_with_low_priority build_metadata_hash_from(args)
759
+ end
760
+
761
+ # Clears and reassigns the `exclusion_filter`. Set to `nil` if you don't
762
+ # want any exclusion filter at all.
763
+ #
764
+ # ### Warning
765
+ #
766
+ # This overrides any exclusion filters/tags set on the command line or in
767
+ # configuration files.
768
+ def exclusion_filter=(filter)
769
+ filter_manager.exclude! build_metadata_hash_from([filter])
770
+ end
771
+
772
+ # Returns the `exclusion_filter`. If none has been set, returns an empty
773
+ # hash.
774
+ def exclusion_filter
775
+ filter_manager.exclusions
776
+ end
777
+
778
+ # Tells RSpec to include `mod` in example groups. Methods defined in
779
+ # `mod` are exposed to examples (not example groups). Use `filters` to
780
+ # constrain the groups in which to include the module.
781
+ #
782
+ # @example
783
+ #
784
+ # module AuthenticationHelpers
785
+ # def login_as(user)
786
+ # # ...
787
+ # end
788
+ # end
789
+ #
790
+ # module UserHelpers
791
+ # def users(username)
792
+ # # ...
793
+ # end
794
+ # end
795
+ #
796
+ # RSpec.configure do |config|
797
+ # config.include(UserHelpers) # included in all modules
798
+ # config.include(AuthenticationHelpers, :type => :request)
799
+ # end
800
+ #
801
+ # describe "edit profile", :type => :request do
802
+ # it "can be viewed by owning user" do
803
+ # login_as users(:jdoe)
804
+ # get "/profiles/jdoe"
805
+ # assert_select ".username", :text => 'jdoe'
806
+ # end
807
+ # end
808
+ #
809
+ # @see #extend
810
+ def include(mod, *filters)
811
+ include_or_extend_modules << [:include, mod, build_metadata_hash_from(filters)]
812
+ end
813
+
814
+ # Tells RSpec to extend example groups with `mod`. Methods defined in
815
+ # `mod` are exposed to example groups (not examples). Use `filters` to
816
+ # constrain the groups to extend.
817
+ #
818
+ # Similar to `include`, but behavior is added to example groups, which
819
+ # are classes, rather than the examples, which are instances of those
820
+ # classes.
821
+ #
822
+ # @example
823
+ #
824
+ # module UiHelpers
825
+ # def run_in_browser
826
+ # # ...
827
+ # end
828
+ # end
829
+ #
830
+ # RSpec.configure do |config|
831
+ # config.extend(UiHelpers, :type => :request)
832
+ # end
833
+ #
834
+ # describe "edit profile", :type => :request do
835
+ # run_in_browser
836
+ #
837
+ # it "does stuff in the client" do
838
+ # # ...
839
+ # end
840
+ # end
841
+ #
842
+ # @see #include
843
+ def extend(mod, *filters)
844
+ include_or_extend_modules << [:extend, mod, build_metadata_hash_from(filters)]
845
+ end
846
+
847
+ # @private
848
+ #
849
+ # Used internally to extend a group with modules using `include` and/or
850
+ # `extend`.
851
+ def configure_group(group)
852
+ include_or_extend_modules.each do |include_or_extend, mod, filters|
853
+ next unless filters.empty? || group.any_apply?(filters)
854
+ send("safe_#{include_or_extend}", mod, group)
855
+ end
856
+ end
857
+
858
+ # @private
859
+ def safe_include(mod, host)
860
+ host.send(:include,mod) unless host < mod
861
+ end
862
+
863
+ # @private
864
+ def setup_load_path_and_require(paths)
865
+ directories = ['lib', default_path].select { |p| File.directory? p }
866
+ RSpec::Core::RubyProject.add_to_load_path(*directories)
867
+ paths.each {|path| require path}
868
+ @requires += paths
869
+ end
870
+
871
+ # @private
872
+ if RUBY_VERSION.to_f >= 1.9
873
+ def safe_extend(mod, host)
874
+ host.extend(mod) unless (class << host; self; end) < mod
875
+ end
876
+ else
877
+ def safe_extend(mod, host)
878
+ host.extend(mod) unless (class << host; self; end).included_modules.include?(mod)
879
+ end
880
+ end
881
+
882
+ # @private
883
+ def configure_mock_framework
884
+ RSpec::Core::ExampleGroup.send(:include, mock_framework)
885
+ end
886
+
887
+ # @private
888
+ def configure_expectation_framework
889
+ expectation_frameworks.each do |framework|
890
+ RSpec::Core::ExampleGroup.send(:include, framework)
891
+ end
892
+ end
893
+
894
+ # @private
895
+ def load_spec_files
896
+ files_to_run.uniq.each {|f| load File.expand_path(f) }
897
+ raise_if_rspec_1_is_loaded
898
+ end
899
+
900
+ # @private
901
+ DEFAULT_FORMATTER = lambda { |string| string }
902
+
903
+ # Formats the docstring output using the block provided.
904
+ #
905
+ # @example
906
+ # # This will strip the descriptions of both examples and example groups.
907
+ # RSpec.configure do |config|
908
+ # config.format_docstrings { |s| s.strip }
909
+ # end
910
+ def format_docstrings(&block)
911
+ @format_docstrings_block = block_given? ? block : DEFAULT_FORMATTER
912
+ end
913
+
914
+ # @private
915
+ def format_docstrings_block
916
+ @format_docstrings_block ||= DEFAULT_FORMATTER
917
+ end
918
+
919
+ # @api
920
+ #
921
+ # Sets the seed value and sets `order='rand'`
922
+ def seed=(seed)
923
+ order_and_seed_from_seed(seed)
924
+ end
925
+
926
+ # @api
927
+ #
928
+ # Sets the order and, if order is `'rand:<seed>'`, also sets the seed.
929
+ def order=(type)
930
+ order_and_seed_from_order(type)
931
+ end
932
+
933
+ def randomize?
934
+ order.to_s.match(/rand/)
935
+ end
936
+
937
+ # @private
938
+ DEFAULT_ORDERING = lambda { |list| list }
939
+
940
+ # @private
941
+ RANDOM_ORDERING = lambda do |list|
942
+ Kernel.srand RSpec.configuration.seed
943
+ ordering = list.sort_by { Kernel.rand(list.size) }
944
+ Kernel.srand # reset random generation
945
+ ordering
946
+ end
947
+
948
+ # Sets a strategy by which to order examples.
949
+ #
950
+ # @example
951
+ # RSpec.configure do |config|
952
+ # config.order_examples do |examples|
953
+ # examples.reverse
954
+ # end
955
+ # end
956
+ #
957
+ # @see #order_groups
958
+ # @see #order_groups_and_examples
959
+ # @see #order=
960
+ # @see #seed=
961
+ def order_examples(&block)
962
+ @example_ordering_block = block
963
+ @order = "custom" unless built_in_orderer?(block)
964
+ end
965
+
966
+ # @private
967
+ def example_ordering_block
968
+ @example_ordering_block ||= DEFAULT_ORDERING
969
+ end
970
+
971
+ # Sets a strategy by which to order groups.
972
+ #
973
+ # @example
974
+ # RSpec.configure do |config|
975
+ # config.order_groups do |groups|
976
+ # groups.reverse
977
+ # end
978
+ # end
979
+ #
980
+ # @see #order_examples
981
+ # @see #order_groups_and_examples
982
+ # @see #order=
983
+ # @see #seed=
984
+ def order_groups(&block)
985
+ @group_ordering_block = block
986
+ @order = "custom" unless built_in_orderer?(block)
987
+ end
988
+
989
+ # @private
990
+ def group_ordering_block
991
+ @group_ordering_block ||= DEFAULT_ORDERING
992
+ end
993
+
994
+ # Sets a strategy by which to order groups and examples.
995
+ #
996
+ # @example
997
+ # RSpec.configure do |config|
998
+ # config.order_groups_and_examples do |groups_or_examples|
999
+ # groups_or_examples.reverse
1000
+ # end
1001
+ # end
1002
+ #
1003
+ # @see #order_groups
1004
+ # @see #order_examples
1005
+ # @see #order=
1006
+ # @see #seed=
1007
+ def order_groups_and_examples(&block)
1008
+ order_groups(&block)
1009
+ order_examples(&block)
1010
+ end
1011
+
1012
+ # Set Ruby warnings on or off
1013
+ def warnings= value
1014
+ $VERBOSE = !!value
1015
+ end
1016
+
1017
+ def warnings
1018
+ $VERBOSE
1019
+ end
1020
+
1021
+ private
1022
+
1023
+ def get_files_to_run(paths)
1024
+ paths.map do |path|
1025
+ path = path.gsub(File::ALT_SEPARATOR, File::SEPARATOR) if File::ALT_SEPARATOR
1026
+ File.directory?(path) ? gather_directories(path) : extract_location(path)
1027
+ end.flatten.sort
1028
+ end
1029
+
1030
+ def gather_directories(path)
1031
+ stripped = "{#{pattern.gsub(/\s*,\s*/, ',')}}"
1032
+ files = pattern =~ /^#{Regexp.escape path}/ ? Dir[stripped] : Dir["#{path}/#{stripped}"]
1033
+ files.sort
1034
+ end
1035
+
1036
+ def extract_location(path)
1037
+ if path =~ /^(.*?)((?:\:\d+)+)$/
1038
+ path, lines = $1, $2[1..-1].split(":").map{|n| n.to_i}
1039
+ filter_manager.add_location path, lines
1040
+ end
1041
+ path
1042
+ end
1043
+
1044
+ def command
1045
+ $0.split(File::SEPARATOR).last
1046
+ end
1047
+
1048
+ def value_for(key, default=nil)
1049
+ @preferred_options.has_key?(key) ? @preferred_options[key] : default
1050
+ end
1051
+
1052
+ def assert_no_example_groups_defined(config_option)
1053
+ if RSpec.world.example_groups.any?
1054
+ raise MustBeConfiguredBeforeExampleGroupsError.new(
1055
+ "RSpec's #{config_option} configuration option must be configured before " +
1056
+ "any example groups are defined, but you have already defined a group."
1057
+ )
1058
+ end
1059
+ end
1060
+
1061
+ def raise_if_rspec_1_is_loaded
1062
+ if defined?(Spec) && defined?(Spec::VERSION::MAJOR) && Spec::VERSION::MAJOR == 1
1063
+ raise <<-MESSAGE
1064
+
1065
+ #{'*'*80}
1066
+ You are running rspec-2, but it seems as though rspec-1 has been loaded as
1067
+ well. This is likely due to a statement like this somewhere in the specs:
1068
+
1069
+ require 'spec'
1070
+
1071
+ Please locate that statement, remove it, and try again.
1072
+ #{'*'*80}
1073
+ MESSAGE
1074
+ end
1075
+ end
1076
+
1077
+ def output_to_tty?(output=output_stream)
1078
+ tty? || (output.respond_to?(:tty?) && output.tty?)
1079
+ end
1080
+
1081
+ def built_in_formatter(key)
1082
+ case key.to_s
1083
+ when 'd', 'doc', 'documentation', 's', 'n', 'spec', 'nested'
1084
+ require 'rspec/core/formatters/documentation_formatter'
1085
+ RSpec::Core::Formatters::DocumentationFormatter
1086
+ when 'h', 'html'
1087
+ require 'rspec/core/formatters/html_formatter'
1088
+ RSpec::Core::Formatters::HtmlFormatter
1089
+ when 't', 'textmate'
1090
+ require 'rspec/core/formatters/text_mate_formatter'
1091
+ RSpec::Core::Formatters::TextMateFormatter
1092
+ when 'p', 'progress'
1093
+ require 'rspec/core/formatters/progress_formatter'
1094
+ RSpec::Core::Formatters::ProgressFormatter
1095
+ when 'j', 'json'
1096
+ require 'rspec/core/formatters/json_formatter'
1097
+ RSpec::Core::Formatters::JsonFormatter
1098
+ end
1099
+ end
1100
+
1101
+ def custom_formatter(formatter_ref)
1102
+ if Class === formatter_ref
1103
+ formatter_ref
1104
+ elsif string_const?(formatter_ref)
1105
+ begin
1106
+ eval(formatter_ref)
1107
+ rescue NameError
1108
+ require path_for(formatter_ref)
1109
+ eval(formatter_ref)
1110
+ end
1111
+ end
1112
+ end
1113
+
1114
+ def string_const?(str)
1115
+ str.is_a?(String) && /\A[A-Z][a-zA-Z0-9_:]*\z/ =~ str
1116
+ end
1117
+
1118
+ def path_for(const_ref)
1119
+ underscore_with_fix_for_non_standard_rspec_naming(const_ref)
1120
+ end
1121
+
1122
+ def underscore_with_fix_for_non_standard_rspec_naming(string)
1123
+ underscore(string).sub(%r{(^|/)r_spec($|/)}, '\\1rspec\\2')
1124
+ end
1125
+
1126
+ # activesupport/lib/active_support/inflector/methods.rb, line 48
1127
+ def underscore(camel_cased_word)
1128
+ word = camel_cased_word.to_s.dup
1129
+ word.gsub!(/::/, '/')
1130
+ word.gsub!(/([A-Z]+)([A-Z][a-z])/,'\1_\2')
1131
+ word.gsub!(/([a-z\d])([A-Z])/,'\1_\2')
1132
+ word.tr!("-", "_")
1133
+ word.downcase!
1134
+ word
1135
+ end
1136
+
1137
+ def file_at(path)
1138
+ FileUtils.mkdir_p(File.dirname(path))
1139
+ File.new(path, 'w')
1140
+ end
1141
+
1142
+ def order_and_seed_from_seed(value)
1143
+ order_groups_and_examples(&RANDOM_ORDERING)
1144
+ @order, @seed = 'rand', value.to_i
1145
+ [@order, @seed]
1146
+ end
1147
+
1148
+ def set_order_and_seed(hash)
1149
+ hash[:order], seed = order_and_seed_from_order(hash[:order])
1150
+ hash[:seed] = seed if seed
1151
+ end
1152
+
1153
+ def order_and_seed_from_order(type)
1154
+ order, seed = type.to_s.split(':')
1155
+ @order = order
1156
+ @seed = seed = seed.to_i if seed
1157
+
1158
+ if randomize?
1159
+ order_groups_and_examples(&RANDOM_ORDERING)
1160
+ elsif order == 'default'
1161
+ @order, @seed = nil, nil
1162
+ order_groups_and_examples(&DEFAULT_ORDERING)
1163
+ end
1164
+
1165
+ return order, seed
1166
+ end
1167
+
1168
+ def built_in_orderer?(block)
1169
+ [DEFAULT_ORDERING, RANDOM_ORDERING].include?(block)
1170
+ end
1171
+
1172
+ end
1173
+ end
1174
+ end