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,37 @@
1
+ require 'spec_helper'
2
+
3
+ module RSpec
4
+ describe Matchers do
5
+
6
+ let(:sample_matchers) do
7
+ [:be,
8
+ :be_close,
9
+ :be_instance_of,
10
+ :be_kind_of]
11
+ end
12
+
13
+ context "once required" do
14
+ include TestUnitIntegrationSupport
15
+
16
+ it "includes itself in Test::Unit::TestCase" do
17
+ with_test_unit_loaded do
18
+ test_unit_case = Test::Unit::TestCase.allocate
19
+ sample_matchers.each do |sample_matcher|
20
+ expect(test_unit_case).to respond_to(sample_matcher)
21
+ end
22
+ end
23
+ end
24
+
25
+ it "includes itself in MiniTest::Unit::TestCase", :if => defined?(MiniTest) do
26
+ with_test_unit_loaded do
27
+ minitest_case = MiniTest::Unit::TestCase.allocate
28
+ sample_matchers.each do |sample_matcher|
29
+ expect(minitest_case).to respond_to(sample_matcher)
30
+ end
31
+ end
32
+ end
33
+
34
+ end
35
+
36
+ end
37
+ end
@@ -0,0 +1,28 @@
1
+ require 'spec_helper'
2
+
3
+ shared_examples_for "a well-behaved method_missing hook" do
4
+ include TestUnitIntegrationSupport
5
+
6
+ it "raises a NoMethodError (and not SystemStackError) for an undefined method" do
7
+ with_test_unit_loaded do
8
+ expect { subject.some_undefined_method }.to raise_error(NoMethodError)
9
+ end
10
+ end
11
+ end
12
+
13
+ describe "RSpec::Matchers method_missing hook" do
14
+ subject { self }
15
+
16
+ it_behaves_like "a well-behaved method_missing hook"
17
+
18
+ context 'when invoked in a Test::Unit::TestCase' do
19
+ subject { Test::Unit::TestCase.allocate }
20
+ it_behaves_like "a well-behaved method_missing hook"
21
+ end
22
+
23
+ context 'when invoked in a MiniTest::Unit::TestCase', :if => defined?(MiniTest) do
24
+ subject { MiniTest::Unit::TestCase.allocate }
25
+ it_behaves_like "a well-behaved method_missing hook"
26
+ end
27
+ end
28
+
@@ -0,0 +1,252 @@
1
+ require 'spec_helper'
2
+
3
+ class MethodOverrideObject
4
+ def method
5
+ :foo
6
+ end
7
+ end
8
+
9
+ class MethodMissingObject < Struct.new(:original)
10
+ undef ==
11
+
12
+ def method_missing(name, *args, &block)
13
+ original.__send__ name, *args, &block
14
+ end
15
+ end
16
+
17
+ describe "operator matchers", :uses_should do
18
+ describe "should ==" do
19
+ it "delegates message to target" do
20
+ subject = "apple"
21
+ subject.should_receive(:==).with("apple").and_return(true)
22
+ subject.should == "apple"
23
+ end
24
+
25
+ it "returns true on success" do
26
+ subject = "apple"
27
+ (subject.should == "apple").should be_true
28
+ end
29
+
30
+ it "fails when target.==(actual) returns false" do
31
+ subject = "apple"
32
+ RSpec::Expectations.should_receive(:fail_with).with(%[expected: "orange"\n got: "apple" (using ==)], "orange", "apple")
33
+ subject.should == "orange"
34
+ end
35
+
36
+ it "works when #method is overriden" do
37
+ myobj = MethodOverrideObject.new
38
+ expect {
39
+ myobj.should == myobj
40
+ }.to_not raise_error
41
+ end
42
+
43
+ it "works when implemented via method_missing" do
44
+ obj = Object.new
45
+
46
+ myobj = MethodMissingObject.new(obj)
47
+ myobj.should == obj
48
+ myobj.should_not == Object.new
49
+ end
50
+ end
51
+
52
+ describe "unsupported operators", :if => RUBY_VERSION.to_f == 1.9 do
53
+ it "raises an appropriate error for should != expected" do
54
+ expect {
55
+ "apple".should != "pear"
56
+ }.to raise_error(/does not support `should != expected`. Use `should_not == expected`/)
57
+ end
58
+
59
+ it "raises an appropriate error for should_not != expected" do
60
+ expect {
61
+ "apple".should_not != "pear"
62
+ }.to raise_error(/does not support `should_not != expected`. Use `should == expected`/)
63
+ end
64
+
65
+ it "raises an appropriate error for should !~ expected" do
66
+ expect {
67
+ "apple".should !~ /regex/
68
+ }.to raise_error(/does not support `should !~ expected`. Use `should_not =~ expected`/)
69
+ end
70
+
71
+ it "raises an appropriate error for should_not !~ expected" do
72
+ expect {
73
+ "apple".should_not !~ /regex/
74
+ }.to raise_error(/does not support `should_not !~ expected`. Use `should =~ expected`/)
75
+ end
76
+ end
77
+
78
+ describe "should_not ==" do
79
+ it "delegates message to target" do
80
+ subject = "orange"
81
+ subject.should_receive(:==).with("apple").and_return(false)
82
+ subject.should_not == "apple"
83
+ end
84
+
85
+ it "returns true on success" do
86
+ subject = "apple"
87
+ (subject.should_not == "orange").should be_false
88
+ end
89
+
90
+ it "fails when target.==(actual) returns false" do
91
+ subject = "apple"
92
+ RSpec::Expectations.should_receive(:fail_with).with(%[expected not: == "apple"\n got: "apple"], "apple", "apple")
93
+ subject.should_not == "apple"
94
+ end
95
+ end
96
+
97
+ describe "should ===" do
98
+ it "delegates message to target" do
99
+ subject = "apple"
100
+ subject.should_receive(:===).with("apple").and_return(true)
101
+ subject.should === "apple"
102
+ end
103
+
104
+ it "fails when target.===(actual) returns false" do
105
+ subject = "apple"
106
+ subject.should_receive(:===).with("orange").and_return(false)
107
+ RSpec::Expectations.should_receive(:fail_with).with(%[expected: "orange"\n got: "apple" (using ===)], "orange", "apple")
108
+ subject.should === "orange"
109
+ end
110
+ end
111
+
112
+ describe "should_not ===" do
113
+ it "delegates message to target" do
114
+ subject = "orange"
115
+ subject.should_receive(:===).with("apple").and_return(false)
116
+ subject.should_not === "apple"
117
+ end
118
+
119
+ it "fails when target.===(actual) returns false" do
120
+ subject = "apple"
121
+ subject.should_receive(:===).with("apple").and_return(true)
122
+ RSpec::Expectations.should_receive(:fail_with).with(%[expected not: === "apple"\n got: "apple"], "apple", "apple")
123
+ subject.should_not === "apple"
124
+ end
125
+ end
126
+
127
+ describe "should =~" do
128
+ it "delegates message to target" do
129
+ subject = "foo"
130
+ subject.should_receive(:=~).with(/oo/).and_return(true)
131
+ subject.should =~ /oo/
132
+ end
133
+
134
+ it "fails when target.=~(actual) returns false" do
135
+ subject = "fu"
136
+ subject.should_receive(:=~).with(/oo/).and_return(false)
137
+ RSpec::Expectations.should_receive(:fail_with).with(%[expected: /oo/\n got: "fu" (using =~)], /oo/, "fu")
138
+ subject.should =~ /oo/
139
+ end
140
+ end
141
+
142
+ describe "should_not =~" do
143
+ it "delegates message to target" do
144
+ subject = "fu"
145
+ subject.should_receive(:=~).with(/oo/).and_return(false)
146
+ subject.should_not =~ /oo/
147
+ end
148
+
149
+ it "fails when target.=~(actual) returns false" do
150
+ subject = "foo"
151
+ subject.should_receive(:=~).with(/oo/).and_return(true)
152
+ RSpec::Expectations.should_receive(:fail_with).with(%[expected not: =~ /oo/\n got: "foo"], /oo/, "foo")
153
+ subject.should_not =~ /oo/
154
+ end
155
+ end
156
+
157
+ describe "should >" do
158
+ it "passes if > passes" do
159
+ 4.should > 3
160
+ end
161
+
162
+ it "fails if > fails" do
163
+ RSpec::Expectations.should_receive(:fail_with).with(%[expected: > 5\n got: 4], 5, 4)
164
+ 4.should > 5
165
+ end
166
+ end
167
+
168
+ describe "should >=" do
169
+ it "passes if actual == expected" do
170
+ 4.should >= 4
171
+ end
172
+
173
+ it "passes if actual > expected" do
174
+ 4.should >= 3
175
+ end
176
+
177
+ it "fails if > fails" do
178
+ RSpec::Expectations.should_receive(:fail_with).with(%[expected: >= 5\n got: 4], 5, 4)
179
+ 4.should >= 5
180
+ end
181
+ end
182
+
183
+ describe "should <" do
184
+ it "passes if < passes" do
185
+ 4.should < 5
186
+ end
187
+
188
+ it "fails if > fails" do
189
+ RSpec::Expectations.should_receive(:fail_with).with(%[expected: < 3\n got: 4], 3, 4)
190
+ 4.should < 3
191
+ end
192
+ end
193
+
194
+ describe "should <=" do
195
+ it "passes if actual == expected" do
196
+ 4.should <= 4
197
+ end
198
+
199
+ it "passes if actual < expected" do
200
+ 4.should <= 5
201
+ end
202
+
203
+ it "fails if > fails" do
204
+ RSpec::Expectations.should_receive(:fail_with).with(%[expected: <= 3\n got: 4], 3, 4)
205
+ 4.should <= 3
206
+ end
207
+ end
208
+
209
+ describe "OperatorMatcher registry" do
210
+ let(:custom_klass) { Class.new }
211
+ let(:custom_subklass) { Class.new(custom_klass) }
212
+
213
+ after {
214
+ RSpec::Matchers::OperatorMatcher.unregister(custom_klass, "=~")
215
+ }
216
+
217
+ it "allows operator matchers to be registered for types" do
218
+ RSpec::Matchers::OperatorMatcher.register(custom_klass, "=~", RSpec::Matchers::BuiltIn::Match)
219
+ expect(RSpec::Matchers::OperatorMatcher.get(custom_klass, "=~")).to eq(RSpec::Matchers::BuiltIn::Match)
220
+ end
221
+
222
+ it "considers ancestors when finding an operator matcher" do
223
+ RSpec::Matchers::OperatorMatcher.register(custom_klass, "=~", RSpec::Matchers::BuiltIn::Match)
224
+ expect(RSpec::Matchers::OperatorMatcher.get(custom_subklass, "=~")).to eq(RSpec::Matchers::BuiltIn::Match)
225
+ end
226
+
227
+ it "returns nil if there is no matcher registered for a type" do
228
+ expect(RSpec::Matchers::OperatorMatcher.get(custom_klass, "=~")).to be_nil
229
+ end
230
+ end
231
+
232
+ describe RSpec::Matchers::BuiltIn::PositiveOperatorMatcher do
233
+ it "works when the target has implemented #send" do
234
+ o = Object.new
235
+ def o.send(*args); raise "DOH! Library developers shouldn't use #send!" end
236
+ expect {
237
+ o.should == o
238
+ }.not_to raise_error
239
+ end
240
+ end
241
+
242
+ describe RSpec::Matchers::BuiltIn::NegativeOperatorMatcher do
243
+ it "works when the target has implemented #send" do
244
+ o = Object.new
245
+ def o.send(*args); raise "DOH! Library developers shouldn't use #send!" end
246
+ expect {
247
+ o.should_not == :foo
248
+ }.not_to raise_error
249
+ end
250
+ end
251
+ end
252
+
@@ -0,0 +1,535 @@
1
+ require 'spec_helper'
2
+
3
+ module WrapDeprecationCallSite
4
+ def expect_deprecation_with_call_site(file, line)
5
+ actual_call_site = nil
6
+ allow(RSpec.configuration.reporter).to receive(:deprecation) do |options|
7
+ actual_call_site = options[:call_site]
8
+ end
9
+
10
+ yield
11
+
12
+ expect(actual_call_site).to match([file, line].join(':'))
13
+ end
14
+ end
15
+
16
+ describe "expect { ... }.to raise_error" do
17
+ it_behaves_like("an RSpec matcher", :valid_value => lambda { raise "boom" },
18
+ :invalid_value => lambda { }) do
19
+ let(:matcher) { raise_error(/boom/) }
20
+ end
21
+
22
+ it "passes if anything is raised" do
23
+ expect {raise}.to raise_error
24
+ end
25
+
26
+ it "passes if an error instance is expected" do
27
+ s = StandardError.new
28
+ expect {raise s}.to raise_error(s)
29
+ end
30
+
31
+ it "fails if a different error instance is thrown from the one that is expected" do
32
+ s = StandardError.new("Error 1")
33
+ to_raise = StandardError.new("Error 2")
34
+ expect do
35
+ expect {raise to_raise}.to raise_error(s)
36
+ end.to fail_with(Regexp.new("expected #{s.inspect}, got #{to_raise.inspect} with backtrace"))
37
+ end
38
+
39
+ it "passes if an error class is expected and an instance of that class is thrown" do
40
+ s = StandardError.new :bees
41
+
42
+ expect { raise s }.to raise_error(StandardError)
43
+ end
44
+
45
+ it "fails if nothing is raised" do
46
+ expect {
47
+ expect {}.to raise_error
48
+ }.to fail_with("expected Exception but nothing was raised")
49
+ end
50
+ end
51
+
52
+ describe "raise_exception aliased to raise_error" do
53
+ it "passes if anything is raised" do
54
+ expect {raise}.to raise_exception
55
+ end
56
+ end
57
+
58
+ describe "expect { ... }.to raise_error {|err| ... }" do
59
+ it "passes if there is an error" do
60
+ ran = false
61
+ expect { non_existent_method }.to raise_error {|e|
62
+ ran = true
63
+ }
64
+ expect(ran).to be_true
65
+ end
66
+
67
+ it "passes the error to the block" do
68
+ error = nil
69
+ expect { non_existent_method }.to raise_error {|e|
70
+ error = e
71
+ }
72
+ expect(error).to be_kind_of(NameError)
73
+ end
74
+ end
75
+
76
+ describe "expect { ... }.not_to raise_error" do
77
+
78
+ context "with a specific error class" do
79
+ it "is deprecated" do
80
+ RSpec.should_receive :deprecate
81
+ expect {"bees"}.not_to raise_error(RuntimeError)
82
+ end
83
+ end
84
+
85
+ context "with no specific error class" do
86
+ it "is not deprecated" do
87
+ run = nil
88
+ allow(RSpec).to receive(:deprecate) { run = true }
89
+ expect {"bees"}.not_to raise_error
90
+ expect(run).to be_nil
91
+ end
92
+
93
+ it "passes if nothing is raised" do
94
+ expect {}.not_to raise_error
95
+ end
96
+
97
+ it "fails if anything is raised" do
98
+ expect {
99
+ expect { raise RuntimeError, "example message" }.not_to raise_error
100
+ }.to fail_with(/expected no Exception, got #<RuntimeError: example message>/)
101
+ end
102
+
103
+ it 'includes the backtrace of the error that was raised in the error message' do
104
+ expect {
105
+ expect { raise "boom" }.not_to raise_error
106
+ }.to raise_error { |e|
107
+ backtrace_line = "#{File.basename(__FILE__)}:#{__LINE__ - 2}"
108
+ expect(e.message).to include("with backtrace", backtrace_line)
109
+ }
110
+ end
111
+
112
+ it 'formats the backtrace using the configured backtrace formatter' do
113
+ RSpec::Matchers.configuration.backtrace_formatter.
114
+ stub(:format_backtrace).
115
+ and_return("formatted-backtrace")
116
+
117
+ expect {
118
+ expect { raise "boom" }.not_to raise_error
119
+ }.to raise_error { |e|
120
+ expect(e.message).to include("with backtrace", "formatted-backtrace")
121
+ }
122
+ end
123
+ end
124
+ end
125
+
126
+ describe "expect { ... }.to raise_error(message)" do
127
+ it "passes if RuntimeError is raised with the right message" do
128
+ expect {raise 'blah'}.to raise_error('blah')
129
+ end
130
+
131
+ it "passes if RuntimeError is raised with a matching message" do
132
+ expect {raise 'blah'}.to raise_error(/blah/)
133
+ end
134
+
135
+ it "passes if any other error is raised with the right message" do
136
+ expect {raise NameError.new('blah')}.to raise_error('blah')
137
+ end
138
+
139
+ it "fails if RuntimeError error is raised with the wrong message" do
140
+ expect do
141
+ expect {raise 'blarg'}.to raise_error('blah')
142
+ end.to fail_with(/expected Exception with \"blah\", got #<RuntimeError: blarg>/)
143
+ end
144
+
145
+ it "fails if any other error is raised with the wrong message" do
146
+ expect do
147
+ expect {raise NameError.new('blarg')}.to raise_error('blah')
148
+ end.to fail_with(/expected Exception with \"blah\", got #<NameError: blarg>/)
149
+ end
150
+
151
+ it 'includes the backtrace of any other error in the failure message' do
152
+ expect {
153
+ expect { raise "boom" }.to raise_error(ArgumentError)
154
+ }.to raise_error { |e|
155
+ backtrace_line = "#{File.basename(__FILE__)}:#{__LINE__ - 2}"
156
+ expect(e.message).to include("with backtrace", backtrace_line)
157
+ }
158
+ end
159
+ end
160
+
161
+ describe "expect { ... }.not_to raise_error(message)" do
162
+ include WrapDeprecationCallSite
163
+
164
+ before do
165
+ allow(RSpec).to receive(:deprecate)
166
+ end
167
+
168
+ it "is deprecated" do
169
+ expect(RSpec).to receive(:deprecate).with(
170
+ /not_to raise_error\(message\)/,
171
+ :replacement =>"`expect { }.not_to raise_error` (with no args)"
172
+ )
173
+ expect {raise 'blarg'}.not_to raise_error('blah')
174
+ end
175
+
176
+ it 'reports the line number of the deprecated syntax' do
177
+ allow(RSpec).to receive(:deprecate).and_call_original
178
+
179
+ expect_deprecation_with_call_site(__FILE__, __LINE__ + 1) do
180
+ expect {raise 'blarg'}.not_to raise_error('blah')
181
+ end
182
+ end
183
+
184
+ it "passes if RuntimeError error is raised with the different message" do
185
+ expect {raise 'blarg'}.not_to raise_error('blah')
186
+ end
187
+
188
+ it "passes if any other error is raised with the wrong message" do
189
+ expect {raise NameError.new('blarg')}.not_to raise_error('blah')
190
+ end
191
+
192
+ it "fails if RuntimeError is raised with message" do
193
+ expect do
194
+ expect {raise 'blah'}.not_to raise_error('blah')
195
+ end.to fail_with(/expected no Exception with "blah", got #<RuntimeError: blah>/)
196
+ end
197
+
198
+ it "fails if any other error is raised with message" do
199
+ expect do
200
+ expect {raise NameError.new('blah')}.not_to raise_error('blah')
201
+ end.to fail_with(/expected no Exception with "blah", got #<NameError: blah>/)
202
+ end
203
+ end
204
+
205
+ describe "expect { ... }.to raise_error(NamedError)" do
206
+ it "passes if named error is raised" do
207
+ expect { non_existent_method }.to raise_error(NameError)
208
+ end
209
+
210
+ it "fails if nothing is raised" do
211
+ expect {
212
+ expect { }.to raise_error(NameError)
213
+ }.to fail_with(/expected NameError but nothing was raised/)
214
+ end
215
+
216
+ it "fails if another error is raised (NameError)" do
217
+ expect {
218
+ expect { raise RuntimeError, "example message" }.to raise_error(NameError)
219
+ }.to fail_with(/expected NameError, got #<RuntimeError: example message>/)
220
+ end
221
+
222
+ it "fails if another error is raised (NameError)" do
223
+ expect {
224
+ expect { load "non/existent/file" }.to raise_error(NameError)
225
+ }.to fail_with(/expected NameError, got #<LoadError/)
226
+ end
227
+ end
228
+
229
+ describe "expect { ... }.not_to raise_error(NamedError)" do
230
+ include WrapDeprecationCallSite
231
+
232
+ before do
233
+ allow(RSpec).to receive(:deprecate)
234
+ end
235
+
236
+ it "is deprecated" do
237
+ expect(RSpec).to receive(:deprecate).with(
238
+ /not_to raise_error\(SpecificErrorClass\)/,
239
+ :replacement =>"`expect { }.not_to raise_error` (with no args)"
240
+ )
241
+ expect { }.not_to raise_error(NameError)
242
+ end
243
+
244
+ it 'reports the line number of the deprecated syntax' do
245
+ allow(RSpec).to receive(:deprecate).and_call_original
246
+ expect_deprecation_with_call_site(__FILE__, __LINE__ + 1) do
247
+ expect { }.not_to raise_error(NameError)
248
+ end
249
+ end
250
+
251
+ it "passes if nothing is raised" do
252
+ expect { }.not_to raise_error(NameError)
253
+ end
254
+
255
+ it "passes if another error is raised" do
256
+ expect { raise }.not_to raise_error(NameError)
257
+ end
258
+
259
+ it "fails if named error is raised" do
260
+ expect {
261
+ expect { 1 + 'b' }.not_to raise_error(TypeError)
262
+ }.to fail_with(/expected no TypeError, got #<TypeError: String can't be/)
263
+ end
264
+ end
265
+
266
+ describe "expect { ... }.to raise_error(NamedError, error_message) with String" do
267
+ it "passes if named error is raised with same message" do
268
+ expect { raise "example message" }.to raise_error(RuntimeError, "example message")
269
+ end
270
+
271
+ it "fails if nothing is raised" do
272
+ expect {
273
+ expect {}.to raise_error(RuntimeError, "example message")
274
+ }.to fail_with(/expected RuntimeError with \"example message\" but nothing was raised/)
275
+ end
276
+
277
+ it "fails if incorrect error is raised" do
278
+ expect {
279
+ expect { raise RuntimeError, "example message" }.to raise_error(NameError, "example message")
280
+ }.to fail_with(/expected NameError with \"example message\", got #<RuntimeError: example message>/)
281
+ end
282
+
283
+ it "fails if correct error is raised with incorrect message" do
284
+ expect {
285
+ expect { raise RuntimeError.new("not the example message") }.to raise_error(RuntimeError, "example message")
286
+ }.to fail_with(/expected RuntimeError with \"example message\", got #<RuntimeError: not the example message/)
287
+ end
288
+ end
289
+
290
+ describe "expect { ... }.not_to raise_error(NamedError, error_message) with String" do
291
+ include WrapDeprecationCallSite
292
+
293
+ before do
294
+ allow(RSpec).to receive(:deprecate)
295
+ end
296
+
297
+ it "is deprecated" do
298
+ expect(RSpec).to receive(:deprecate).with(
299
+ /not_to raise_error\(SpecificErrorClass, message\)/,
300
+ :replacement =>"`expect { }.not_to raise_error` (with no args)"
301
+ )
302
+ expect {}.not_to raise_error(RuntimeError, "example message")
303
+ end
304
+
305
+ it 'reports the line number of the deprecated syntax' do
306
+ allow(RSpec).to receive(:deprecate).and_call_original
307
+ expect_deprecation_with_call_site(__FILE__, __LINE__ + 1) do
308
+ expect {}.not_to raise_error(RuntimeError, "example message")
309
+ end
310
+ end
311
+
312
+ it "passes if nothing is raised" do
313
+ expect {}.not_to raise_error(RuntimeError, "example message")
314
+ end
315
+
316
+ it "passes if a different error is raised" do
317
+ expect { raise }.not_to raise_error(NameError, "example message")
318
+ end
319
+
320
+ it "passes if same error is raised with different message" do
321
+ expect { raise RuntimeError.new("not the example message") }.not_to raise_error(RuntimeError, "example message")
322
+ end
323
+
324
+ it "fails if named error is raised with same message" do
325
+ expect {
326
+ expect { raise "example message" }.not_to raise_error(RuntimeError, "example message")
327
+ }.to fail_with(/expected no RuntimeError with \"example message\", got #<RuntimeError: example message>/)
328
+ end
329
+ end
330
+
331
+ describe "expect { ... }.to raise_error(NamedError, error_message) with Regexp" do
332
+ it "passes if named error is raised with matching message" do
333
+ expect { raise "example message" }.to raise_error(RuntimeError, /ample mess/)
334
+ end
335
+
336
+ it "fails if nothing is raised" do
337
+ expect {
338
+ expect {}.to raise_error(RuntimeError, /ample mess/)
339
+ }.to fail_with(/expected RuntimeError with message matching \/ample mess\/ but nothing was raised/)
340
+ end
341
+
342
+ it "fails if incorrect error is raised" do
343
+ expect {
344
+ expect { raise RuntimeError, "example message" }.to raise_error(NameError, /ample mess/)
345
+ }.to fail_with(/expected NameError with message matching \/ample mess\/, got #<RuntimeError: example message>/)
346
+ end
347
+
348
+ it "fails if correct error is raised with incorrect message" do
349
+ expect {
350
+ expect { raise RuntimeError.new("not the example message") }.to raise_error(RuntimeError, /less than ample mess/)
351
+ }.to fail_with(/expected RuntimeError with message matching \/less than ample mess\/, got #<RuntimeError: not the example message>/)
352
+ end
353
+ end
354
+
355
+ describe "expect { ... }.not_to raise_error(NamedError, error_message) with Regexp" do
356
+ before do
357
+ allow(RSpec).to receive(:deprecate)
358
+ end
359
+
360
+ it "is deprecated" do
361
+ expect(RSpec).to receive(:deprecate)
362
+ expect {}.not_to raise_error(RuntimeError, /ample mess/)
363
+ end
364
+
365
+ it "passes if nothing is raised" do
366
+ expect {}.not_to raise_error(RuntimeError, /ample mess/)
367
+ end
368
+
369
+ it "passes if a different error is raised" do
370
+ expect { raise }.not_to raise_error(NameError, /ample mess/)
371
+ end
372
+
373
+ it "passes if same error is raised with non-matching message" do
374
+ expect { raise RuntimeError.new("non matching message") }.not_to raise_error(RuntimeError, /ample mess/)
375
+ end
376
+
377
+ it "fails if named error is raised with matching message" do
378
+ expect {
379
+ expect { raise "example message" }.not_to raise_error(RuntimeError, /ample mess/)
380
+ }.to fail_with(/expected no RuntimeError with message matching \/ample mess\/, got #<RuntimeError: example message>/)
381
+ end
382
+ end
383
+
384
+ describe "expect { ... }.to raise_error(NamedError, error_message) { |err| ... }" do
385
+ it "yields exception if named error is raised with same message" do
386
+ ran = false
387
+
388
+ expect {
389
+ raise "example message"
390
+ }.to raise_error(RuntimeError, "example message") { |err|
391
+ ran = true
392
+ expect(err.class).to eq RuntimeError
393
+ expect(err.message).to eq "example message"
394
+ }
395
+
396
+ expect(ran).to be(true)
397
+ end
398
+
399
+ it "yielded block fails on it's own right" do
400
+ ran, passed = false, false
401
+
402
+ expect {
403
+ expect {
404
+ raise "example message"
405
+ }.to raise_error(RuntimeError, "example message") { |err|
406
+ ran = true
407
+ expect(5).to eq 4
408
+ passed = true
409
+ }
410
+ }.to fail_with(/expected: 4/m)
411
+
412
+ expect(ran).to be_true
413
+ expect(passed).to be_false
414
+ end
415
+
416
+ it "does NOT yield exception if no error was thrown" do
417
+ ran = false
418
+
419
+ expect {
420
+ expect {}.to raise_error(RuntimeError, "example message") { |err|
421
+ ran = true
422
+ }
423
+ }.to fail_with(/expected RuntimeError with \"example message\" but nothing was raised/)
424
+
425
+ expect(ran).to eq false
426
+ end
427
+
428
+ it "does not yield exception if error class is not matched" do
429
+ ran = false
430
+
431
+ expect {
432
+ expect {
433
+ raise "example message"
434
+ }.to raise_error(SyntaxError, "example message") { |err|
435
+ ran = true
436
+ }
437
+ }.to fail_with(/expected SyntaxError with \"example message\", got #<RuntimeError: example message>/)
438
+
439
+ expect(ran).to eq false
440
+ end
441
+
442
+ it "does NOT yield exception if error message is not matched" do
443
+ ran = false
444
+
445
+ expect {
446
+ expect {
447
+ raise "example message"
448
+ }.to raise_error(RuntimeError, "different message") { |err|
449
+ ran = true
450
+ }
451
+ }.to fail_with(/expected RuntimeError with \"different message\", got #<RuntimeError: example message>/)
452
+
453
+ expect(ran).to eq false
454
+ end
455
+ end
456
+
457
+ describe "expect { ... }.not_to raise_error(NamedError, error_message) { |err| ... }" do
458
+ before do
459
+ allow(RSpec).to receive(:deprecate)
460
+ end
461
+
462
+ it "is deprecated" do
463
+ expect(RSpec).to receive(:deprecate)
464
+ expect {}.not_to raise_error(RuntimeError, "example message") { |err| }
465
+ end
466
+
467
+ it "passes if nothing is raised" do
468
+ ran = false
469
+
470
+ expect {}.not_to raise_error(RuntimeError, "example message") { |err|
471
+ ran = true
472
+ }
473
+
474
+ expect(ran).to eq false
475
+ end
476
+
477
+ it "passes if a different error is raised" do
478
+ ran = false
479
+
480
+ expect { raise }.not_to raise_error(NameError, "example message") { |err|
481
+ ran = true
482
+ }
483
+
484
+ expect(ran).to eq false
485
+ end
486
+
487
+ it "passes if same error is raised with different message" do
488
+ ran = false
489
+
490
+ expect {
491
+ raise RuntimeError.new("not the example message")
492
+ }.not_to raise_error(RuntimeError, "example message") { |err|
493
+ ran = true
494
+ }
495
+
496
+ expect(ran).to eq false
497
+ end
498
+
499
+ it "fails if named error is raised with same message" do
500
+ ran = false
501
+
502
+ expect {
503
+ expect {
504
+ raise "example message"
505
+ }.not_to raise_error(RuntimeError, "example message") { |err|
506
+ ran = true
507
+ }
508
+ }.to fail_with(/expected no RuntimeError with \"example message\", got #<RuntimeError: example message>/)
509
+
510
+ expect(ran).to eq false
511
+ end
512
+
513
+ it 'skips the error verification block when using the expect {...}.to syntax' do
514
+ ran = false
515
+
516
+ expect {
517
+ expect {
518
+ raise "example message"
519
+ }.not_to raise_error(RuntimeError, "example message") { |err|
520
+ ran = true
521
+ }
522
+ }.to fail_with(/expected no RuntimeError with \"example message\", got #<RuntimeError: example message>/)
523
+
524
+ expect(ran).to eq false
525
+ end
526
+ end
527
+
528
+ describe "misuse of raise_error, with (), not {}" do
529
+ it "fails with warning" do
530
+ ::Kernel.should_receive(:warn).with(/`raise_error` was called with non-proc object 1\.7/)
531
+ expect {
532
+ expect(Math.sqrt(3)).to raise_error
533
+ }.to fail_with(/nothing was raised/)
534
+ end
535
+ end