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.
- checksums.yaml +4 -4
- data/lib/tasks/tuktuk_tasks.rake +0 -1
- data/lib/tuktuk/version.rb +1 -1
- data/{app → vendor}/assets/javascripts/index.js +0 -0
- data/{app → vendor}/assets/javascripts/tuktuk/tuktuk.js +0 -0
- data/{app → vendor}/assets/stylesheets/index.css +0 -0
- data/{app → vendor}/assets/stylesheets/tuktuk/tuktuk.css +0 -0
- data/{app → vendor}/assets/stylesheets/tuktuk/tuktuk.icons.css +0 -0
- data/{app → vendor}/assets/stylesheets/tuktuk/tuktuk.theme.css +0 -0
- data/vendor/bundle/ruby/2.0.0/bin/autospec +23 -0
- data/vendor/bundle/ruby/2.0.0/bin/htmldiff +25 -0
- data/vendor/bundle/ruby/2.0.0/bin/ldiff +25 -0
- data/vendor/bundle/ruby/2.0.0/bin/rspec +23 -0
- data/vendor/bundle/ruby/2.0.0/build_info/diff-lcs-1.2.5.info +1 -0
- data/vendor/bundle/ruby/2.0.0/build_info/rspec-2.14.1.info +1 -0
- data/vendor/bundle/ruby/2.0.0/build_info/rspec-core-2.14.7.info +1 -0
- data/vendor/bundle/ruby/2.0.0/build_info/rspec-expectations-2.14.4.info +1 -0
- data/vendor/bundle/ruby/2.0.0/build_info/rspec-mocks-2.14.4.info +1 -0
- data/vendor/bundle/ruby/2.0.0/cache/diff-lcs-1.2.5.gem +0 -0
- data/vendor/bundle/ruby/2.0.0/cache/rspec-2.14.1.gem +0 -0
- data/vendor/bundle/ruby/2.0.0/cache/rspec-core-2.14.7.gem +0 -0
- data/vendor/bundle/ruby/2.0.0/cache/rspec-expectations-2.14.4.gem +0 -0
- data/vendor/bundle/ruby/2.0.0/cache/rspec-mocks-2.14.4.gem +0 -0
- data/vendor/bundle/ruby/2.0.0/gems/diff-lcs-1.2.5/Contributing.rdoc +64 -0
- data/vendor/bundle/ruby/2.0.0/gems/diff-lcs-1.2.5/Gemfile +20 -0
- data/vendor/bundle/ruby/2.0.0/gems/diff-lcs-1.2.5/History.rdoc +152 -0
- data/vendor/bundle/ruby/2.0.0/gems/diff-lcs-1.2.5/License.rdoc +39 -0
- data/vendor/bundle/ruby/2.0.0/gems/diff-lcs-1.2.5/Manifest.txt +38 -0
- data/vendor/bundle/ruby/2.0.0/gems/diff-lcs-1.2.5/README.rdoc +85 -0
- data/vendor/bundle/ruby/2.0.0/gems/diff-lcs-1.2.5/Rakefile +41 -0
- data/vendor/bundle/ruby/2.0.0/gems/diff-lcs-1.2.5/autotest/discover.rb +1 -0
- data/vendor/bundle/ruby/2.0.0/gems/diff-lcs-1.2.5/bin/htmldiff +32 -0
- data/vendor/bundle/ruby/2.0.0/gems/diff-lcs-1.2.5/bin/ldiff +6 -0
- data/vendor/bundle/ruby/2.0.0/gems/diff-lcs-1.2.5/docs/COPYING.txt +339 -0
- data/vendor/bundle/ruby/2.0.0/gems/diff-lcs-1.2.5/docs/artistic.txt +127 -0
- data/vendor/bundle/ruby/2.0.0/gems/diff-lcs-1.2.5/lib/diff-lcs.rb +3 -0
- data/vendor/bundle/ruby/2.0.0/gems/diff-lcs-1.2.5/lib/diff/lcs.rb +805 -0
- data/vendor/bundle/ruby/2.0.0/gems/diff-lcs-1.2.5/lib/diff/lcs/array.rb +7 -0
- data/vendor/bundle/ruby/2.0.0/gems/diff-lcs-1.2.5/lib/diff/lcs/block.rb +37 -0
- data/vendor/bundle/ruby/2.0.0/gems/diff-lcs-1.2.5/lib/diff/lcs/callbacks.rb +322 -0
- data/vendor/bundle/ruby/2.0.0/gems/diff-lcs-1.2.5/lib/diff/lcs/change.rb +177 -0
- data/vendor/bundle/ruby/2.0.0/gems/diff-lcs-1.2.5/lib/diff/lcs/htmldiff.rb +149 -0
- data/vendor/bundle/ruby/2.0.0/gems/diff-lcs-1.2.5/lib/diff/lcs/hunk.rb +276 -0
- data/vendor/bundle/ruby/2.0.0/gems/diff-lcs-1.2.5/lib/diff/lcs/internals.rb +301 -0
- data/vendor/bundle/ruby/2.0.0/gems/diff-lcs-1.2.5/lib/diff/lcs/ldiff.rb +195 -0
- data/vendor/bundle/ruby/2.0.0/gems/diff-lcs-1.2.5/lib/diff/lcs/string.rb +5 -0
- data/vendor/bundle/ruby/2.0.0/gems/diff-lcs-1.2.5/spec/change_spec.rb +65 -0
- data/vendor/bundle/ruby/2.0.0/gems/diff-lcs-1.2.5/spec/diff_spec.rb +47 -0
- data/vendor/bundle/ruby/2.0.0/gems/diff-lcs-1.2.5/spec/hunk_spec.rb +72 -0
- data/vendor/bundle/ruby/2.0.0/gems/diff-lcs-1.2.5/spec/issues_spec.rb +24 -0
- data/vendor/bundle/ruby/2.0.0/gems/diff-lcs-1.2.5/spec/lcs_spec.rb +54 -0
- data/vendor/bundle/ruby/2.0.0/gems/diff-lcs-1.2.5/spec/patch_spec.rb +414 -0
- data/vendor/bundle/ruby/2.0.0/gems/diff-lcs-1.2.5/spec/sdiff_spec.rb +214 -0
- data/vendor/bundle/ruby/2.0.0/gems/diff-lcs-1.2.5/spec/spec_helper.rb +290 -0
- data/vendor/bundle/ruby/2.0.0/gems/diff-lcs-1.2.5/spec/traverse_balanced_spec.rb +310 -0
- data/vendor/bundle/ruby/2.0.0/gems/diff-lcs-1.2.5/spec/traverse_sequences_spec.rb +139 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-2.14.1/License.txt +24 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-2.14.1/README.md +47 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-2.14.1/lib/rspec.rb +3 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-2.14.1/lib/rspec/version.rb +5 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/Changelog.md +904 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/License.txt +24 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/README.md +261 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/exe/autospec +13 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/exe/rspec +25 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/Autotest.md +38 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/README.md +17 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/Upgrade.md +364 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/command_line/README.md +28 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/command_line/example_name_option.feature +97 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/command_line/exit_status.feature +82 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/command_line/format_option.feature +75 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/command_line/init.feature +18 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/command_line/line_number_appended_to_path.feature +140 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/command_line/line_number_option.feature +58 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/command_line/order.feature +29 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/command_line/pattern_option.feature +49 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/command_line/rake_task.feature +122 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/command_line/require_option.feature +43 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/command_line/ruby.feature +22 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/command_line/tag.feature +98 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/command_line/warnings_option.feature +29 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/configuration/alias_example_to.feature +48 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/configuration/backtrace_clean_patterns.feature +102 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/configuration/custom_settings.feature +84 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/configuration/default_path.feature +38 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/configuration/deprecation_stream.feature +58 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/configuration/fail_fast.feature +77 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/configuration/failure_exit_code.feature +36 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/configuration/order_and_seed.feature +3 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/configuration/output_stream.feature +24 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/configuration/pattern.feature +38 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/configuration/profile.feature +220 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/configuration/read_options_from_file.feature +90 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/configuration/run_all_when_everything_filtered.feature +76 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/configuration/show_failures_in_pending_blocks.feature +61 -0
- 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
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/example_groups/basic_structure.feature +55 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/example_groups/shared_context.feature +74 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/example_groups/shared_examples.feature +294 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/expectation_framework_integration/configure_expectation_framework.feature +102 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/filtering/exclusion_filters.feature +138 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/filtering/if_and_unless.feature +168 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/filtering/inclusion_filters.feature +105 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/formatters/configurable_colors.feature +31 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/formatters/custom_formatter.feature +36 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/formatters/json_formatter.feature +30 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/formatters/text_formatter.feature +46 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/helper_methods/arbitrary_methods.feature +40 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/helper_methods/let.feature +50 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/helper_methods/modules.feature +149 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/hooks/around_hooks.feature +343 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/hooks/before_and_after_hooks.feature +427 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/hooks/filtering.feature +234 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/metadata/current_example.feature +17 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/metadata/described_class.feature +17 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/metadata/user_defined.feature +113 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/mock_framework_integration/use_any_framework.feature +106 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/mock_framework_integration/use_flexmock.feature +96 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/mock_framework_integration/use_mocha.feature +97 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/mock_framework_integration/use_rr.feature +98 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/mock_framework_integration/use_rspec.feature +97 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/pending/pending_examples.feature +229 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/spec_files/arbitrary_file_suffix.feature +13 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/step_definitions/additional_cli_steps.rb +49 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/subject/attribute_of_subject.feature +124 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/subject/explicit_subject.feature +101 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/subject/implicit_receiver.feature +29 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/subject/implicit_subject.feature +63 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/support/env.rb +14 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/features/support/rubinius.rb +6 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/lib/autotest/discover.rb +1 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/lib/autotest/rspec2.rb +73 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/lib/rspec/autorun.rb +2 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/lib/rspec/core.rb +169 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/lib/rspec/core/backtrace_cleaner.rb +46 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/lib/rspec/core/backward_compatibility.rb +55 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/lib/rspec/core/command_line.rb +36 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/lib/rspec/core/configuration.rb +1174 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/lib/rspec/core/configuration_options.rb +156 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/lib/rspec/core/deprecation.rb +31 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/lib/rspec/core/drb_command_line.rb +26 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/lib/rspec/core/drb_options.rb +87 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/lib/rspec/core/dsl.rb +26 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/lib/rspec/core/example.rb +325 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/lib/rspec/core/example_group.rb +479 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/lib/rspec/core/extensions/instance_eval_with_args.rb +44 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/lib/rspec/core/extensions/kernel.rb +9 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/lib/rspec/core/extensions/module_eval_with_args.rb +38 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/lib/rspec/core/extensions/ordered.rb +27 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/lib/rspec/core/filter_manager.rb +203 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/lib/rspec/core/formatters.rb +55 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/lib/rspec/core/formatters/base_formatter.rb +246 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/lib/rspec/core/formatters/base_text_formatter.rb +329 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/lib/rspec/core/formatters/deprecation_formatter.rb +39 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/lib/rspec/core/formatters/documentation_formatter.rb +67 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/lib/rspec/core/formatters/helpers.rb +110 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/lib/rspec/core/formatters/html_formatter.rb +155 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/lib/rspec/core/formatters/html_printer.rb +408 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/lib/rspec/core/formatters/json_formatter.rb +70 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/lib/rspec/core/formatters/progress_formatter.rb +32 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/lib/rspec/core/formatters/snippet_extractor.rb +92 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/lib/rspec/core/formatters/text_mate_formatter.rb +34 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/lib/rspec/core/hooks.rb +519 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/lib/rspec/core/memoized_helpers.rb +514 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/lib/rspec/core/metadata.rb +299 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/lib/rspec/core/metadata_hash_builder.rb +97 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/lib/rspec/core/mocking/with_absolutely_nothing.rb +11 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/lib/rspec/core/mocking/with_flexmock.rb +27 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/lib/rspec/core/mocking/with_mocha.rb +52 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/lib/rspec/core/mocking/with_rr.rb +27 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/lib/rspec/core/mocking/with_rspec.rb +27 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/lib/rspec/core/option_parser.rb +219 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/lib/rspec/core/pending.rb +113 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/lib/rspec/core/project_initializer.rb +86 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/lib/rspec/core/rake_task.rb +206 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/lib/rspec/core/reporter.rb +132 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/lib/rspec/core/ruby_project.rb +44 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/lib/rspec/core/runner.rb +87 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/lib/rspec/core/shared_context.rb +55 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/lib/rspec/core/shared_example_group.rb +185 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/lib/rspec/core/shared_example_group/collection.rb +43 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/lib/rspec/core/version.rb +8 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/lib/rspec/core/world.rb +127 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/autotest/discover_spec.rb +19 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/autotest/failed_results_re_spec.rb +45 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/autotest/rspec_spec.rb +133 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/command_line/order_spec.rb +204 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/rspec/core/backtrace_cleaner_spec.rb +68 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/rspec/core/command_line_spec.rb +108 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/rspec/core/command_line_spec_output.txt +0 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/rspec/core/configuration_options_spec.rb +417 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/rspec/core/configuration_spec.rb +1561 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/rspec/core/deprecation_spec.rb +46 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/rspec/core/deprecations_spec.rb +73 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/rspec/core/drb_command_line_spec.rb +102 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/rspec/core/drb_options_spec.rb +193 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/rspec/core/dsl_spec.rb +25 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/rspec/core/example_group_spec.rb +1187 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/rspec/core/example_spec.rb +465 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/rspec/core/filter_manager_spec.rb +246 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/rspec/core/formatters/base_formatter_spec.rb +108 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/rspec/core/formatters/base_text_formatter_spec.rb +494 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/rspec/core/formatters/deprecation_formatter_spec.rb +96 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/rspec/core/formatters/documentation_formatter_spec.rb +88 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/rspec/core/formatters/helpers_spec.rb +104 -0
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/rspec/core/formatters/html_formatter_spec.rb +110 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/rspec/core/formatters/json_formatter_spec.rb +115 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/rspec/core/formatters/progress_formatter_spec.rb +30 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/rspec/core/formatters/snippet_extractor_spec.rb +26 -0
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/rspec/core/formatters/text_mate_formatter_spec.rb +96 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/rspec/core/hooks_filtering_spec.rb +227 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/rspec/core/hooks_spec.rb +267 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/rspec/core/kernel_extensions_spec.rb +9 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/rspec/core/memoized_helpers_spec.rb +688 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/rspec/core/metadata_spec.rb +491 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/rspec/core/option_parser_spec.rb +242 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/rspec/core/pending_example_spec.rb +220 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/rspec/core/project_initializer_spec.rb +130 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/rspec/core/rake_task_spec.rb +181 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/rspec/core/reporter_spec.rb +141 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/rspec/core/resources/a_bar.rb +0 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/rspec/core/resources/a_foo.rb +0 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/rspec/core/resources/a_spec.rb +1 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/rspec/core/resources/custom_example_group_runner.rb +14 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/rspec/core/resources/formatter_specs.rb +60 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/rspec/core/resources/utf8_encoded.rb +8 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/rspec/core/rspec_matchers_spec.rb +45 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/rspec/core/ruby_project_spec.rb +26 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/rspec/core/runner_spec.rb +82 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/rspec/core/shared_context_spec.rb +114 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/rspec/core/shared_example_group/collection_spec.rb +70 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/rspec/core/shared_example_group_spec.rb +120 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/rspec/core/world_spec.rb +142 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/rspec/core_spec.rb +74 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/spec_helper.rb +132 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/support/config_options_helper.rb +15 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/support/helper_methods.rb +36 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/support/in_sub_process.rb +37 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/support/isolate_load_path_mutation.rb +6 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/support/isolated_directory.rb +10 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/support/isolated_home_directory.rb +16 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/support/matchers.rb +65 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/support/mathn_integration_support.rb +12 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/support/sandboxed_mock_space.rb +100 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/support/shared_example_groups.rb +41 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/support/spec_files.rb +44 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/Changelog.md +419 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/License.txt +23 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/README.md +184 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/features/README.md +48 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/features/Upgrade.md +53 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/features/built_in_matchers/README.md +90 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/features/built_in_matchers/be.feature +175 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/features/built_in_matchers/be_within.feature +48 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/features/built_in_matchers/cover.feature +47 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/features/built_in_matchers/end_with.feature +48 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/features/built_in_matchers/equality.feature +139 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/features/built_in_matchers/exist.feature +45 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/features/built_in_matchers/expect_change.feature +59 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/features/built_in_matchers/expect_error.feature +144 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/features/built_in_matchers/have.feature +109 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/features/built_in_matchers/include.feature +174 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/features/built_in_matchers/match.feature +52 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/features/built_in_matchers/operators.feature +227 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/features/built_in_matchers/predicates.feature +137 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/features/built_in_matchers/respond_to.feature +84 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/features/built_in_matchers/satisfy.feature +33 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/features/built_in_matchers/start_with.feature +48 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/features/built_in_matchers/throw_symbol.feature +91 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/features/built_in_matchers/types.feature +116 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/features/built_in_matchers/yield.feature +161 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/features/custom_matchers/access_running_example.feature +53 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/features/custom_matchers/define_diffable_matcher.feature +27 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/features/custom_matchers/define_matcher.feature +368 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/features/custom_matchers/define_matcher_outside_rspec.feature +38 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/features/custom_matchers/define_matcher_with_fluent_interface.feature +24 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/features/customized_message.feature +22 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/features/diffing.feature +85 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/features/implicit_docstrings.feature +52 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/features/step_definitions/additional_cli_steps.rb +22 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/features/support/env.rb +14 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/features/support/rubinius.rb +6 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/features/syntax_configuration.feature +71 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/features/test_frameworks/test_unit.feature +44 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/lib/rspec-expectations.rb +1 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/lib/rspec/expectations.rb +73 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/lib/rspec/expectations/deprecation.rb +31 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/lib/rspec/expectations/differ.rb +154 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/lib/rspec/expectations/errors.rb +9 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/lib/rspec/expectations/expectation_target.rb +87 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/lib/rspec/expectations/extensions.rb +2 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/lib/rspec/expectations/extensions/array.rb +9 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/lib/rspec/expectations/extensions/object.rb +29 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/lib/rspec/expectations/fail_with.rb +79 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/lib/rspec/expectations/handler.rb +68 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/lib/rspec/expectations/syntax.rb +164 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/lib/rspec/expectations/version.rb +9 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/lib/rspec/matchers.rb +694 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/lib/rspec/matchers/be_close.rb +9 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/lib/rspec/matchers/built_in.rb +39 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/lib/rspec/matchers/built_in/base_matcher.rb +68 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/lib/rspec/matchers/built_in/be.rb +197 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/lib/rspec/matchers/built_in/be_instance_of.rb +15 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/lib/rspec/matchers/built_in/be_kind_of.rb +11 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/lib/rspec/matchers/built_in/be_within.rb +55 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/lib/rspec/matchers/built_in/change.rb +141 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/lib/rspec/matchers/built_in/cover.rb +21 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/lib/rspec/matchers/built_in/eq.rb +22 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/lib/rspec/matchers/built_in/eql.rb +23 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/lib/rspec/matchers/built_in/equal.rb +48 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/lib/rspec/matchers/built_in/exist.rb +26 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/lib/rspec/matchers/built_in/has.rb +48 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/lib/rspec/matchers/built_in/have.rb +124 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/lib/rspec/matchers/built_in/include.rb +61 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/lib/rspec/matchers/built_in/match.rb +17 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/lib/rspec/matchers/built_in/match_array.rb +51 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/lib/rspec/matchers/built_in/raise_error.rb +127 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/lib/rspec/matchers/built_in/respond_to.rb +74 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/lib/rspec/matchers/built_in/satisfy.rb +30 -0
- 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
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/lib/rspec/matchers/built_in/throw_symbol.rb +94 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/lib/rspec/matchers/built_in/yield.rb +296 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/lib/rspec/matchers/compatibility.rb +14 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/lib/rspec/matchers/configuration.rb +108 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/lib/rspec/matchers/dsl.rb +24 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/lib/rspec/matchers/extensions/instance_eval_with_args.rb +39 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/lib/rspec/matchers/generated_descriptions.rb +35 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/lib/rspec/matchers/matcher.rb +300 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/lib/rspec/matchers/method_missing.rb +12 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/lib/rspec/matchers/operator_matcher.rb +113 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/lib/rspec/matchers/pretty.rb +70 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/lib/rspec/matchers/test_unit_integration.rb +11 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/spec/rspec/expectations/differ_spec.rb +229 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/spec/rspec/expectations/expectation_target_spec.rb +82 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/spec/rspec/expectations/extensions/kernel_spec.rb +67 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/spec/rspec/expectations/fail_with_spec.rb +114 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/spec/rspec/expectations/handler_spec.rb +227 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/spec/rspec/expectations/syntax_spec.rb +139 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/spec/rspec/expectations_spec.rb +50 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/spec/rspec/matchers/base_matcher_spec.rb +62 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/spec/rspec/matchers/be_close_spec.rb +22 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/spec/rspec/matchers/be_instance_of_spec.rb +63 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/spec/rspec/matchers/be_kind_of_spec.rb +41 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/spec/rspec/matchers/be_spec.rb +522 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/spec/rspec/matchers/be_within_spec.rb +137 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/spec/rspec/matchers/change_spec.rb +567 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/spec/rspec/matchers/configuration_spec.rb +206 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/spec/rspec/matchers/cover_spec.rb +69 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/spec/rspec/matchers/description_generation_spec.rb +190 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/spec/rspec/matchers/dsl_spec.rb +57 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/spec/rspec/matchers/eq_spec.rb +60 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/spec/rspec/matchers/eql_spec.rb +41 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/spec/rspec/matchers/equal_spec.rb +78 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/spec/rspec/matchers/exist_spec.rb +124 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/spec/rspec/matchers/has_spec.rb +122 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/spec/rspec/matchers/have_spec.rb +455 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/spec/rspec/matchers/include_matcher_integration_spec.rb +30 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/spec/rspec/matchers/include_spec.rb +531 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/spec/rspec/matchers/match_array_spec.rb +194 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/spec/rspec/matchers/match_spec.rb +74 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/spec/rspec/matchers/matcher_spec.rb +471 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/spec/rspec/matchers/matchers_spec.rb +37 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/spec/rspec/matchers/method_missing_spec.rb +28 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/spec/rspec/matchers/operator_matcher_spec.rb +252 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/spec/rspec/matchers/raise_error_spec.rb +535 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/spec/rspec/matchers/respond_to_spec.rb +292 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/spec/rspec/matchers/satisfy_spec.rb +44 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/spec/rspec/matchers/start_with_end_with_spec.rb +186 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/spec/rspec/matchers/throw_symbol_spec.rb +116 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/spec/rspec/matchers/yield_spec.rb +514 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/spec/spec_helper.rb +54 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/spec/support/classes.rb +56 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/spec/support/in_sub_process.rb +38 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/spec/support/matchers.rb +22 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/spec/support/ruby_version.rb +10 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/spec/support/shared_examples.rb +13 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/Changelog.md +420 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/License.txt +23 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/README.md +315 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/features/README.md +67 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/features/Scope.md +17 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/features/Upgrade.md +22 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/features/argument_matchers/README.md +27 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/features/argument_matchers/explicit.feature +59 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/features/argument_matchers/general_matchers.feature +85 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/features/argument_matchers/type_matchers.feature +26 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/features/message_expectations/README.md +73 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/features/message_expectations/allow_any_instance_of.feature +26 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/features/message_expectations/any_instance.feature +21 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/features/message_expectations/block_local_expectations.feature.pending +55 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/features/message_expectations/call_original.feature +24 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/features/message_expectations/expect_any_instance_of.feature +27 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/features/message_expectations/expect_message_using_expect.feature +107 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/features/message_expectations/expect_message_using_should_receive.feature +118 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/features/message_expectations/receive_counts.feature +209 -0
- 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
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/features/method_stubs/README.md +73 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/features/method_stubs/any_instance.feature +136 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/features/method_stubs/as_null_object.feature +40 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/features/method_stubs/simple_return_value_with_allow.feature +44 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/features/method_stubs/simple_return_value_with_stub.feature +64 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/features/method_stubs/stub_chain.feature +51 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/features/method_stubs/stub_implementation.feature +48 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/features/method_stubs/to_ary.feature +51 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/features/mutating_constants/README.md +82 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/features/mutating_constants/hiding_defined_constant.feature +64 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/features/mutating_constants/stub_defined_constant.feature +79 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/features/mutating_constants/stub_undefined_constant.feature +50 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/features/outside_rspec/configuration.feature +62 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/features/outside_rspec/standalone.feature +33 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/features/spies/spy_partial_mock_method.feature +34 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/features/spies/spy_pure_mock_method.feature +76 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/features/spies/spy_unstubbed_method.feature +18 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/features/step_definitions/additional_cli_steps.rb +11 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/features/support/env.rb +13 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/features/support/rubinius.rb +6 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/features/test_frameworks/test_unit.feature +43 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/lib/rspec/mocks.rb +96 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/lib/rspec/mocks/any_instance/chain.rb +94 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/lib/rspec/mocks/any_instance/expectation_chain.rb +42 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/lib/rspec/mocks/any_instance/message_chains.rb +60 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/lib/rspec/mocks/any_instance/recorder.rb +211 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/lib/rspec/mocks/any_instance/stub_chain.rb +40 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/lib/rspec/mocks/any_instance/stub_chain_chain.rb +23 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/lib/rspec/mocks/argument_list_matcher.rb +97 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/lib/rspec/mocks/argument_matchers.rb +238 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/lib/rspec/mocks/configuration.rb +55 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/lib/rspec/mocks/deprecation.rb +18 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/lib/rspec/mocks/error_generator.rb +179 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/lib/rspec/mocks/errors.rb +12 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/lib/rspec/mocks/example_methods.rb +156 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/lib/rspec/mocks/extensions/instance_exec.rb +34 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/lib/rspec/mocks/extensions/marshal.rb +17 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/lib/rspec/mocks/framework.rb +34 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/lib/rspec/mocks/instance_method_stasher.rb +94 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/lib/rspec/mocks/matchers/have_received.rb +93 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/lib/rspec/mocks/matchers/receive.rb +97 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/lib/rspec/mocks/message_expectation.rb +583 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/lib/rspec/mocks/method_double.rb +271 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/lib/rspec/mocks/mock.rb +7 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/lib/rspec/mocks/mutate_const.rb +403 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/lib/rspec/mocks/order_group.rb +40 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/lib/rspec/mocks/proxy.rb +223 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/lib/rspec/mocks/proxy_for_nil.rb +37 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/lib/rspec/mocks/space.rb +91 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/lib/rspec/mocks/standalone.rb +3 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/lib/rspec/mocks/stub_chain.rb +51 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/lib/rspec/mocks/syntax.rb +349 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/lib/rspec/mocks/targets.rb +69 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/lib/rspec/mocks/test_double.rb +135 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/lib/rspec/mocks/version.rb +7 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/lib/spec/mocks.rb +4 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/spec/rspec/mocks/and_call_original_spec.rb +243 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/spec/rspec/mocks/and_yield_spec.rb +127 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/spec/rspec/mocks/any_instance/message_chains_spec.rb +41 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/spec/rspec/mocks/any_instance_spec.rb +987 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/spec/rspec/mocks/any_number_of_times_spec.rb +36 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/spec/rspec/mocks/argument_expectation_spec.rb +32 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/spec/rspec/mocks/at_least_spec.rb +151 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/spec/rspec/mocks/at_most_spec.rb +90 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/spec/rspec/mocks/block_return_value_spec.rb +88 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/spec/rspec/mocks/bug_report_10260_spec.rb +8 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/spec/rspec/mocks/bug_report_10263_spec.rb +27 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/spec/rspec/mocks/bug_report_11545_spec.rb +32 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/spec/rspec/mocks/bug_report_496_spec.rb +17 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/spec/rspec/mocks/bug_report_600_spec.rb +22 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/spec/rspec/mocks/bug_report_7611_spec.rb +16 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/spec/rspec/mocks/bug_report_8165_spec.rb +31 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/spec/rspec/mocks/bug_report_830_spec.rb +21 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/spec/rspec/mocks/bug_report_957_spec.rb +22 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/spec/rspec/mocks/combining_implementation_instructions_spec.rb +205 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/spec/rspec/mocks/configuration_spec.rb +150 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/spec/rspec/mocks/double_spec.rb +24 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/spec/rspec/mocks/extensions/marshal_spec.rb +54 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/spec/rspec/mocks/failing_argument_matchers_spec.rb +110 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/spec/rspec/mocks/hash_excluding_matcher_spec.rb +67 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/spec/rspec/mocks/hash_including_matcher_spec.rb +90 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/spec/rspec/mocks/instance_method_stasher_spec.rb +58 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/spec/rspec/mocks/matchers/have_received_spec.rb +266 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/spec/rspec/mocks/matchers/receive_spec.rb +336 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/spec/rspec/mocks/methods_spec.rb +27 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/spec/rspec/mocks/mock_ordering_spec.rb +103 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/spec/rspec/mocks/mock_space_spec.rb +113 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/spec/rspec/mocks/mock_spec.rb +798 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/spec/rspec/mocks/multiple_return_value_spec.rb +132 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/spec/rspec/mocks/mutate_const_spec.rb +501 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/spec/rspec/mocks/nil_expectation_warning_spec.rb +68 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/spec/rspec/mocks/null_object_mock_spec.rb +123 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/spec/rspec/mocks/once_counts_spec.rb +52 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/spec/rspec/mocks/options_hash_spec.rb +35 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/spec/rspec/mocks/partial_mock_spec.rb +205 -0
- 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
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/spec/rspec/mocks/passing_argument_matchers_spec.rb +142 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/spec/rspec/mocks/precise_counts_spec.rb +68 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/spec/rspec/mocks/record_messages_spec.rb +26 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/spec/rspec/mocks/serialization_spec.rb +89 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/spec/rspec/mocks/space_spec.rb +32 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/spec/rspec/mocks/stash_spec.rb +46 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/spec/rspec/mocks/stub_chain_spec.rb +154 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/spec/rspec/mocks/stub_implementation_spec.rb +81 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/spec/rspec/mocks/stub_spec.rb +353 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/spec/rspec/mocks/stubbed_message_expectations_spec.rb +58 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/spec/rspec/mocks/syntax_agnostic_message_matchers_spec.rb +81 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/spec/rspec/mocks/test_double_spec.rb +67 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/spec/rspec/mocks/to_ary_spec.rb +54 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/spec/rspec/mocks/twice_counts_spec.rb +66 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/spec/rspec/mocks_spec.rb +65 -0
- data/vendor/bundle/ruby/2.0.0/gems/rspec-mocks-2.14.4/spec/spec_helper.rb +60 -0
- data/vendor/bundle/ruby/2.0.0/specifications/diff-lcs-1.2.5.gemspec +65 -0
- data/vendor/bundle/ruby/2.0.0/specifications/rspec-2.14.1.gemspec +39 -0
- data/vendor/bundle/ruby/2.0.0/specifications/rspec-core-2.14.7.gemspec +58 -0
- data/vendor/bundle/ruby/2.0.0/specifications/rspec-expectations-2.14.4.gemspec +40 -0
- data/vendor/bundle/ruby/2.0.0/specifications/rspec-mocks-2.14.4.gemspec +37 -0
- metadata +528 -7
@@ -0,0 +1,116 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
module RSpec::Matchers::BuiltIn
|
4
|
+
describe ThrowSymbol do
|
5
|
+
it_behaves_like("an RSpec matcher", :valid_value => lambda { throw :foo },
|
6
|
+
:invalid_value => lambda { }) do
|
7
|
+
let(:matcher) { throw_symbol(:foo) }
|
8
|
+
end
|
9
|
+
|
10
|
+
describe "with no args" do
|
11
|
+
before(:each) { @matcher = throw_symbol }
|
12
|
+
|
13
|
+
it "matches if any Symbol is thrown" do
|
14
|
+
expect(@matcher.matches?(lambda{ throw :sym })).to be_true
|
15
|
+
end
|
16
|
+
it "matches if any Symbol is thrown with an arg" do
|
17
|
+
expect(@matcher.matches?(lambda{ throw :sym, "argument" })).to be_true
|
18
|
+
end
|
19
|
+
it "does not match if no Symbol is thrown" do
|
20
|
+
expect(@matcher.matches?(lambda{ })).to be_false
|
21
|
+
end
|
22
|
+
it "provides a failure message" do
|
23
|
+
@matcher.matches?(lambda{})
|
24
|
+
expect(@matcher.failure_message_for_should).to eq "expected a Symbol to be thrown, got nothing"
|
25
|
+
end
|
26
|
+
it "provides a negative failure message" do
|
27
|
+
@matcher.matches?(lambda{ throw :sym})
|
28
|
+
expect(@matcher.failure_message_for_should_not).to eq "expected no Symbol to be thrown, got :sym"
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
describe "with a symbol" do
|
33
|
+
before(:each) { @matcher = throw_symbol(:sym) }
|
34
|
+
|
35
|
+
it "matches if correct Symbol is thrown" do
|
36
|
+
expect(@matcher.matches?(lambda{ throw :sym })).to be_true
|
37
|
+
end
|
38
|
+
it "matches if correct Symbol is thrown with an arg" do
|
39
|
+
expect(@matcher.matches?(lambda{ throw :sym, "argument" })).to be_true
|
40
|
+
end
|
41
|
+
it "does not match if no Symbol is thrown" do
|
42
|
+
expect(@matcher.matches?(lambda{ })).to be_false
|
43
|
+
end
|
44
|
+
it "does not match if correct Symbol is thrown" do
|
45
|
+
expect(@matcher.matches?(lambda{ throw :other_sym })).to be_false
|
46
|
+
end
|
47
|
+
it "provides a failure message when no Symbol is thrown" do
|
48
|
+
@matcher.matches?(lambda{})
|
49
|
+
expect(@matcher.failure_message_for_should).to eq "expected :sym to be thrown, got nothing"
|
50
|
+
end
|
51
|
+
it "provides a failure message when wrong Symbol is thrown" do
|
52
|
+
@matcher.matches?(lambda{ throw :other_sym })
|
53
|
+
expect(@matcher.failure_message_for_should).to eq "expected :sym to be thrown, got :other_sym"
|
54
|
+
end
|
55
|
+
it "provides a negative failure message" do
|
56
|
+
@matcher.matches?(lambda{ throw :sym })
|
57
|
+
expect(@matcher.failure_message_for_should_not).to eq "expected :sym not to be thrown, got :sym"
|
58
|
+
end
|
59
|
+
it "only matches NameErrors raised by uncaught throws" do
|
60
|
+
expect {
|
61
|
+
expect(@matcher.matches?(lambda{ sym })).to be_false
|
62
|
+
}.to raise_error(NameError)
|
63
|
+
end
|
64
|
+
end
|
65
|
+
|
66
|
+
describe "with a symbol and an arg" do
|
67
|
+
before(:each) { @matcher = throw_symbol(:sym, "a") }
|
68
|
+
|
69
|
+
it "matches if correct Symbol and args are thrown" do
|
70
|
+
expect(@matcher.matches?(lambda{ throw :sym, "a" })).to be_true
|
71
|
+
end
|
72
|
+
it "does not match if nothing is thrown" do
|
73
|
+
expect(@matcher.matches?(lambda{ })).to be_false
|
74
|
+
end
|
75
|
+
it "does not match if other Symbol is thrown" do
|
76
|
+
expect(@matcher.matches?(lambda{ throw :other_sym, "a" })).to be_false
|
77
|
+
end
|
78
|
+
it "does not match if no arg is thrown" do
|
79
|
+
expect(@matcher.matches?(lambda{ throw :sym })).to be_false
|
80
|
+
end
|
81
|
+
it "does not match if wrong arg is thrown" do
|
82
|
+
expect(@matcher.matches?(lambda{ throw :sym, "b" })).to be_false
|
83
|
+
end
|
84
|
+
it "provides a failure message when no Symbol is thrown" do
|
85
|
+
@matcher.matches?(lambda{})
|
86
|
+
expect(@matcher.failure_message_for_should).to eq %q[expected :sym with "a" to be thrown, got nothing]
|
87
|
+
end
|
88
|
+
it "provides a failure message when wrong Symbol is thrown" do
|
89
|
+
@matcher.matches?(lambda{ throw :other_sym })
|
90
|
+
expect(@matcher.failure_message_for_should).to eq %q[expected :sym with "a" to be thrown, got :other_sym]
|
91
|
+
end
|
92
|
+
it "provides a failure message when wrong arg is thrown" do
|
93
|
+
@matcher.matches?(lambda{ throw :sym, "b" })
|
94
|
+
expect(@matcher.failure_message_for_should).to eq %q[expected :sym with "a" to be thrown, got :sym with "b"]
|
95
|
+
end
|
96
|
+
it "provides a failure message when no arg is thrown" do
|
97
|
+
@matcher.matches?(lambda{ throw :sym })
|
98
|
+
expect(@matcher.failure_message_for_should).to eq %q[expected :sym with "a" to be thrown, got :sym with no argument]
|
99
|
+
end
|
100
|
+
it "provides a negative failure message" do
|
101
|
+
@matcher.matches?(lambda{ throw :sym })
|
102
|
+
expect(@matcher.failure_message_for_should_not).to eq %q[expected :sym with "a" not to be thrown, got :sym with no argument]
|
103
|
+
end
|
104
|
+
it "only matches NameErrors raised by uncaught throws" do
|
105
|
+
expect {
|
106
|
+
expect(@matcher.matches?(lambda{ sym })).to be_false
|
107
|
+
}.to raise_error(NameError)
|
108
|
+
end
|
109
|
+
it "raises other errors" do
|
110
|
+
expect {
|
111
|
+
@matcher.matches?(lambda { raise "Boom" })
|
112
|
+
}.to raise_error(/Boom/)
|
113
|
+
end
|
114
|
+
end
|
115
|
+
end
|
116
|
+
end
|
data/vendor/bundle/ruby/2.0.0/gems/rspec-expectations-2.14.4/spec/rspec/matchers/yield_spec.rb
ADDED
@@ -0,0 +1,514 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
module YieldHelpers
|
4
|
+
# these helpers are prefixed with an underscore to prevent
|
5
|
+
# collisions with the matchers (some of which have the same names)
|
6
|
+
def _dont_yield
|
7
|
+
end
|
8
|
+
|
9
|
+
def _yield_with_no_args
|
10
|
+
yield
|
11
|
+
end
|
12
|
+
|
13
|
+
def _yield_with_args(*args)
|
14
|
+
yield(*args)
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
class InstanceEvaler
|
19
|
+
include RSpec::Matchers::Extensions::InstanceEvalWithArgs
|
20
|
+
|
21
|
+
def yield_with_no_args(&block)
|
22
|
+
instance_eval_with_args(&block)
|
23
|
+
end
|
24
|
+
|
25
|
+
def yield_with_args(*args, &block)
|
26
|
+
instance_eval_with_args(*args, &block)
|
27
|
+
end
|
28
|
+
|
29
|
+
def each_arg(*args, &block)
|
30
|
+
args.each do |arg|
|
31
|
+
instance_eval_with_args(arg, &block)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
describe "yield_control matcher" do
|
37
|
+
include YieldHelpers
|
38
|
+
extend YieldHelpers
|
39
|
+
|
40
|
+
it_behaves_like "an RSpec matcher",
|
41
|
+
:valid_value => lambda { |b| _yield_with_no_args(&b) },
|
42
|
+
:invalid_value => lambda { |b| _dont_yield(&b) } do
|
43
|
+
let(:matcher) { yield_control }
|
44
|
+
end
|
45
|
+
|
46
|
+
it 'has a description' do
|
47
|
+
expect(yield_control.description).to eq("yield control")
|
48
|
+
end
|
49
|
+
|
50
|
+
describe "expect {...}.to yield_control" do
|
51
|
+
it 'passes if the block yields, regardless of the number of yielded arguments' do
|
52
|
+
expect { |b| _yield_with_no_args(&b) }.to yield_control
|
53
|
+
expect { |b| _yield_with_args(1, 2, &b) }.to yield_control
|
54
|
+
end
|
55
|
+
|
56
|
+
it 'passes if the block yields using instance_eval' do
|
57
|
+
expect { |b| InstanceEvaler.new.yield_with_no_args(&b) }.to yield_control
|
58
|
+
end
|
59
|
+
|
60
|
+
it 'fails if the block does not yield' do
|
61
|
+
expect {
|
62
|
+
expect { |b| _dont_yield(&b) }.to yield_control
|
63
|
+
}.to fail_with(/expected given block to yield control/)
|
64
|
+
end
|
65
|
+
|
66
|
+
context "with exact count" do
|
67
|
+
it 'fails if the block yields wrong number of times' do
|
68
|
+
expect {
|
69
|
+
expect { |b| [1, 2, 3].each(&b) }.to yield_control.twice
|
70
|
+
}.to fail_with(/expected given block to yield control twice/)
|
71
|
+
|
72
|
+
expect {
|
73
|
+
expect { |b| [1, 2].each(&b) }.to yield_control.exactly(3).times
|
74
|
+
}.to fail_with(/expected given block to yield control 3 times/)
|
75
|
+
end
|
76
|
+
|
77
|
+
it 'passes if the block yields the specified number of times' do
|
78
|
+
expect { |b| [1].each(&b) }.to yield_control.once
|
79
|
+
expect { |b| [1, 2].each(&b) }.to yield_control.twice
|
80
|
+
expect { |b| [1, 2, 3].each(&b) }.to yield_control.exactly(3).times
|
81
|
+
end
|
82
|
+
end
|
83
|
+
|
84
|
+
context "with at_least count" do
|
85
|
+
it 'passes if the block yields the given number of times' do
|
86
|
+
expect { |b| [1, 2].each(&b) }.to yield_control.at_least(2).times
|
87
|
+
expect { |b| [1, 2, 3].each(&b) }.to yield_control.at_least(3).times
|
88
|
+
end
|
89
|
+
|
90
|
+
it 'passes if the block yields more times' do
|
91
|
+
expect { |b| [1, 2, 3].each(&b) }.to yield_control.at_least(2).times
|
92
|
+
expect { |b| [1, 2, 3, 4].each(&b) }.to yield_control.at_least(3).times
|
93
|
+
end
|
94
|
+
|
95
|
+
it 'allows :once and :twice to be passed as counts' do
|
96
|
+
expect { |b| [1].each(&b) }.to yield_control.at_least(:once)
|
97
|
+
expect { |b| [1, 2].each(&b) }.to yield_control.at_least(:once)
|
98
|
+
|
99
|
+
expect {
|
100
|
+
expect { |b| [].each(&b) }.to yield_control.at_least(:once)
|
101
|
+
}.to fail_with(/at least once/)
|
102
|
+
|
103
|
+
expect { |b| [1, 2].each(&b) }.to yield_control.at_least(:twice)
|
104
|
+
expect { |b| [1, 2, 3].each(&b) }.to yield_control.at_least(:twice)
|
105
|
+
|
106
|
+
expect {
|
107
|
+
expect { |b| [1].each(&b) }.to yield_control.at_least(:twice)
|
108
|
+
}.to fail_with(/at least twice/)
|
109
|
+
end
|
110
|
+
|
111
|
+
it 'fails if the block yields too few times' do
|
112
|
+
expect {
|
113
|
+
expect { |b| _yield_with_no_args(&b) }.to yield_control.at_least(2).times
|
114
|
+
}.to fail_with(/expected given block to yield control at least twice/)
|
115
|
+
end
|
116
|
+
end
|
117
|
+
|
118
|
+
context "with at_most count" do
|
119
|
+
it 'passes if the block yields the given number of times' do
|
120
|
+
expect { |b| [1, 2].each(&b) }.to yield_control.at_most(2).times
|
121
|
+
expect { |b| [1, 2, 3].each(&b) }.to yield_control.at_most(3).times
|
122
|
+
end
|
123
|
+
|
124
|
+
it 'passes if the block yields fewer times' do
|
125
|
+
expect { |b| [1, 2].each(&b) }.to yield_control.at_most(3).times
|
126
|
+
end
|
127
|
+
|
128
|
+
it 'allows :once and :twice to be passed as counts' do
|
129
|
+
expect { |b| [1].each(&b) }.to yield_control.at_most(:once)
|
130
|
+
|
131
|
+
expect {
|
132
|
+
expect { |b| [1, 2].each(&b) }.to yield_control.at_most(:once)
|
133
|
+
}.to fail_with(/expected given block to yield control at most once/)
|
134
|
+
|
135
|
+
expect { |b| [1, 2].each(&b) }.to yield_control.at_most(:twice)
|
136
|
+
|
137
|
+
expect {
|
138
|
+
expect { |b| [1, 2, 3].each(&b) }.to yield_control.at_most(:twice)
|
139
|
+
}.to fail_with(/expected given block to yield control at most twice/)
|
140
|
+
end
|
141
|
+
|
142
|
+
it 'fails if the block yields too many times' do
|
143
|
+
expect {
|
144
|
+
expect { |b| [1, 2, 3].each(&b) }.to yield_control.at_most(2).times
|
145
|
+
}.to fail_with(/expected given block to yield control at most twice/)
|
146
|
+
end
|
147
|
+
end
|
148
|
+
end
|
149
|
+
|
150
|
+
describe "expect {...}.not_to yield_control" do
|
151
|
+
it 'passes if the block does not yield' do
|
152
|
+
expect { |b| _dont_yield(&b) }.not_to yield_control
|
153
|
+
end
|
154
|
+
|
155
|
+
it 'fails if the block does yield' do
|
156
|
+
expect {
|
157
|
+
expect { |b| _yield_with_no_args(&b) }.not_to yield_control
|
158
|
+
}.to fail_with(/expected given block not to yield control/)
|
159
|
+
end
|
160
|
+
|
161
|
+
it 'fails if the expect block does not accept an argument' do
|
162
|
+
expect {
|
163
|
+
expect { }.not_to yield_control
|
164
|
+
}.to raise_error(/expect block must accept an argument/)
|
165
|
+
end
|
166
|
+
|
167
|
+
it 'raises an error if the expect block arg is not passed to a method as a block' do
|
168
|
+
expect {
|
169
|
+
expect { |b| }.not_to yield_control
|
170
|
+
}.to raise_error(/must pass the argument.*as a block/)
|
171
|
+
end
|
172
|
+
end
|
173
|
+
end
|
174
|
+
|
175
|
+
describe "yield_with_no_args matcher" do
|
176
|
+
include YieldHelpers
|
177
|
+
extend YieldHelpers
|
178
|
+
|
179
|
+
it_behaves_like "an RSpec matcher",
|
180
|
+
:valid_value => lambda { |b| _yield_with_no_args(&b) },
|
181
|
+
:invalid_value => lambda { |b| _dont_yield(&b) } do
|
182
|
+
let(:matcher) { yield_with_no_args }
|
183
|
+
end
|
184
|
+
|
185
|
+
it 'has a description' do
|
186
|
+
expect(yield_with_no_args.description).to eq("yield with no args")
|
187
|
+
end
|
188
|
+
|
189
|
+
describe "expect {...}.to yield_with_no_args" do
|
190
|
+
it 'passes if the block yields with no args' do
|
191
|
+
expect { |b| _yield_with_no_args(&b) }.to yield_with_no_args
|
192
|
+
end
|
193
|
+
|
194
|
+
it 'passes if the block yields with no args using instance_eval' do
|
195
|
+
expect { |b| InstanceEvaler.new.yield_with_no_args(&b) }.to yield_with_no_args
|
196
|
+
end
|
197
|
+
|
198
|
+
it 'fails if the block does not yield' do
|
199
|
+
expect {
|
200
|
+
expect { |b| _dont_yield(&b) }.to yield_with_no_args
|
201
|
+
}.to fail_with(/expected given block to yield with no arguments, but did not yield/)
|
202
|
+
end
|
203
|
+
|
204
|
+
it 'fails if the block yields with args' do
|
205
|
+
expect {
|
206
|
+
expect { |b| _yield_with_args(1, &b) }.to yield_with_no_args
|
207
|
+
}.to fail_with(/expected given block to yield with no arguments, but yielded with arguments/)
|
208
|
+
end
|
209
|
+
|
210
|
+
it 'fails if the block yields with arg false' do
|
211
|
+
expect {
|
212
|
+
expect { |b| _yield_with_args(false, &b) }.to yield_with_no_args
|
213
|
+
}.to fail_with(/expected given block to yield with no arguments, but yielded with arguments/)
|
214
|
+
end
|
215
|
+
|
216
|
+
it 'raises an error if it yields multiple times' do
|
217
|
+
expect {
|
218
|
+
expect { |b| [1, 2].each(&b) }.to yield_with_no_args
|
219
|
+
}.to raise_error(/not designed.*yields multiple times/)
|
220
|
+
end
|
221
|
+
end
|
222
|
+
|
223
|
+
describe "expect {...}.not_to yield_with_no_args" do
|
224
|
+
it "passes if the block does not yield" do
|
225
|
+
expect { |b| _dont_yield(&b) }.not_to yield_with_no_args
|
226
|
+
end
|
227
|
+
|
228
|
+
it "passes if the block yields with args" do
|
229
|
+
expect { |b| _yield_with_args(1, &b) }.not_to yield_with_no_args
|
230
|
+
end
|
231
|
+
|
232
|
+
it "fails if the block yields with no args" do
|
233
|
+
expect {
|
234
|
+
expect { |b| _yield_with_no_args(&b) }.not_to yield_with_no_args
|
235
|
+
}.to fail_with(/expected given block not to yield with no arguments, but did/)
|
236
|
+
end
|
237
|
+
|
238
|
+
it 'fails if the expect block does not accept an argument' do
|
239
|
+
expect {
|
240
|
+
expect { }.not_to yield_with_no_args
|
241
|
+
}.to raise_error(/expect block must accept an argument/)
|
242
|
+
end
|
243
|
+
|
244
|
+
it 'raises an error if the expect block arg is not passed to a method as a block' do
|
245
|
+
expect {
|
246
|
+
expect { |b| }.not_to yield_with_no_args
|
247
|
+
}.to raise_error(/must pass the argument.*as a block/)
|
248
|
+
end
|
249
|
+
end
|
250
|
+
end
|
251
|
+
|
252
|
+
describe "yield_with_args matcher" do
|
253
|
+
include YieldHelpers
|
254
|
+
extend YieldHelpers
|
255
|
+
|
256
|
+
it_behaves_like "an RSpec matcher",
|
257
|
+
:valid_value => lambda { |b| _yield_with_args(1, &b) },
|
258
|
+
:invalid_value => lambda { |b| _dont_yield(&b) } do
|
259
|
+
let(:matcher) { yield_with_args }
|
260
|
+
end
|
261
|
+
|
262
|
+
it 'has a description' do
|
263
|
+
expect(yield_with_args.description).to eq("yield with args")
|
264
|
+
expect(yield_with_args(1, 3).description).to eq("yield with args(1, 3)")
|
265
|
+
expect(yield_with_args(false).description).to eq("yield with args(false)")
|
266
|
+
end
|
267
|
+
|
268
|
+
describe "expect {...}.to yield_with_args" do
|
269
|
+
it 'passes if the block yields with arguments' do
|
270
|
+
expect { |b| _yield_with_args(1, &b) }.to yield_with_args
|
271
|
+
end
|
272
|
+
|
273
|
+
it 'fails if the block does not yield' do
|
274
|
+
expect {
|
275
|
+
expect { |b| _dont_yield(&b) }.to yield_with_args
|
276
|
+
}.to fail_with(/expected given block to yield with arguments, but did not yield/)
|
277
|
+
end
|
278
|
+
|
279
|
+
it 'fails if the block yields with no arguments' do
|
280
|
+
expect {
|
281
|
+
expect { |b| _yield_with_no_args(&b) }.to yield_with_args
|
282
|
+
}.to fail_with(/expected given block to yield with arguments, but yielded with no arguments/)
|
283
|
+
end
|
284
|
+
|
285
|
+
it 'raises an error if it yields multiple times' do
|
286
|
+
expect {
|
287
|
+
expect { |b| [1, 2].each(&b) }.to yield_with_args
|
288
|
+
}.to raise_error(/not designed.*yields multiple times/)
|
289
|
+
end
|
290
|
+
end
|
291
|
+
|
292
|
+
describe "expect {...}.not_to yield_with_args" do
|
293
|
+
it 'fails if the block yields with arguments' do
|
294
|
+
expect {
|
295
|
+
expect { |b| _yield_with_args(1, &b) }.not_to yield_with_args
|
296
|
+
}.to fail_with(/expected given block not to yield with arguments, but did/)
|
297
|
+
end
|
298
|
+
|
299
|
+
it 'passes if the block does not yield' do
|
300
|
+
expect { |b| _dont_yield(&b) }.not_to yield_with_args
|
301
|
+
end
|
302
|
+
|
303
|
+
it 'passes if the block yields with no arguments' do
|
304
|
+
expect { |b| _yield_with_no_args(&b) }.not_to yield_with_args
|
305
|
+
end
|
306
|
+
|
307
|
+
it 'fails if the expect block does not accept an argument' do
|
308
|
+
expect {
|
309
|
+
expect { }.not_to yield_with_args
|
310
|
+
}.to raise_error(/expect block must accept an argument/)
|
311
|
+
end
|
312
|
+
|
313
|
+
it 'raises an error if the expect block arg is not passed to a method as a block' do
|
314
|
+
expect {
|
315
|
+
expect { |b| }.not_to yield_with_args
|
316
|
+
}.to raise_error(/must pass the argument.*as a block/)
|
317
|
+
end
|
318
|
+
end
|
319
|
+
|
320
|
+
describe "expect {...}.to yield_with_args(3, 17)" do
|
321
|
+
it 'passes if the block yields with the given arguments' do
|
322
|
+
expect { |b| _yield_with_args(3, 17, &b) }.to yield_with_args(3, 17)
|
323
|
+
end
|
324
|
+
|
325
|
+
it 'passes if the block yields with the given arguments using instance_eval' do
|
326
|
+
expect { |b| InstanceEvaler.new.yield_with_args(3, 17, &b) }.to yield_with_args(3, 17)
|
327
|
+
end
|
328
|
+
|
329
|
+
it 'fails if the block does not yield' do
|
330
|
+
expect {
|
331
|
+
expect { |b| _dont_yield(&b) }.to yield_with_args(3, 17)
|
332
|
+
}.to fail_with(/expected given block to yield with arguments, but did not yield/)
|
333
|
+
end
|
334
|
+
|
335
|
+
it 'fails if the block yields with no arguments' do
|
336
|
+
expect {
|
337
|
+
expect { |b| _yield_with_no_args(&b) }.to yield_with_args(3, 17)
|
338
|
+
}.to fail_with(/expected given block to yield with arguments, but yielded with unexpected arguments/)
|
339
|
+
end
|
340
|
+
|
341
|
+
it 'fails if the block yields with different arguments' do
|
342
|
+
expect {
|
343
|
+
expect { |b| _yield_with_args("a", "b", &b) }.to yield_with_args("a", "c")
|
344
|
+
}.to fail_with(/expected given block to yield with arguments, but yielded with unexpected arguments/)
|
345
|
+
end
|
346
|
+
end
|
347
|
+
|
348
|
+
describe "expect {...}.not_to yield_with_args(3, 17)" do
|
349
|
+
it 'passes if the block yields with different arguments' do
|
350
|
+
expect { |b| _yield_with_args("a", "b", &b) }.not_to yield_with_args("a", "c")
|
351
|
+
end
|
352
|
+
|
353
|
+
it 'fails if the block yields with the given arguments' do
|
354
|
+
expect {
|
355
|
+
expect { |b| _yield_with_args("a", "b", &b) }.not_to yield_with_args("a", "b")
|
356
|
+
}.to fail_with(/expected given block not to yield with arguments, but yielded with expected arguments/)
|
357
|
+
end
|
358
|
+
end
|
359
|
+
|
360
|
+
describe "expect {...}.to yield_with_args( false )" do
|
361
|
+
it 'passes if the block yields with the given arguments' do
|
362
|
+
expect { |b| _yield_with_args(false, &b) }.to yield_with_args(false)
|
363
|
+
end
|
364
|
+
|
365
|
+
it 'passes if the block yields with the given arguments using instance_eval' do
|
366
|
+
expect { |b| InstanceEvaler.new.yield_with_args(false, &b) }.to yield_with_args(false)
|
367
|
+
end
|
368
|
+
|
369
|
+
it 'fails if the block does not yield' do
|
370
|
+
expect {
|
371
|
+
expect { |b| _dont_yield(&b) }.to yield_with_args(false)
|
372
|
+
}.to fail_with(/expected given block to yield with arguments, but did not yield/)
|
373
|
+
end
|
374
|
+
|
375
|
+
it 'fails if the block yields with no arguments' do
|
376
|
+
expect {
|
377
|
+
expect { |b| _yield_with_no_args(&b) }.to yield_with_args(false)
|
378
|
+
}.to fail_with(/expected given block to yield with arguments, but yielded with unexpected arguments/)
|
379
|
+
end
|
380
|
+
|
381
|
+
it 'fails if the block yields with different arguments' do
|
382
|
+
expect {
|
383
|
+
expect { |b| _yield_with_args(false, &b) }.to yield_with_args(true)
|
384
|
+
}.to fail_with(/expected given block to yield with arguments, but yielded with unexpected arguments/)
|
385
|
+
end
|
386
|
+
end
|
387
|
+
|
388
|
+
describe "expect {...}.to yield_with_args(/reg/, /ex/)" do
|
389
|
+
it "passes if the block yields strings matching the regexes" do
|
390
|
+
expect { |b| _yield_with_args("regular", "expression", &b) }.to yield_with_args(/reg/, /ex/)
|
391
|
+
end
|
392
|
+
|
393
|
+
it "fails if the block yields strings that do not match the regexes" do
|
394
|
+
expect {
|
395
|
+
expect { |b| _yield_with_args("no", "match", &b) }.to yield_with_args(/reg/, /ex/)
|
396
|
+
}.to fail_with(/expected given block to yield with arguments, but yielded with unexpected arguments/)
|
397
|
+
end
|
398
|
+
end
|
399
|
+
|
400
|
+
describe "expect {...}.to yield_with_args(String, Fixnum)" do
|
401
|
+
it "passes if the block yields objects of the given types" do
|
402
|
+
expect { |b| _yield_with_args("string", 15, &b) }.to yield_with_args(String, Fixnum)
|
403
|
+
end
|
404
|
+
|
405
|
+
it "passes if the block yields the given types" do
|
406
|
+
expect { |b| _yield_with_args(String, Fixnum, &b) }.to yield_with_args(String, Fixnum)
|
407
|
+
end
|
408
|
+
|
409
|
+
it "fails if the block yields objects of different types" do
|
410
|
+
expect {
|
411
|
+
expect { |b| _yield_with_args(15, "string", &b) }.to yield_with_args(String, Fixnum)
|
412
|
+
}.to fail_with(/expected given block to yield with arguments, but yielded with unexpected arguments/)
|
413
|
+
end
|
414
|
+
end
|
415
|
+
end
|
416
|
+
|
417
|
+
describe "yield_successive_args matcher" do
|
418
|
+
include YieldHelpers
|
419
|
+
extend YieldHelpers
|
420
|
+
|
421
|
+
it_behaves_like "an RSpec matcher",
|
422
|
+
:valid_value => lambda { |b| [1, 2].each(&b) },
|
423
|
+
:invalid_value => lambda { |b| _dont_yield(&b) } do
|
424
|
+
let(:matcher) { yield_successive_args(1, 2) }
|
425
|
+
end
|
426
|
+
|
427
|
+
it 'has a description' do
|
428
|
+
expect(yield_successive_args(1, 3).description).to eq("yield successive args(1, 3)")
|
429
|
+
expect(yield_successive_args([:a, 1], [:b, 2]).description).to eq("yield successive args([:a, 1], [:b, 2])")
|
430
|
+
end
|
431
|
+
|
432
|
+
describe "expect {...}.to yield_successive_args([:a, 1], [:b, 2])" do
|
433
|
+
it 'passes when the block successively yields the given args' do
|
434
|
+
expect { |b| [ [:a, 1], [:b, 2] ].each(&b) }.to yield_successive_args([:a, 1], [:b, 2])
|
435
|
+
end
|
436
|
+
|
437
|
+
it 'fails when the block does not yield that many times' do
|
438
|
+
expect {
|
439
|
+
expect { |b| [[:a, 1]].each(&b) }.to yield_successive_args([:a, 1], [:b, 2])
|
440
|
+
}.to fail_with(/but yielded with unexpected arguments/)
|
441
|
+
end
|
442
|
+
|
443
|
+
it 'fails when the block yields the right number of times but with different arguments' do
|
444
|
+
expect {
|
445
|
+
expect { |b| [ [:a, 1], [:b, 3] ].each(&b) }.to yield_successive_args([:a, 1], [:b, 2])
|
446
|
+
}.to fail_with(/but yielded with unexpected arguments/)
|
447
|
+
end
|
448
|
+
end
|
449
|
+
|
450
|
+
describe "expect {...}.to yield_successive_args(1, 2, 3)" do
|
451
|
+
it 'passes when the block successively yields the given args' do
|
452
|
+
expect { |b| [1, 2, 3].each(&b) }.to yield_successive_args(1, 2, 3)
|
453
|
+
end
|
454
|
+
|
455
|
+
it 'passes when the block successively yields the given args using instance_eval' do
|
456
|
+
expect { |b| InstanceEvaler.new.each_arg(1, 2, 3, &b) }.to yield_successive_args(1, 2, 3)
|
457
|
+
end
|
458
|
+
|
459
|
+
it 'fails when the block does not yield the expected args' do
|
460
|
+
expect {
|
461
|
+
expect { |b| [1, 2, 4].each(&b) }.to yield_successive_args([:a, 1], [:b, 2])
|
462
|
+
}.to fail_with(/but yielded with unexpected arguments/)
|
463
|
+
end
|
464
|
+
end
|
465
|
+
|
466
|
+
describe "expect {...}.not_to yield_successive_args(1, 2, 3)" do
|
467
|
+
it 'passes when the block does not yield' do
|
468
|
+
expect { |b| _dont_yield(&b) }.not_to yield_successive_args(1, 2, 3)
|
469
|
+
end
|
470
|
+
|
471
|
+
it 'passes when the block yields the wrong number of times' do
|
472
|
+
expect { |b| [1, 2].each(&b) }.not_to yield_successive_args(1, 2, 3)
|
473
|
+
end
|
474
|
+
|
475
|
+
it 'passes when the block yields the wrong arguments' do
|
476
|
+
expect { |b| [1, 2, 4].each(&b) }.not_to yield_successive_args(1, 2, 3)
|
477
|
+
end
|
478
|
+
|
479
|
+
it 'fails when the block yields the given arguments' do
|
480
|
+
expect {
|
481
|
+
expect { |b| [1, 2, 3].each(&b) }.not_to yield_successive_args(1, 2, 3)
|
482
|
+
}.to fail_with(/expected given block not to yield successively/)
|
483
|
+
end
|
484
|
+
|
485
|
+
it 'fails if the expect block does not accept an argument' do
|
486
|
+
expect {
|
487
|
+
expect { }.not_to yield_successive_args(1, 2, 3)
|
488
|
+
}.to raise_error(/expect block must accept an argument/)
|
489
|
+
end
|
490
|
+
|
491
|
+
it 'raises an error if the expect block arg is not passed to a method as a block' do
|
492
|
+
expect {
|
493
|
+
expect { |b| }.not_to yield_successive_args(1, 2, 3)
|
494
|
+
}.to raise_error(/must pass the argument.*as a block/)
|
495
|
+
end
|
496
|
+
end
|
497
|
+
|
498
|
+
describe "expect {...}.to yield_successive_args(String, Fixnum)" do
|
499
|
+
it "passes if the block successively yields objects of the given types" do
|
500
|
+
expect { |b| ["string", 15].each(&b) }.to yield_successive_args(String, Fixnum)
|
501
|
+
end
|
502
|
+
|
503
|
+
it "passes if the block yields the given types" do
|
504
|
+
expect { |b| [String, Fixnum].each(&b) }.to yield_successive_args(String, Fixnum)
|
505
|
+
end
|
506
|
+
|
507
|
+
it "fails if the block yields objects of different types" do
|
508
|
+
expect {
|
509
|
+
expect { |b| [15, "string"].each(&b) }.to yield_successive_args(String, Fixnum)
|
510
|
+
}.to fail_with(/expected given block to yield successively with arguments/)
|
511
|
+
end
|
512
|
+
end
|
513
|
+
end
|
514
|
+
|