dxruby_rp5 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.gitignore +17 -0
- data/.rspec +2 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +88 -0
- data/Rakefile +12 -0
- data/bin/dxrp5 +11 -0
- data/dxruby_rp5.gemspec +25 -0
- data/lib/dxruby.rb +4 -0
- data/lib/dxruby_rp5/font.rb +36 -0
- data/lib/dxruby_rp5/image.rb +146 -0
- data/lib/dxruby_rp5/input.rb +319 -0
- data/lib/dxruby_rp5/render_target.rb +109 -0
- data/lib/dxruby_rp5/runner.rb +17 -0
- data/lib/dxruby_rp5/runners/base.rb +89 -0
- data/lib/dxruby_rp5/runners/run.rb +5 -0
- data/lib/dxruby_rp5/sound.rb +13 -0
- data/lib/dxruby_rp5/sound_effect.rb +20 -0
- data/lib/dxruby_rp5/sprite.rb +188 -0
- data/lib/dxruby_rp5/version.rb +4 -0
- data/lib/dxruby_rp5/window.rb +148 -0
- data/lib/dxruby_rp5.rb +246 -0
- data/spec/fixtures/image.jpg +0 -0
- data/spec/fixtures/image.png +0 -0
- data/spec/fixtures/sound.wav +0 -0
- data/spec/fixtures/test_sketch.rb +2 -0
- data/spec/lib/dxruby_rp5/font_spec.rb +17 -0
- data/spec/lib/dxruby_rp5/image_spec.rb +194 -0
- data/spec/lib/dxruby_rp5/input_spec.rb +407 -0
- data/spec/lib/dxruby_rp5/render_taret_spec.rb +105 -0
- data/spec/lib/dxruby_rp5/sound_effect_spec.rb +42 -0
- data/spec/lib/dxruby_rp5/sound_spec.rb +50 -0
- data/spec/lib/dxruby_rp5/sprite_spec.rb +566 -0
- data/spec/lib/dxruby_rp5/window_spec.rb +36 -0
- data/spec/lib/dxruby_rp5_spec.rb +8 -0
- data/spec/runner.rb +14 -0
- data/spec/spec.rb +15 -0
- data/spec/spec_helper.rb +43 -0
- data/spec/support/fixture_helper.rb +8 -0
- data/spec/vendor/diff-lcs-1.2.5/.autotest +3 -0
- data/spec/vendor/diff-lcs-1.2.5/.gemtest +0 -0
- data/spec/vendor/diff-lcs-1.2.5/.hoerc +2 -0
- data/spec/vendor/diff-lcs-1.2.5/.rspec +2 -0
- data/spec/vendor/diff-lcs-1.2.5/.travis.yml +22 -0
- data/spec/vendor/diff-lcs-1.2.5/Contributing.rdoc +64 -0
- data/spec/vendor/diff-lcs-1.2.5/Gemfile +20 -0
- data/spec/vendor/diff-lcs-1.2.5/History.rdoc +152 -0
- data/spec/vendor/diff-lcs-1.2.5/License.rdoc +39 -0
- data/spec/vendor/diff-lcs-1.2.5/Manifest.txt +38 -0
- data/spec/vendor/diff-lcs-1.2.5/README.rdoc +85 -0
- data/spec/vendor/diff-lcs-1.2.5/Rakefile +41 -0
- data/spec/vendor/diff-lcs-1.2.5/autotest/discover.rb +1 -0
- data/spec/vendor/diff-lcs-1.2.5/bin/htmldiff +32 -0
- data/spec/vendor/diff-lcs-1.2.5/bin/ldiff +6 -0
- data/spec/vendor/diff-lcs-1.2.5/docs/COPYING.txt +339 -0
- data/spec/vendor/diff-lcs-1.2.5/docs/artistic.txt +127 -0
- data/spec/vendor/diff-lcs-1.2.5/lib/diff/lcs/array.rb +7 -0
- data/spec/vendor/diff-lcs-1.2.5/lib/diff/lcs/block.rb +37 -0
- data/spec/vendor/diff-lcs-1.2.5/lib/diff/lcs/callbacks.rb +322 -0
- data/spec/vendor/diff-lcs-1.2.5/lib/diff/lcs/change.rb +177 -0
- data/spec/vendor/diff-lcs-1.2.5/lib/diff/lcs/htmldiff.rb +149 -0
- data/spec/vendor/diff-lcs-1.2.5/lib/diff/lcs/hunk.rb +276 -0
- data/spec/vendor/diff-lcs-1.2.5/lib/diff/lcs/internals.rb +301 -0
- data/spec/vendor/diff-lcs-1.2.5/lib/diff/lcs/ldiff.rb +195 -0
- data/spec/vendor/diff-lcs-1.2.5/lib/diff/lcs/string.rb +5 -0
- data/spec/vendor/diff-lcs-1.2.5/lib/diff/lcs.rb +805 -0
- data/spec/vendor/diff-lcs-1.2.5/lib/diff-lcs.rb +3 -0
- data/spec/vendor/diff-lcs-1.2.5/spec/change_spec.rb +65 -0
- data/spec/vendor/diff-lcs-1.2.5/spec/diff_spec.rb +47 -0
- data/spec/vendor/diff-lcs-1.2.5/spec/hunk_spec.rb +72 -0
- data/spec/vendor/diff-lcs-1.2.5/spec/issues_spec.rb +24 -0
- data/spec/vendor/diff-lcs-1.2.5/spec/lcs_spec.rb +54 -0
- data/spec/vendor/diff-lcs-1.2.5/spec/patch_spec.rb +414 -0
- data/spec/vendor/diff-lcs-1.2.5/spec/sdiff_spec.rb +214 -0
- data/spec/vendor/diff-lcs-1.2.5/spec/spec_helper.rb +290 -0
- data/spec/vendor/diff-lcs-1.2.5/spec/traverse_balanced_spec.rb +310 -0
- data/spec/vendor/diff-lcs-1.2.5/spec/traverse_sequences_spec.rb +139 -0
- data/spec/vendor/rspec-2.14.1/License.txt +24 -0
- data/spec/vendor/rspec-2.14.1/README.md +47 -0
- data/spec/vendor/rspec-2.14.1/lib/rspec/version.rb +5 -0
- data/spec/vendor/rspec-2.14.1/lib/rspec.rb +3 -0
- data/spec/vendor/rspec-core-2.14.7/.document +5 -0
- data/spec/vendor/rspec-core-2.14.7/.yardopts +6 -0
- data/spec/vendor/rspec-core-2.14.7/Changelog.md +904 -0
- data/spec/vendor/rspec-core-2.14.7/License.txt +24 -0
- data/spec/vendor/rspec-core-2.14.7/README.md +261 -0
- data/spec/vendor/rspec-core-2.14.7/exe/autospec +13 -0
- data/spec/vendor/rspec-core-2.14.7/exe/rspec +25 -0
- data/spec/vendor/rspec-core-2.14.7/features/Autotest.md +38 -0
- data/spec/vendor/rspec-core-2.14.7/features/README.md +17 -0
- data/spec/vendor/rspec-core-2.14.7/features/Upgrade.md +364 -0
- data/spec/vendor/rspec-core-2.14.7/features/command_line/README.md +28 -0
- data/spec/vendor/rspec-core-2.14.7/features/command_line/example_name_option.feature +97 -0
- data/spec/vendor/rspec-core-2.14.7/features/command_line/exit_status.feature +82 -0
- data/spec/vendor/rspec-core-2.14.7/features/command_line/format_option.feature +75 -0
- data/spec/vendor/rspec-core-2.14.7/features/command_line/init.feature +18 -0
- data/spec/vendor/rspec-core-2.14.7/features/command_line/line_number_appended_to_path.feature +140 -0
- data/spec/vendor/rspec-core-2.14.7/features/command_line/line_number_option.feature +58 -0
- data/spec/vendor/rspec-core-2.14.7/features/command_line/order.feature +29 -0
- data/spec/vendor/rspec-core-2.14.7/features/command_line/pattern_option.feature +49 -0
- data/spec/vendor/rspec-core-2.14.7/features/command_line/rake_task.feature +122 -0
- data/spec/vendor/rspec-core-2.14.7/features/command_line/require_option.feature +43 -0
- data/spec/vendor/rspec-core-2.14.7/features/command_line/ruby.feature +22 -0
- data/spec/vendor/rspec-core-2.14.7/features/command_line/tag.feature +98 -0
- data/spec/vendor/rspec-core-2.14.7/features/command_line/warnings_option.feature +29 -0
- data/spec/vendor/rspec-core-2.14.7/features/configuration/alias_example_to.feature +48 -0
- data/spec/vendor/rspec-core-2.14.7/features/configuration/backtrace_clean_patterns.feature +102 -0
- data/spec/vendor/rspec-core-2.14.7/features/configuration/custom_settings.feature +84 -0
- data/spec/vendor/rspec-core-2.14.7/features/configuration/default_path.feature +38 -0
- data/spec/vendor/rspec-core-2.14.7/features/configuration/deprecation_stream.feature +58 -0
- data/spec/vendor/rspec-core-2.14.7/features/configuration/fail_fast.feature +77 -0
- data/spec/vendor/rspec-core-2.14.7/features/configuration/failure_exit_code.feature +36 -0
- data/spec/vendor/rspec-core-2.14.7/features/configuration/order_and_seed.feature +3 -0
- data/spec/vendor/rspec-core-2.14.7/features/configuration/output_stream.feature +24 -0
- data/spec/vendor/rspec-core-2.14.7/features/configuration/pattern.feature +38 -0
- data/spec/vendor/rspec-core-2.14.7/features/configuration/profile.feature +220 -0
- data/spec/vendor/rspec-core-2.14.7/features/configuration/read_options_from_file.feature +90 -0
- data/spec/vendor/rspec-core-2.14.7/features/configuration/run_all_when_everything_filtered.feature +76 -0
- data/spec/vendor/rspec-core-2.14.7/features/configuration/show_failures_in_pending_blocks.feature +61 -0
- data/spec/vendor/rspec-core-2.14.7/features/configuration/treat_symbols_as_metadata_keys_with_true_values.feature +52 -0
- data/spec/vendor/rspec-core-2.14.7/features/example_groups/basic_structure.feature +55 -0
- data/spec/vendor/rspec-core-2.14.7/features/example_groups/shared_context.feature +74 -0
- data/spec/vendor/rspec-core-2.14.7/features/example_groups/shared_examples.feature +294 -0
- data/spec/vendor/rspec-core-2.14.7/features/expectation_framework_integration/configure_expectation_framework.feature +102 -0
- data/spec/vendor/rspec-core-2.14.7/features/filtering/exclusion_filters.feature +138 -0
- data/spec/vendor/rspec-core-2.14.7/features/filtering/if_and_unless.feature +168 -0
- data/spec/vendor/rspec-core-2.14.7/features/filtering/inclusion_filters.feature +105 -0
- data/spec/vendor/rspec-core-2.14.7/features/formatters/configurable_colors.feature +31 -0
- data/spec/vendor/rspec-core-2.14.7/features/formatters/custom_formatter.feature +36 -0
- data/spec/vendor/rspec-core-2.14.7/features/formatters/json_formatter.feature +30 -0
- data/spec/vendor/rspec-core-2.14.7/features/formatters/text_formatter.feature +46 -0
- data/spec/vendor/rspec-core-2.14.7/features/helper_methods/arbitrary_methods.feature +40 -0
- data/spec/vendor/rspec-core-2.14.7/features/helper_methods/let.feature +50 -0
- data/spec/vendor/rspec-core-2.14.7/features/helper_methods/modules.feature +149 -0
- data/spec/vendor/rspec-core-2.14.7/features/hooks/around_hooks.feature +343 -0
- data/spec/vendor/rspec-core-2.14.7/features/hooks/before_and_after_hooks.feature +427 -0
- data/spec/vendor/rspec-core-2.14.7/features/hooks/filtering.feature +234 -0
- data/spec/vendor/rspec-core-2.14.7/features/metadata/current_example.feature +17 -0
- data/spec/vendor/rspec-core-2.14.7/features/metadata/described_class.feature +17 -0
- data/spec/vendor/rspec-core-2.14.7/features/metadata/user_defined.feature +113 -0
- data/spec/vendor/rspec-core-2.14.7/features/mock_framework_integration/use_any_framework.feature +106 -0
- data/spec/vendor/rspec-core-2.14.7/features/mock_framework_integration/use_flexmock.feature +96 -0
- data/spec/vendor/rspec-core-2.14.7/features/mock_framework_integration/use_mocha.feature +97 -0
- data/spec/vendor/rspec-core-2.14.7/features/mock_framework_integration/use_rr.feature +98 -0
- data/spec/vendor/rspec-core-2.14.7/features/mock_framework_integration/use_rspec.feature +97 -0
- data/spec/vendor/rspec-core-2.14.7/features/pending/pending_examples.feature +229 -0
- data/spec/vendor/rspec-core-2.14.7/features/spec_files/arbitrary_file_suffix.feature +13 -0
- data/spec/vendor/rspec-core-2.14.7/features/step_definitions/additional_cli_steps.rb +49 -0
- data/spec/vendor/rspec-core-2.14.7/features/subject/attribute_of_subject.feature +124 -0
- data/spec/vendor/rspec-core-2.14.7/features/subject/explicit_subject.feature +101 -0
- data/spec/vendor/rspec-core-2.14.7/features/subject/implicit_receiver.feature +29 -0
- data/spec/vendor/rspec-core-2.14.7/features/subject/implicit_subject.feature +63 -0
- data/spec/vendor/rspec-core-2.14.7/features/support/env.rb +14 -0
- data/spec/vendor/rspec-core-2.14.7/features/support/rubinius.rb +6 -0
- data/spec/vendor/rspec-core-2.14.7/lib/autotest/discover.rb +1 -0
- data/spec/vendor/rspec-core-2.14.7/lib/autotest/rspec2.rb +73 -0
- data/spec/vendor/rspec-core-2.14.7/lib/rspec/autorun.rb +2 -0
- data/spec/vendor/rspec-core-2.14.7/lib/rspec/core/backtrace_cleaner.rb +46 -0
- data/spec/vendor/rspec-core-2.14.7/lib/rspec/core/backward_compatibility.rb +55 -0
- data/spec/vendor/rspec-core-2.14.7/lib/rspec/core/command_line.rb +36 -0
- data/spec/vendor/rspec-core-2.14.7/lib/rspec/core/configuration.rb +1174 -0
- data/spec/vendor/rspec-core-2.14.7/lib/rspec/core/configuration_options.rb +156 -0
- data/spec/vendor/rspec-core-2.14.7/lib/rspec/core/deprecation.rb +31 -0
- data/spec/vendor/rspec-core-2.14.7/lib/rspec/core/drb_command_line.rb +26 -0
- data/spec/vendor/rspec-core-2.14.7/lib/rspec/core/drb_options.rb +87 -0
- data/spec/vendor/rspec-core-2.14.7/lib/rspec/core/dsl.rb +26 -0
- data/spec/vendor/rspec-core-2.14.7/lib/rspec/core/example.rb +325 -0
- data/spec/vendor/rspec-core-2.14.7/lib/rspec/core/example_group.rb +479 -0
- data/spec/vendor/rspec-core-2.14.7/lib/rspec/core/extensions/instance_eval_with_args.rb +44 -0
- data/spec/vendor/rspec-core-2.14.7/lib/rspec/core/extensions/kernel.rb +9 -0
- data/spec/vendor/rspec-core-2.14.7/lib/rspec/core/extensions/module_eval_with_args.rb +38 -0
- data/spec/vendor/rspec-core-2.14.7/lib/rspec/core/extensions/ordered.rb +27 -0
- data/spec/vendor/rspec-core-2.14.7/lib/rspec/core/filter_manager.rb +203 -0
- data/spec/vendor/rspec-core-2.14.7/lib/rspec/core/formatters/base_formatter.rb +246 -0
- data/spec/vendor/rspec-core-2.14.7/lib/rspec/core/formatters/base_text_formatter.rb +329 -0
- data/spec/vendor/rspec-core-2.14.7/lib/rspec/core/formatters/deprecation_formatter.rb +39 -0
- data/spec/vendor/rspec-core-2.14.7/lib/rspec/core/formatters/documentation_formatter.rb +67 -0
- data/spec/vendor/rspec-core-2.14.7/lib/rspec/core/formatters/helpers.rb +110 -0
- data/spec/vendor/rspec-core-2.14.7/lib/rspec/core/formatters/html_formatter.rb +155 -0
- data/spec/vendor/rspec-core-2.14.7/lib/rspec/core/formatters/html_printer.rb +408 -0
- data/spec/vendor/rspec-core-2.14.7/lib/rspec/core/formatters/json_formatter.rb +70 -0
- data/spec/vendor/rspec-core-2.14.7/lib/rspec/core/formatters/progress_formatter.rb +32 -0
- data/spec/vendor/rspec-core-2.14.7/lib/rspec/core/formatters/snippet_extractor.rb +92 -0
- data/spec/vendor/rspec-core-2.14.7/lib/rspec/core/formatters/text_mate_formatter.rb +34 -0
- data/spec/vendor/rspec-core-2.14.7/lib/rspec/core/formatters.rb +55 -0
- data/spec/vendor/rspec-core-2.14.7/lib/rspec/core/hooks.rb +519 -0
- data/spec/vendor/rspec-core-2.14.7/lib/rspec/core/memoized_helpers.rb +514 -0
- data/spec/vendor/rspec-core-2.14.7/lib/rspec/core/metadata.rb +299 -0
- data/spec/vendor/rspec-core-2.14.7/lib/rspec/core/metadata_hash_builder.rb +97 -0
- data/spec/vendor/rspec-core-2.14.7/lib/rspec/core/mocking/with_absolutely_nothing.rb +11 -0
- data/spec/vendor/rspec-core-2.14.7/lib/rspec/core/mocking/with_flexmock.rb +27 -0
- data/spec/vendor/rspec-core-2.14.7/lib/rspec/core/mocking/with_mocha.rb +52 -0
- data/spec/vendor/rspec-core-2.14.7/lib/rspec/core/mocking/with_rr.rb +27 -0
- data/spec/vendor/rspec-core-2.14.7/lib/rspec/core/mocking/with_rspec.rb +27 -0
- data/spec/vendor/rspec-core-2.14.7/lib/rspec/core/option_parser.rb +219 -0
- data/spec/vendor/rspec-core-2.14.7/lib/rspec/core/pending.rb +113 -0
- data/spec/vendor/rspec-core-2.14.7/lib/rspec/core/project_initializer.rb +86 -0
- data/spec/vendor/rspec-core-2.14.7/lib/rspec/core/rake_task.rb +206 -0
- data/spec/vendor/rspec-core-2.14.7/lib/rspec/core/reporter.rb +132 -0
- data/spec/vendor/rspec-core-2.14.7/lib/rspec/core/ruby_project.rb +44 -0
- data/spec/vendor/rspec-core-2.14.7/lib/rspec/core/runner.rb +87 -0
- data/spec/vendor/rspec-core-2.14.7/lib/rspec/core/shared_context.rb +55 -0
- data/spec/vendor/rspec-core-2.14.7/lib/rspec/core/shared_example_group/collection.rb +43 -0
- data/spec/vendor/rspec-core-2.14.7/lib/rspec/core/shared_example_group.rb +185 -0
- data/spec/vendor/rspec-core-2.14.7/lib/rspec/core/version.rb +8 -0
- data/spec/vendor/rspec-core-2.14.7/lib/rspec/core/world.rb +127 -0
- data/spec/vendor/rspec-core-2.14.7/lib/rspec/core.rb +169 -0
- data/spec/vendor/rspec-core-2.14.7/spec/autotest/discover_spec.rb +19 -0
- data/spec/vendor/rspec-core-2.14.7/spec/autotest/failed_results_re_spec.rb +45 -0
- data/spec/vendor/rspec-core-2.14.7/spec/autotest/rspec_spec.rb +133 -0
- data/spec/vendor/rspec-core-2.14.7/spec/command_line/order_spec.rb +204 -0
- data/spec/vendor/rspec-core-2.14.7/spec/rspec/core/backtrace_cleaner_spec.rb +68 -0
- data/spec/vendor/rspec-core-2.14.7/spec/rspec/core/command_line_spec.rb +108 -0
- data/spec/vendor/rspec-core-2.14.7/spec/rspec/core/command_line_spec_output.txt +0 -0
- data/spec/vendor/rspec-core-2.14.7/spec/rspec/core/configuration_options_spec.rb +417 -0
- data/spec/vendor/rspec-core-2.14.7/spec/rspec/core/configuration_spec.rb +1561 -0
- data/spec/vendor/rspec-core-2.14.7/spec/rspec/core/deprecation_spec.rb +46 -0
- data/spec/vendor/rspec-core-2.14.7/spec/rspec/core/deprecations_spec.rb +73 -0
- data/spec/vendor/rspec-core-2.14.7/spec/rspec/core/drb_command_line_spec.rb +102 -0
- data/spec/vendor/rspec-core-2.14.7/spec/rspec/core/drb_options_spec.rb +193 -0
- data/spec/vendor/rspec-core-2.14.7/spec/rspec/core/dsl_spec.rb +25 -0
- data/spec/vendor/rspec-core-2.14.7/spec/rspec/core/example_group_spec.rb +1187 -0
- data/spec/vendor/rspec-core-2.14.7/spec/rspec/core/example_spec.rb +465 -0
- data/spec/vendor/rspec-core-2.14.7/spec/rspec/core/filter_manager_spec.rb +246 -0
- data/spec/vendor/rspec-core-2.14.7/spec/rspec/core/formatters/base_formatter_spec.rb +108 -0
- data/spec/vendor/rspec-core-2.14.7/spec/rspec/core/formatters/base_text_formatter_spec.rb +494 -0
- data/spec/vendor/rspec-core-2.14.7/spec/rspec/core/formatters/deprecation_formatter_spec.rb +96 -0
- data/spec/vendor/rspec-core-2.14.7/spec/rspec/core/formatters/documentation_formatter_spec.rb +88 -0
- data/spec/vendor/rspec-core-2.14.7/spec/rspec/core/formatters/helpers_spec.rb +104 -0
- data/spec/vendor/rspec-core-2.14.7/spec/rspec/core/formatters/html_formatted-1.8.7-jruby.html +404 -0
- data/spec/vendor/rspec-core-2.14.7/spec/rspec/core/formatters/html_formatted-1.8.7-rbx.html +477 -0
- data/spec/vendor/rspec-core-2.14.7/spec/rspec/core/formatters/html_formatted-1.8.7.html +414 -0
- data/spec/vendor/rspec-core-2.14.7/spec/rspec/core/formatters/html_formatted-1.9.2.html +425 -0
- data/spec/vendor/rspec-core-2.14.7/spec/rspec/core/formatters/html_formatted-1.9.3-jruby.html +404 -0
- data/spec/vendor/rspec-core-2.14.7/spec/rspec/core/formatters/html_formatted-1.9.3-rbx.html +477 -0
- data/spec/vendor/rspec-core-2.14.7/spec/rspec/core/formatters/html_formatted-1.9.3.html +425 -0
- data/spec/vendor/rspec-core-2.14.7/spec/rspec/core/formatters/html_formatted-2.0.0.html +425 -0
- data/spec/vendor/rspec-core-2.14.7/spec/rspec/core/formatters/html_formatter_spec.rb +110 -0
- data/spec/vendor/rspec-core-2.14.7/spec/rspec/core/formatters/json_formatter_spec.rb +115 -0
- data/spec/vendor/rspec-core-2.14.7/spec/rspec/core/formatters/progress_formatter_spec.rb +30 -0
- data/spec/vendor/rspec-core-2.14.7/spec/rspec/core/formatters/snippet_extractor_spec.rb +26 -0
- data/spec/vendor/rspec-core-2.14.7/spec/rspec/core/formatters/text_mate_formatted-1.8.7-jruby.html +395 -0
- data/spec/vendor/rspec-core-2.14.7/spec/rspec/core/formatters/text_mate_formatted-1.8.7-rbx.html +477 -0
- data/spec/vendor/rspec-core-2.14.7/spec/rspec/core/formatters/text_mate_formatted-1.8.7.html +414 -0
- data/spec/vendor/rspec-core-2.14.7/spec/rspec/core/formatters/text_mate_formatted-1.9.2.html +425 -0
- data/spec/vendor/rspec-core-2.14.7/spec/rspec/core/formatters/text_mate_formatted-1.9.3-jruby.html +404 -0
- data/spec/vendor/rspec-core-2.14.7/spec/rspec/core/formatters/text_mate_formatted-1.9.3-rbx.html +477 -0
- data/spec/vendor/rspec-core-2.14.7/spec/rspec/core/formatters/text_mate_formatted-1.9.3.html +425 -0
- data/spec/vendor/rspec-core-2.14.7/spec/rspec/core/formatters/text_mate_formatted-2.0.0.html +425 -0
- data/spec/vendor/rspec-core-2.14.7/spec/rspec/core/formatters/text_mate_formatter_spec.rb +96 -0
- data/spec/vendor/rspec-core-2.14.7/spec/rspec/core/hooks_filtering_spec.rb +227 -0
- data/spec/vendor/rspec-core-2.14.7/spec/rspec/core/hooks_spec.rb +267 -0
- data/spec/vendor/rspec-core-2.14.7/spec/rspec/core/kernel_extensions_spec.rb +9 -0
- data/spec/vendor/rspec-core-2.14.7/spec/rspec/core/memoized_helpers_spec.rb +688 -0
- data/spec/vendor/rspec-core-2.14.7/spec/rspec/core/metadata_spec.rb +491 -0
- data/spec/vendor/rspec-core-2.14.7/spec/rspec/core/option_parser_spec.rb +242 -0
- data/spec/vendor/rspec-core-2.14.7/spec/rspec/core/pending_example_spec.rb +220 -0
- data/spec/vendor/rspec-core-2.14.7/spec/rspec/core/project_initializer_spec.rb +130 -0
- data/spec/vendor/rspec-core-2.14.7/spec/rspec/core/rake_task_spec.rb +181 -0
- data/spec/vendor/rspec-core-2.14.7/spec/rspec/core/reporter_spec.rb +141 -0
- data/spec/vendor/rspec-core-2.14.7/spec/rspec/core/resources/a_bar.rb +0 -0
- data/spec/vendor/rspec-core-2.14.7/spec/rspec/core/resources/a_foo.rb +0 -0
- data/spec/vendor/rspec-core-2.14.7/spec/rspec/core/resources/a_spec.rb +1 -0
- data/spec/vendor/rspec-core-2.14.7/spec/rspec/core/resources/custom_example_group_runner.rb +14 -0
- data/spec/vendor/rspec-core-2.14.7/spec/rspec/core/resources/formatter_specs.rb +60 -0
- data/spec/vendor/rspec-core-2.14.7/spec/rspec/core/resources/utf8_encoded.rb +8 -0
- data/spec/vendor/rspec-core-2.14.7/spec/rspec/core/rspec_matchers_spec.rb +45 -0
- data/spec/vendor/rspec-core-2.14.7/spec/rspec/core/ruby_project_spec.rb +26 -0
- data/spec/vendor/rspec-core-2.14.7/spec/rspec/core/runner_spec.rb +82 -0
- data/spec/vendor/rspec-core-2.14.7/spec/rspec/core/shared_context_spec.rb +114 -0
- data/spec/vendor/rspec-core-2.14.7/spec/rspec/core/shared_example_group/collection_spec.rb +70 -0
- data/spec/vendor/rspec-core-2.14.7/spec/rspec/core/shared_example_group_spec.rb +120 -0
- data/spec/vendor/rspec-core-2.14.7/spec/rspec/core/world_spec.rb +142 -0
- data/spec/vendor/rspec-core-2.14.7/spec/rspec/core_spec.rb +74 -0
- data/spec/vendor/rspec-core-2.14.7/spec/spec_helper.rb +132 -0
- data/spec/vendor/rspec-core-2.14.7/spec/support/config_options_helper.rb +15 -0
- data/spec/vendor/rspec-core-2.14.7/spec/support/helper_methods.rb +36 -0
- data/spec/vendor/rspec-core-2.14.7/spec/support/in_sub_process.rb +37 -0
- data/spec/vendor/rspec-core-2.14.7/spec/support/isolate_load_path_mutation.rb +6 -0
- data/spec/vendor/rspec-core-2.14.7/spec/support/isolated_directory.rb +10 -0
- data/spec/vendor/rspec-core-2.14.7/spec/support/isolated_home_directory.rb +16 -0
- data/spec/vendor/rspec-core-2.14.7/spec/support/matchers.rb +65 -0
- data/spec/vendor/rspec-core-2.14.7/spec/support/mathn_integration_support.rb +12 -0
- data/spec/vendor/rspec-core-2.14.7/spec/support/sandboxed_mock_space.rb +100 -0
- data/spec/vendor/rspec-core-2.14.7/spec/support/shared_example_groups.rb +41 -0
- data/spec/vendor/rspec-core-2.14.7/spec/support/spec_files.rb +44 -0
- data/spec/vendor/rspec-expectations-2.14.4/.document +5 -0
- data/spec/vendor/rspec-expectations-2.14.4/.yardopts +6 -0
- data/spec/vendor/rspec-expectations-2.14.4/Changelog.md +419 -0
- data/spec/vendor/rspec-expectations-2.14.4/License.txt +23 -0
- data/spec/vendor/rspec-expectations-2.14.4/README.md +184 -0
- data/spec/vendor/rspec-expectations-2.14.4/features/README.md +48 -0
- data/spec/vendor/rspec-expectations-2.14.4/features/Upgrade.md +53 -0
- data/spec/vendor/rspec-expectations-2.14.4/features/built_in_matchers/README.md +90 -0
- data/spec/vendor/rspec-expectations-2.14.4/features/built_in_matchers/be.feature +175 -0
- data/spec/vendor/rspec-expectations-2.14.4/features/built_in_matchers/be_within.feature +48 -0
- data/spec/vendor/rspec-expectations-2.14.4/features/built_in_matchers/cover.feature +47 -0
- data/spec/vendor/rspec-expectations-2.14.4/features/built_in_matchers/end_with.feature +48 -0
- data/spec/vendor/rspec-expectations-2.14.4/features/built_in_matchers/equality.feature +139 -0
- data/spec/vendor/rspec-expectations-2.14.4/features/built_in_matchers/exist.feature +45 -0
- data/spec/vendor/rspec-expectations-2.14.4/features/built_in_matchers/expect_change.feature +59 -0
- data/spec/vendor/rspec-expectations-2.14.4/features/built_in_matchers/expect_error.feature +144 -0
- data/spec/vendor/rspec-expectations-2.14.4/features/built_in_matchers/have.feature +109 -0
- data/spec/vendor/rspec-expectations-2.14.4/features/built_in_matchers/include.feature +174 -0
- data/spec/vendor/rspec-expectations-2.14.4/features/built_in_matchers/match.feature +52 -0
- data/spec/vendor/rspec-expectations-2.14.4/features/built_in_matchers/operators.feature +227 -0
- data/spec/vendor/rspec-expectations-2.14.4/features/built_in_matchers/predicates.feature +137 -0
- data/spec/vendor/rspec-expectations-2.14.4/features/built_in_matchers/respond_to.feature +84 -0
- data/spec/vendor/rspec-expectations-2.14.4/features/built_in_matchers/satisfy.feature +33 -0
- data/spec/vendor/rspec-expectations-2.14.4/features/built_in_matchers/start_with.feature +48 -0
- data/spec/vendor/rspec-expectations-2.14.4/features/built_in_matchers/throw_symbol.feature +91 -0
- data/spec/vendor/rspec-expectations-2.14.4/features/built_in_matchers/types.feature +116 -0
- data/spec/vendor/rspec-expectations-2.14.4/features/built_in_matchers/yield.feature +161 -0
- data/spec/vendor/rspec-expectations-2.14.4/features/custom_matchers/access_running_example.feature +53 -0
- data/spec/vendor/rspec-expectations-2.14.4/features/custom_matchers/define_diffable_matcher.feature +27 -0
- data/spec/vendor/rspec-expectations-2.14.4/features/custom_matchers/define_matcher.feature +368 -0
- data/spec/vendor/rspec-expectations-2.14.4/features/custom_matchers/define_matcher_outside_rspec.feature +38 -0
- data/spec/vendor/rspec-expectations-2.14.4/features/custom_matchers/define_matcher_with_fluent_interface.feature +24 -0
- data/spec/vendor/rspec-expectations-2.14.4/features/customized_message.feature +22 -0
- data/spec/vendor/rspec-expectations-2.14.4/features/diffing.feature +85 -0
- data/spec/vendor/rspec-expectations-2.14.4/features/implicit_docstrings.feature +52 -0
- data/spec/vendor/rspec-expectations-2.14.4/features/step_definitions/additional_cli_steps.rb +22 -0
- data/spec/vendor/rspec-expectations-2.14.4/features/support/env.rb +14 -0
- data/spec/vendor/rspec-expectations-2.14.4/features/support/rubinius.rb +6 -0
- data/spec/vendor/rspec-expectations-2.14.4/features/syntax_configuration.feature +71 -0
- data/spec/vendor/rspec-expectations-2.14.4/features/test_frameworks/test_unit.feature +44 -0
- data/spec/vendor/rspec-expectations-2.14.4/lib/rspec/expectations/deprecation.rb +31 -0
- data/spec/vendor/rspec-expectations-2.14.4/lib/rspec/expectations/differ.rb +154 -0
- data/spec/vendor/rspec-expectations-2.14.4/lib/rspec/expectations/errors.rb +9 -0
- data/spec/vendor/rspec-expectations-2.14.4/lib/rspec/expectations/expectation_target.rb +87 -0
- data/spec/vendor/rspec-expectations-2.14.4/lib/rspec/expectations/extensions/array.rb +9 -0
- data/spec/vendor/rspec-expectations-2.14.4/lib/rspec/expectations/extensions/object.rb +29 -0
- data/spec/vendor/rspec-expectations-2.14.4/lib/rspec/expectations/extensions.rb +2 -0
- data/spec/vendor/rspec-expectations-2.14.4/lib/rspec/expectations/fail_with.rb +79 -0
- data/spec/vendor/rspec-expectations-2.14.4/lib/rspec/expectations/handler.rb +68 -0
- data/spec/vendor/rspec-expectations-2.14.4/lib/rspec/expectations/syntax.rb +164 -0
- data/spec/vendor/rspec-expectations-2.14.4/lib/rspec/expectations/version.rb +9 -0
- data/spec/vendor/rspec-expectations-2.14.4/lib/rspec/expectations.rb +73 -0
- data/spec/vendor/rspec-expectations-2.14.4/lib/rspec/matchers/be_close.rb +9 -0
- data/spec/vendor/rspec-expectations-2.14.4/lib/rspec/matchers/built_in/base_matcher.rb +68 -0
- data/spec/vendor/rspec-expectations-2.14.4/lib/rspec/matchers/built_in/be.rb +197 -0
- data/spec/vendor/rspec-expectations-2.14.4/lib/rspec/matchers/built_in/be_instance_of.rb +15 -0
- data/spec/vendor/rspec-expectations-2.14.4/lib/rspec/matchers/built_in/be_kind_of.rb +11 -0
- data/spec/vendor/rspec-expectations-2.14.4/lib/rspec/matchers/built_in/be_within.rb +55 -0
- data/spec/vendor/rspec-expectations-2.14.4/lib/rspec/matchers/built_in/change.rb +141 -0
- data/spec/vendor/rspec-expectations-2.14.4/lib/rspec/matchers/built_in/cover.rb +21 -0
- data/spec/vendor/rspec-expectations-2.14.4/lib/rspec/matchers/built_in/eq.rb +22 -0
- data/spec/vendor/rspec-expectations-2.14.4/lib/rspec/matchers/built_in/eql.rb +23 -0
- data/spec/vendor/rspec-expectations-2.14.4/lib/rspec/matchers/built_in/equal.rb +48 -0
- data/spec/vendor/rspec-expectations-2.14.4/lib/rspec/matchers/built_in/exist.rb +26 -0
- data/spec/vendor/rspec-expectations-2.14.4/lib/rspec/matchers/built_in/has.rb +48 -0
- data/spec/vendor/rspec-expectations-2.14.4/lib/rspec/matchers/built_in/have.rb +124 -0
- data/spec/vendor/rspec-expectations-2.14.4/lib/rspec/matchers/built_in/include.rb +61 -0
- data/spec/vendor/rspec-expectations-2.14.4/lib/rspec/matchers/built_in/match.rb +17 -0
- data/spec/vendor/rspec-expectations-2.14.4/lib/rspec/matchers/built_in/match_array.rb +51 -0
- data/spec/vendor/rspec-expectations-2.14.4/lib/rspec/matchers/built_in/raise_error.rb +127 -0
- data/spec/vendor/rspec-expectations-2.14.4/lib/rspec/matchers/built_in/respond_to.rb +74 -0
- data/spec/vendor/rspec-expectations-2.14.4/lib/rspec/matchers/built_in/satisfy.rb +30 -0
- data/spec/vendor/rspec-expectations-2.14.4/lib/rspec/matchers/built_in/start_and_end_with.rb +48 -0
- data/spec/vendor/rspec-expectations-2.14.4/lib/rspec/matchers/built_in/throw_symbol.rb +94 -0
- data/spec/vendor/rspec-expectations-2.14.4/lib/rspec/matchers/built_in/yield.rb +296 -0
- data/spec/vendor/rspec-expectations-2.14.4/lib/rspec/matchers/built_in.rb +39 -0
- data/spec/vendor/rspec-expectations-2.14.4/lib/rspec/matchers/compatibility.rb +14 -0
- data/spec/vendor/rspec-expectations-2.14.4/lib/rspec/matchers/configuration.rb +108 -0
- data/spec/vendor/rspec-expectations-2.14.4/lib/rspec/matchers/dsl.rb +24 -0
- data/spec/vendor/rspec-expectations-2.14.4/lib/rspec/matchers/extensions/instance_eval_with_args.rb +39 -0
- data/spec/vendor/rspec-expectations-2.14.4/lib/rspec/matchers/generated_descriptions.rb +35 -0
- data/spec/vendor/rspec-expectations-2.14.4/lib/rspec/matchers/matcher.rb +300 -0
- data/spec/vendor/rspec-expectations-2.14.4/lib/rspec/matchers/method_missing.rb +12 -0
- data/spec/vendor/rspec-expectations-2.14.4/lib/rspec/matchers/operator_matcher.rb +113 -0
- data/spec/vendor/rspec-expectations-2.14.4/lib/rspec/matchers/pretty.rb +70 -0
- data/spec/vendor/rspec-expectations-2.14.4/lib/rspec/matchers/test_unit_integration.rb +11 -0
- data/spec/vendor/rspec-expectations-2.14.4/lib/rspec/matchers.rb +694 -0
- data/spec/vendor/rspec-expectations-2.14.4/lib/rspec-expectations.rb +1 -0
- data/spec/vendor/rspec-expectations-2.14.4/spec/rspec/expectations/differ_spec.rb +229 -0
- data/spec/vendor/rspec-expectations-2.14.4/spec/rspec/expectations/expectation_target_spec.rb +82 -0
- data/spec/vendor/rspec-expectations-2.14.4/spec/rspec/expectations/extensions/kernel_spec.rb +67 -0
- data/spec/vendor/rspec-expectations-2.14.4/spec/rspec/expectations/fail_with_spec.rb +114 -0
- data/spec/vendor/rspec-expectations-2.14.4/spec/rspec/expectations/handler_spec.rb +227 -0
- data/spec/vendor/rspec-expectations-2.14.4/spec/rspec/expectations/syntax_spec.rb +139 -0
- data/spec/vendor/rspec-expectations-2.14.4/spec/rspec/expectations_spec.rb +50 -0
- data/spec/vendor/rspec-expectations-2.14.4/spec/rspec/matchers/base_matcher_spec.rb +62 -0
- data/spec/vendor/rspec-expectations-2.14.4/spec/rspec/matchers/be_close_spec.rb +22 -0
- data/spec/vendor/rspec-expectations-2.14.4/spec/rspec/matchers/be_instance_of_spec.rb +63 -0
- data/spec/vendor/rspec-expectations-2.14.4/spec/rspec/matchers/be_kind_of_spec.rb +41 -0
- data/spec/vendor/rspec-expectations-2.14.4/spec/rspec/matchers/be_spec.rb +522 -0
- data/spec/vendor/rspec-expectations-2.14.4/spec/rspec/matchers/be_within_spec.rb +137 -0
- data/spec/vendor/rspec-expectations-2.14.4/spec/rspec/matchers/change_spec.rb +567 -0
- data/spec/vendor/rspec-expectations-2.14.4/spec/rspec/matchers/configuration_spec.rb +206 -0
- data/spec/vendor/rspec-expectations-2.14.4/spec/rspec/matchers/cover_spec.rb +69 -0
- data/spec/vendor/rspec-expectations-2.14.4/spec/rspec/matchers/description_generation_spec.rb +190 -0
- data/spec/vendor/rspec-expectations-2.14.4/spec/rspec/matchers/dsl_spec.rb +57 -0
- data/spec/vendor/rspec-expectations-2.14.4/spec/rspec/matchers/eq_spec.rb +60 -0
- data/spec/vendor/rspec-expectations-2.14.4/spec/rspec/matchers/eql_spec.rb +41 -0
- data/spec/vendor/rspec-expectations-2.14.4/spec/rspec/matchers/equal_spec.rb +78 -0
- data/spec/vendor/rspec-expectations-2.14.4/spec/rspec/matchers/exist_spec.rb +124 -0
- data/spec/vendor/rspec-expectations-2.14.4/spec/rspec/matchers/has_spec.rb +122 -0
- data/spec/vendor/rspec-expectations-2.14.4/spec/rspec/matchers/have_spec.rb +455 -0
- data/spec/vendor/rspec-expectations-2.14.4/spec/rspec/matchers/include_matcher_integration_spec.rb +30 -0
- data/spec/vendor/rspec-expectations-2.14.4/spec/rspec/matchers/include_spec.rb +531 -0
- data/spec/vendor/rspec-expectations-2.14.4/spec/rspec/matchers/match_array_spec.rb +194 -0
- data/spec/vendor/rspec-expectations-2.14.4/spec/rspec/matchers/match_spec.rb +74 -0
- data/spec/vendor/rspec-expectations-2.14.4/spec/rspec/matchers/matcher_spec.rb +471 -0
- data/spec/vendor/rspec-expectations-2.14.4/spec/rspec/matchers/matchers_spec.rb +37 -0
- data/spec/vendor/rspec-expectations-2.14.4/spec/rspec/matchers/method_missing_spec.rb +28 -0
- data/spec/vendor/rspec-expectations-2.14.4/spec/rspec/matchers/operator_matcher_spec.rb +252 -0
- data/spec/vendor/rspec-expectations-2.14.4/spec/rspec/matchers/raise_error_spec.rb +535 -0
- data/spec/vendor/rspec-expectations-2.14.4/spec/rspec/matchers/respond_to_spec.rb +292 -0
- data/spec/vendor/rspec-expectations-2.14.4/spec/rspec/matchers/satisfy_spec.rb +44 -0
- data/spec/vendor/rspec-expectations-2.14.4/spec/rspec/matchers/start_with_end_with_spec.rb +186 -0
- data/spec/vendor/rspec-expectations-2.14.4/spec/rspec/matchers/throw_symbol_spec.rb +116 -0
- data/spec/vendor/rspec-expectations-2.14.4/spec/rspec/matchers/yield_spec.rb +514 -0
- data/spec/vendor/rspec-expectations-2.14.4/spec/spec_helper.rb +54 -0
- data/spec/vendor/rspec-expectations-2.14.4/spec/support/classes.rb +56 -0
- data/spec/vendor/rspec-expectations-2.14.4/spec/support/in_sub_process.rb +38 -0
- data/spec/vendor/rspec-expectations-2.14.4/spec/support/matchers.rb +22 -0
- data/spec/vendor/rspec-expectations-2.14.4/spec/support/ruby_version.rb +10 -0
- data/spec/vendor/rspec-expectations-2.14.4/spec/support/shared_examples.rb +13 -0
- data/spec/vendor/rspec-mocks-2.14.4/.document +5 -0
- data/spec/vendor/rspec-mocks-2.14.4/.yardopts +6 -0
- data/spec/vendor/rspec-mocks-2.14.4/Changelog.md +420 -0
- data/spec/vendor/rspec-mocks-2.14.4/License.txt +23 -0
- data/spec/vendor/rspec-mocks-2.14.4/README.md +315 -0
- data/spec/vendor/rspec-mocks-2.14.4/features/README.md +67 -0
- data/spec/vendor/rspec-mocks-2.14.4/features/Scope.md +17 -0
- data/spec/vendor/rspec-mocks-2.14.4/features/Upgrade.md +22 -0
- data/spec/vendor/rspec-mocks-2.14.4/features/argument_matchers/README.md +27 -0
- data/spec/vendor/rspec-mocks-2.14.4/features/argument_matchers/explicit.feature +59 -0
- data/spec/vendor/rspec-mocks-2.14.4/features/argument_matchers/general_matchers.feature +85 -0
- data/spec/vendor/rspec-mocks-2.14.4/features/argument_matchers/type_matchers.feature +26 -0
- data/spec/vendor/rspec-mocks-2.14.4/features/message_expectations/README.md +73 -0
- data/spec/vendor/rspec-mocks-2.14.4/features/message_expectations/allow_any_instance_of.feature +26 -0
- data/spec/vendor/rspec-mocks-2.14.4/features/message_expectations/any_instance.feature +21 -0
- data/spec/vendor/rspec-mocks-2.14.4/features/message_expectations/block_local_expectations.feature.pending +55 -0
- data/spec/vendor/rspec-mocks-2.14.4/features/message_expectations/call_original.feature +24 -0
- data/spec/vendor/rspec-mocks-2.14.4/features/message_expectations/expect_any_instance_of.feature +27 -0
- data/spec/vendor/rspec-mocks-2.14.4/features/message_expectations/expect_message_using_expect.feature +107 -0
- data/spec/vendor/rspec-mocks-2.14.4/features/message_expectations/expect_message_using_should_receive.feature +118 -0
- data/spec/vendor/rspec-mocks-2.14.4/features/message_expectations/receive_counts.feature +209 -0
- data/spec/vendor/rspec-mocks-2.14.4/features/message_expectations/warn_when_expectation_is_set_on_nil.feature +50 -0
- data/spec/vendor/rspec-mocks-2.14.4/features/method_stubs/README.md +73 -0
- data/spec/vendor/rspec-mocks-2.14.4/features/method_stubs/any_instance.feature +136 -0
- data/spec/vendor/rspec-mocks-2.14.4/features/method_stubs/as_null_object.feature +40 -0
- data/spec/vendor/rspec-mocks-2.14.4/features/method_stubs/simple_return_value_with_allow.feature +44 -0
- data/spec/vendor/rspec-mocks-2.14.4/features/method_stubs/simple_return_value_with_stub.feature +64 -0
- data/spec/vendor/rspec-mocks-2.14.4/features/method_stubs/stub_chain.feature +51 -0
- data/spec/vendor/rspec-mocks-2.14.4/features/method_stubs/stub_implementation.feature +48 -0
- data/spec/vendor/rspec-mocks-2.14.4/features/method_stubs/to_ary.feature +51 -0
- data/spec/vendor/rspec-mocks-2.14.4/features/mutating_constants/README.md +82 -0
- data/spec/vendor/rspec-mocks-2.14.4/features/mutating_constants/hiding_defined_constant.feature +64 -0
- data/spec/vendor/rspec-mocks-2.14.4/features/mutating_constants/stub_defined_constant.feature +79 -0
- data/spec/vendor/rspec-mocks-2.14.4/features/mutating_constants/stub_undefined_constant.feature +50 -0
- data/spec/vendor/rspec-mocks-2.14.4/features/outside_rspec/configuration.feature +62 -0
- data/spec/vendor/rspec-mocks-2.14.4/features/outside_rspec/standalone.feature +33 -0
- data/spec/vendor/rspec-mocks-2.14.4/features/spies/spy_partial_mock_method.feature +34 -0
- data/spec/vendor/rspec-mocks-2.14.4/features/spies/spy_pure_mock_method.feature +76 -0
- data/spec/vendor/rspec-mocks-2.14.4/features/spies/spy_unstubbed_method.feature +18 -0
- data/spec/vendor/rspec-mocks-2.14.4/features/step_definitions/additional_cli_steps.rb +11 -0
- data/spec/vendor/rspec-mocks-2.14.4/features/support/env.rb +13 -0
- data/spec/vendor/rspec-mocks-2.14.4/features/support/rubinius.rb +6 -0
- data/spec/vendor/rspec-mocks-2.14.4/features/test_frameworks/test_unit.feature +43 -0
- data/spec/vendor/rspec-mocks-2.14.4/lib/rspec/mocks/any_instance/chain.rb +94 -0
- data/spec/vendor/rspec-mocks-2.14.4/lib/rspec/mocks/any_instance/expectation_chain.rb +42 -0
- data/spec/vendor/rspec-mocks-2.14.4/lib/rspec/mocks/any_instance/message_chains.rb +60 -0
- data/spec/vendor/rspec-mocks-2.14.4/lib/rspec/mocks/any_instance/recorder.rb +211 -0
- data/spec/vendor/rspec-mocks-2.14.4/lib/rspec/mocks/any_instance/stub_chain.rb +40 -0
- data/spec/vendor/rspec-mocks-2.14.4/lib/rspec/mocks/any_instance/stub_chain_chain.rb +23 -0
- data/spec/vendor/rspec-mocks-2.14.4/lib/rspec/mocks/argument_list_matcher.rb +97 -0
- data/spec/vendor/rspec-mocks-2.14.4/lib/rspec/mocks/argument_matchers.rb +238 -0
- data/spec/vendor/rspec-mocks-2.14.4/lib/rspec/mocks/configuration.rb +55 -0
- data/spec/vendor/rspec-mocks-2.14.4/lib/rspec/mocks/deprecation.rb +18 -0
- data/spec/vendor/rspec-mocks-2.14.4/lib/rspec/mocks/error_generator.rb +179 -0
- data/spec/vendor/rspec-mocks-2.14.4/lib/rspec/mocks/errors.rb +12 -0
- data/spec/vendor/rspec-mocks-2.14.4/lib/rspec/mocks/example_methods.rb +156 -0
- data/spec/vendor/rspec-mocks-2.14.4/lib/rspec/mocks/extensions/instance_exec.rb +34 -0
- data/spec/vendor/rspec-mocks-2.14.4/lib/rspec/mocks/extensions/marshal.rb +17 -0
- data/spec/vendor/rspec-mocks-2.14.4/lib/rspec/mocks/framework.rb +34 -0
- data/spec/vendor/rspec-mocks-2.14.4/lib/rspec/mocks/instance_method_stasher.rb +94 -0
- data/spec/vendor/rspec-mocks-2.14.4/lib/rspec/mocks/matchers/have_received.rb +93 -0
- data/spec/vendor/rspec-mocks-2.14.4/lib/rspec/mocks/matchers/receive.rb +97 -0
- data/spec/vendor/rspec-mocks-2.14.4/lib/rspec/mocks/message_expectation.rb +583 -0
- data/spec/vendor/rspec-mocks-2.14.4/lib/rspec/mocks/method_double.rb +271 -0
- data/spec/vendor/rspec-mocks-2.14.4/lib/rspec/mocks/mock.rb +7 -0
- data/spec/vendor/rspec-mocks-2.14.4/lib/rspec/mocks/mutate_const.rb +403 -0
- data/spec/vendor/rspec-mocks-2.14.4/lib/rspec/mocks/order_group.rb +40 -0
- data/spec/vendor/rspec-mocks-2.14.4/lib/rspec/mocks/proxy.rb +223 -0
- data/spec/vendor/rspec-mocks-2.14.4/lib/rspec/mocks/proxy_for_nil.rb +37 -0
- data/spec/vendor/rspec-mocks-2.14.4/lib/rspec/mocks/space.rb +91 -0
- data/spec/vendor/rspec-mocks-2.14.4/lib/rspec/mocks/standalone.rb +3 -0
- data/spec/vendor/rspec-mocks-2.14.4/lib/rspec/mocks/stub_chain.rb +51 -0
- data/spec/vendor/rspec-mocks-2.14.4/lib/rspec/mocks/syntax.rb +349 -0
- data/spec/vendor/rspec-mocks-2.14.4/lib/rspec/mocks/targets.rb +69 -0
- data/spec/vendor/rspec-mocks-2.14.4/lib/rspec/mocks/test_double.rb +135 -0
- data/spec/vendor/rspec-mocks-2.14.4/lib/rspec/mocks/version.rb +7 -0
- data/spec/vendor/rspec-mocks-2.14.4/lib/rspec/mocks.rb +96 -0
- data/spec/vendor/rspec-mocks-2.14.4/lib/spec/mocks.rb +4 -0
- data/spec/vendor/rspec-mocks-2.14.4/spec/rspec/mocks/and_call_original_spec.rb +243 -0
- data/spec/vendor/rspec-mocks-2.14.4/spec/rspec/mocks/and_yield_spec.rb +127 -0
- data/spec/vendor/rspec-mocks-2.14.4/spec/rspec/mocks/any_instance/message_chains_spec.rb +41 -0
- data/spec/vendor/rspec-mocks-2.14.4/spec/rspec/mocks/any_instance_spec.rb +987 -0
- data/spec/vendor/rspec-mocks-2.14.4/spec/rspec/mocks/any_number_of_times_spec.rb +36 -0
- data/spec/vendor/rspec-mocks-2.14.4/spec/rspec/mocks/argument_expectation_spec.rb +32 -0
- data/spec/vendor/rspec-mocks-2.14.4/spec/rspec/mocks/at_least_spec.rb +151 -0
- data/spec/vendor/rspec-mocks-2.14.4/spec/rspec/mocks/at_most_spec.rb +90 -0
- data/spec/vendor/rspec-mocks-2.14.4/spec/rspec/mocks/block_return_value_spec.rb +88 -0
- data/spec/vendor/rspec-mocks-2.14.4/spec/rspec/mocks/bug_report_10260_spec.rb +8 -0
- data/spec/vendor/rspec-mocks-2.14.4/spec/rspec/mocks/bug_report_10263_spec.rb +27 -0
- data/spec/vendor/rspec-mocks-2.14.4/spec/rspec/mocks/bug_report_11545_spec.rb +32 -0
- data/spec/vendor/rspec-mocks-2.14.4/spec/rspec/mocks/bug_report_496_spec.rb +17 -0
- data/spec/vendor/rspec-mocks-2.14.4/spec/rspec/mocks/bug_report_600_spec.rb +22 -0
- data/spec/vendor/rspec-mocks-2.14.4/spec/rspec/mocks/bug_report_7611_spec.rb +16 -0
- data/spec/vendor/rspec-mocks-2.14.4/spec/rspec/mocks/bug_report_8165_spec.rb +31 -0
- data/spec/vendor/rspec-mocks-2.14.4/spec/rspec/mocks/bug_report_830_spec.rb +21 -0
- data/spec/vendor/rspec-mocks-2.14.4/spec/rspec/mocks/bug_report_957_spec.rb +22 -0
- data/spec/vendor/rspec-mocks-2.14.4/spec/rspec/mocks/combining_implementation_instructions_spec.rb +205 -0
- data/spec/vendor/rspec-mocks-2.14.4/spec/rspec/mocks/configuration_spec.rb +150 -0
- data/spec/vendor/rspec-mocks-2.14.4/spec/rspec/mocks/double_spec.rb +24 -0
- data/spec/vendor/rspec-mocks-2.14.4/spec/rspec/mocks/extensions/marshal_spec.rb +54 -0
- data/spec/vendor/rspec-mocks-2.14.4/spec/rspec/mocks/failing_argument_matchers_spec.rb +110 -0
- data/spec/vendor/rspec-mocks-2.14.4/spec/rspec/mocks/hash_excluding_matcher_spec.rb +67 -0
- data/spec/vendor/rspec-mocks-2.14.4/spec/rspec/mocks/hash_including_matcher_spec.rb +90 -0
- data/spec/vendor/rspec-mocks-2.14.4/spec/rspec/mocks/instance_method_stasher_spec.rb +58 -0
- data/spec/vendor/rspec-mocks-2.14.4/spec/rspec/mocks/matchers/have_received_spec.rb +266 -0
- data/spec/vendor/rspec-mocks-2.14.4/spec/rspec/mocks/matchers/receive_spec.rb +336 -0
- data/spec/vendor/rspec-mocks-2.14.4/spec/rspec/mocks/methods_spec.rb +27 -0
- data/spec/vendor/rspec-mocks-2.14.4/spec/rspec/mocks/mock_ordering_spec.rb +103 -0
- data/spec/vendor/rspec-mocks-2.14.4/spec/rspec/mocks/mock_space_spec.rb +113 -0
- data/spec/vendor/rspec-mocks-2.14.4/spec/rspec/mocks/mock_spec.rb +798 -0
- data/spec/vendor/rspec-mocks-2.14.4/spec/rspec/mocks/multiple_return_value_spec.rb +132 -0
- data/spec/vendor/rspec-mocks-2.14.4/spec/rspec/mocks/mutate_const_spec.rb +501 -0
- data/spec/vendor/rspec-mocks-2.14.4/spec/rspec/mocks/nil_expectation_warning_spec.rb +68 -0
- data/spec/vendor/rspec-mocks-2.14.4/spec/rspec/mocks/null_object_mock_spec.rb +123 -0
- data/spec/vendor/rspec-mocks-2.14.4/spec/rspec/mocks/once_counts_spec.rb +52 -0
- data/spec/vendor/rspec-mocks-2.14.4/spec/rspec/mocks/options_hash_spec.rb +35 -0
- data/spec/vendor/rspec-mocks-2.14.4/spec/rspec/mocks/partial_mock_spec.rb +205 -0
- data/spec/vendor/rspec-mocks-2.14.4/spec/rspec/mocks/partial_mock_using_mocks_directly_spec.rb +95 -0
- data/spec/vendor/rspec-mocks-2.14.4/spec/rspec/mocks/passing_argument_matchers_spec.rb +142 -0
- data/spec/vendor/rspec-mocks-2.14.4/spec/rspec/mocks/precise_counts_spec.rb +68 -0
- data/spec/vendor/rspec-mocks-2.14.4/spec/rspec/mocks/record_messages_spec.rb +26 -0
- data/spec/vendor/rspec-mocks-2.14.4/spec/rspec/mocks/serialization_spec.rb +89 -0
- data/spec/vendor/rspec-mocks-2.14.4/spec/rspec/mocks/space_spec.rb +32 -0
- data/spec/vendor/rspec-mocks-2.14.4/spec/rspec/mocks/stash_spec.rb +46 -0
- data/spec/vendor/rspec-mocks-2.14.4/spec/rspec/mocks/stub_chain_spec.rb +154 -0
- data/spec/vendor/rspec-mocks-2.14.4/spec/rspec/mocks/stub_implementation_spec.rb +81 -0
- data/spec/vendor/rspec-mocks-2.14.4/spec/rspec/mocks/stub_spec.rb +353 -0
- data/spec/vendor/rspec-mocks-2.14.4/spec/rspec/mocks/stubbed_message_expectations_spec.rb +58 -0
- data/spec/vendor/rspec-mocks-2.14.4/spec/rspec/mocks/syntax_agnostic_message_matchers_spec.rb +81 -0
- data/spec/vendor/rspec-mocks-2.14.4/spec/rspec/mocks/test_double_spec.rb +67 -0
- data/spec/vendor/rspec-mocks-2.14.4/spec/rspec/mocks/to_ary_spec.rb +54 -0
- data/spec/vendor/rspec-mocks-2.14.4/spec/rspec/mocks/twice_counts_spec.rb +66 -0
- data/spec/vendor/rspec-mocks-2.14.4/spec/rspec/mocks_spec.rb +65 -0
- data/spec/vendor/rspec-mocks-2.14.4/spec/spec_helper.rb +60 -0
- metadata +1170 -0
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
Feature: line number appended to file path
|
|
2
|
+
|
|
3
|
+
To run one or more examples or groups, you can append the line number to the path, e.g.
|
|
4
|
+
|
|
5
|
+
rspec path/to/example_spec.rb:37
|
|
6
|
+
|
|
7
|
+
Background:
|
|
8
|
+
Given a file named "example_spec.rb" with:
|
|
9
|
+
"""ruby
|
|
10
|
+
describe "outer group" do
|
|
11
|
+
|
|
12
|
+
it "first example in outer group" do
|
|
13
|
+
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
it "second example in outer group" do
|
|
17
|
+
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
describe "nested group" do
|
|
21
|
+
|
|
22
|
+
it "example in nested group" do
|
|
23
|
+
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
end
|
|
29
|
+
"""
|
|
30
|
+
And a file named "example2_spec.rb" with:
|
|
31
|
+
"""ruby
|
|
32
|
+
describe "yet another group" do
|
|
33
|
+
it "first example in second file" do
|
|
34
|
+
end
|
|
35
|
+
it "second example in second file" do
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
"""
|
|
39
|
+
|
|
40
|
+
Scenario: nested groups - outer group on declaration line
|
|
41
|
+
When I run `rspec example_spec.rb:1 --format doc`
|
|
42
|
+
Then the examples should all pass
|
|
43
|
+
And the output should contain "second example in outer group"
|
|
44
|
+
And the output should contain "first example in outer group"
|
|
45
|
+
And the output should contain "example in nested group"
|
|
46
|
+
|
|
47
|
+
Scenario: nested groups - outer group inside block before example
|
|
48
|
+
When I run `rspec example_spec.rb:2 --format doc`
|
|
49
|
+
Then the examples should all pass
|
|
50
|
+
And the output should contain "second example in outer group"
|
|
51
|
+
And the output should contain "first example in outer group"
|
|
52
|
+
And the output should contain "example in nested group"
|
|
53
|
+
|
|
54
|
+
Scenario: nested groups - inner group on declaration line
|
|
55
|
+
When I run `rspec example_spec.rb:11 --format doc`
|
|
56
|
+
Then the examples should all pass
|
|
57
|
+
And the output should contain "example in nested group"
|
|
58
|
+
And the output should not contain "second example in outer group"
|
|
59
|
+
And the output should not contain "first example in outer group"
|
|
60
|
+
|
|
61
|
+
Scenario: nested groups - inner group inside block before example
|
|
62
|
+
When I run `rspec example_spec.rb:12 --format doc`
|
|
63
|
+
Then the examples should all pass
|
|
64
|
+
And the output should contain "example in nested group"
|
|
65
|
+
And the output should not contain "second example in outer group"
|
|
66
|
+
And the output should not contain "first example in outer group"
|
|
67
|
+
|
|
68
|
+
Scenario: two examples - first example on declaration line
|
|
69
|
+
When I run `rspec example_spec.rb:3 --format doc`
|
|
70
|
+
Then the examples should all pass
|
|
71
|
+
And the output should contain "first example in outer group"
|
|
72
|
+
But the output should not contain "second example in outer group"
|
|
73
|
+
And the output should not contain "example in nested group"
|
|
74
|
+
|
|
75
|
+
Scenario: two examples - first example inside block
|
|
76
|
+
When I run `rspec example_spec.rb:4 --format doc`
|
|
77
|
+
Then the examples should all pass
|
|
78
|
+
And the output should contain "first example in outer group"
|
|
79
|
+
But the output should not contain "second example in outer group"
|
|
80
|
+
And the output should not contain "example in nested group"
|
|
81
|
+
|
|
82
|
+
Scenario: two examples - first example on end
|
|
83
|
+
When I run `rspec example_spec.rb:5 --format doc`
|
|
84
|
+
Then the examples should all pass
|
|
85
|
+
And the output should contain "first example in outer group"
|
|
86
|
+
But the output should not contain "second example in outer group"
|
|
87
|
+
And the output should not contain "example in nested group"
|
|
88
|
+
|
|
89
|
+
Scenario: two examples - first example after end but before next example
|
|
90
|
+
When I run `rspec example_spec.rb:6 --format doc`
|
|
91
|
+
Then the examples should all pass
|
|
92
|
+
And the output should contain "first example in outer group"
|
|
93
|
+
But the output should not contain "second example in outer group"
|
|
94
|
+
And the output should not contain "example in nested group"
|
|
95
|
+
|
|
96
|
+
Scenario: two examples - second example on declaration line
|
|
97
|
+
When I run `rspec example_spec.rb:7 --format doc`
|
|
98
|
+
Then the examples should all pass
|
|
99
|
+
And the output should contain "second example in outer group"
|
|
100
|
+
But the output should not contain "first example in outer group"
|
|
101
|
+
And the output should not contain "example in nested group"
|
|
102
|
+
|
|
103
|
+
Scenario: two examples - second example inside block
|
|
104
|
+
When I run `rspec example_spec.rb:7 --format doc`
|
|
105
|
+
Then the examples should all pass
|
|
106
|
+
And the output should contain "second example in outer group"
|
|
107
|
+
But the output should not contain "first example in outer group"
|
|
108
|
+
And the output should not contain "example in nested group"
|
|
109
|
+
|
|
110
|
+
Scenario: two examples - second example on end
|
|
111
|
+
When I run `rspec example_spec.rb:7 --format doc`
|
|
112
|
+
Then the examples should all pass
|
|
113
|
+
And the output should contain "second example in outer group"
|
|
114
|
+
But the output should not contain "first example in outer group"
|
|
115
|
+
And the output should not contain "example in nested group"
|
|
116
|
+
|
|
117
|
+
Scenario: specified multiple times for different files
|
|
118
|
+
When I run `rspec example_spec.rb:7 example2_spec.rb:4 --format doc`
|
|
119
|
+
Then the examples should all pass
|
|
120
|
+
And the output should contain "second example in outer group"
|
|
121
|
+
And the output should contain "second example in second file"
|
|
122
|
+
But the output should not contain "first example in outer group"
|
|
123
|
+
And the output should not contain "nested group"
|
|
124
|
+
And the output should not contain "first example in second file"
|
|
125
|
+
|
|
126
|
+
Scenario: specified multiple times for the same file with multiple arguments
|
|
127
|
+
When I run `rspec example_spec.rb:7 example_spec.rb:11 --format doc`
|
|
128
|
+
Then the examples should all pass
|
|
129
|
+
And the output should contain "second example in outer group"
|
|
130
|
+
And the output should contain "nested group"
|
|
131
|
+
But the output should not contain "first example in outer group"
|
|
132
|
+
And the output should not contain "second file"
|
|
133
|
+
|
|
134
|
+
Scenario: specified multiple times for the same file with a single argument
|
|
135
|
+
When I run `rspec example_spec.rb:7:11 --format doc`
|
|
136
|
+
Then the examples should all pass
|
|
137
|
+
And the output should contain "second example in outer group"
|
|
138
|
+
And the output should contain "nested group"
|
|
139
|
+
But the output should not contain "first example in outer group"
|
|
140
|
+
And the output should not contain "second file"
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
Feature: --line_number option
|
|
2
|
+
|
|
3
|
+
To run a examples or groups by line numbers, one can use the --line_number option:
|
|
4
|
+
|
|
5
|
+
rspec path/to/example_spec.rb --line_number 37
|
|
6
|
+
|
|
7
|
+
This option can be specified multiple times.
|
|
8
|
+
|
|
9
|
+
Scenario: standard examples
|
|
10
|
+
Given a file named "example_spec.rb" with:
|
|
11
|
+
"""ruby
|
|
12
|
+
require "rspec/expectations"
|
|
13
|
+
|
|
14
|
+
describe 9 do
|
|
15
|
+
|
|
16
|
+
it "should be > 8" do
|
|
17
|
+
9.should be > 8
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
it "should be < 10" do
|
|
21
|
+
9.should be < 10
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
it "should be 3 squared" do
|
|
25
|
+
9.should be 3*3
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
end
|
|
29
|
+
"""
|
|
30
|
+
When I run `rspec example_spec.rb --line_number 5 --format doc`
|
|
31
|
+
Then the examples should all pass
|
|
32
|
+
And the output should contain "should be > 8"
|
|
33
|
+
But the output should not contain "should be < 10"
|
|
34
|
+
And the output should not contain "should be 3*3"
|
|
35
|
+
|
|
36
|
+
When I run `rspec example_spec.rb --line_number 5 --line_number 9 --format doc`
|
|
37
|
+
Then the examples should all pass
|
|
38
|
+
And the output should contain "should be > 8"
|
|
39
|
+
And the output should contain "should be < 10"
|
|
40
|
+
But the output should not contain "should be 3*3"
|
|
41
|
+
|
|
42
|
+
Scenario: one liner
|
|
43
|
+
Given a file named "example_spec.rb" with:
|
|
44
|
+
"""ruby
|
|
45
|
+
require "rspec/expectations"
|
|
46
|
+
|
|
47
|
+
describe 9 do
|
|
48
|
+
|
|
49
|
+
it { should be > 8 }
|
|
50
|
+
|
|
51
|
+
it { should be < 10 }
|
|
52
|
+
|
|
53
|
+
end
|
|
54
|
+
"""
|
|
55
|
+
When I run `rspec example_spec.rb --line_number 5 --format doc`
|
|
56
|
+
Then the examples should all pass
|
|
57
|
+
Then the output should contain "should be > 8"
|
|
58
|
+
But the output should not contain "should be < 10"
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
Feature: --order (new in rspec-core-2.8)
|
|
2
|
+
|
|
3
|
+
Use the `--order` option to tell RSpec how to order the files, groups, and
|
|
4
|
+
examples. Options are `default` and `rand`:
|
|
5
|
+
|
|
6
|
+
Default is:
|
|
7
|
+
|
|
8
|
+
* files are ordered based on the underlying file system's order (typically
|
|
9
|
+
case-sensitive alpha on *nix OS's and case-insenstive alpha in Windows)
|
|
10
|
+
* groups/examples are loaded in the order in which they are declared
|
|
11
|
+
|
|
12
|
+
Use `rand` to randomize the order of files, groups within files, and
|
|
13
|
+
examples within groups.*
|
|
14
|
+
|
|
15
|
+
* Nested groups are always run from top-level to bottom-level in order to avoid
|
|
16
|
+
executing `before(:all)` and `after(:all)` hooks more than once, but the order
|
|
17
|
+
of groups at each level is randomized.
|
|
18
|
+
|
|
19
|
+
You can also specify a seed
|
|
20
|
+
|
|
21
|
+
<h3>Examples</h3>
|
|
22
|
+
|
|
23
|
+
--order default
|
|
24
|
+
--order rand
|
|
25
|
+
--order rand:123
|
|
26
|
+
--seed 123 # same as --order rand:123
|
|
27
|
+
|
|
28
|
+
The `default` option is only necessary when you have `--order rand` stored in a
|
|
29
|
+
config file (e.g. `.rspec`) and you want to override it from the command line.
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
Feature: pattern option
|
|
2
|
+
|
|
3
|
+
By default, RSpec loads files matching the pattern:
|
|
4
|
+
|
|
5
|
+
"spec/**/*_spec.rb"
|
|
6
|
+
|
|
7
|
+
Use the `--pattern` option to declare a different pattern.
|
|
8
|
+
|
|
9
|
+
Scenario: default pattern
|
|
10
|
+
Given a file named "spec/example_spec.rb" with:
|
|
11
|
+
"""ruby
|
|
12
|
+
describe "addition" do
|
|
13
|
+
it "adds things" do
|
|
14
|
+
(1 + 2).should eq(3)
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
"""
|
|
18
|
+
When I run `rspec`
|
|
19
|
+
Then the output should contain "1 example, 0 failures"
|
|
20
|
+
|
|
21
|
+
Scenario: override the default pattern on the command line
|
|
22
|
+
Given a file named "spec/example.spec" with:
|
|
23
|
+
"""ruby
|
|
24
|
+
describe "addition" do
|
|
25
|
+
it "adds things" do
|
|
26
|
+
(1 + 2).should eq(3)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
"""
|
|
30
|
+
When I run `rspec --pattern "spec/**/*.spec"`
|
|
31
|
+
Then the output should contain "1 example, 0 failures"
|
|
32
|
+
|
|
33
|
+
Scenario: override the default pattern in configuration
|
|
34
|
+
Given a file named "spec/spec_helper.rb" with:
|
|
35
|
+
"""ruby
|
|
36
|
+
RSpec.configure do |config|
|
|
37
|
+
config.pattern << ',**/*.spec'
|
|
38
|
+
end
|
|
39
|
+
"""
|
|
40
|
+
And a file named "spec/example.spec" with:
|
|
41
|
+
"""ruby
|
|
42
|
+
describe "addition" do
|
|
43
|
+
it "adds things" do
|
|
44
|
+
(1 + 2).should eq(3)
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
"""
|
|
48
|
+
When I run `rspec -rspec_helper`
|
|
49
|
+
Then the output should contain "1 example, 0 failures"
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
Feature: rake task
|
|
2
|
+
|
|
3
|
+
RSpec ships with a rake task with a number of useful options
|
|
4
|
+
|
|
5
|
+
Scenario: default options with passing spec (prints command and exit status is 0)
|
|
6
|
+
Given a file named "Rakefile" with:
|
|
7
|
+
"""ruby
|
|
8
|
+
require 'rspec/core/rake_task'
|
|
9
|
+
|
|
10
|
+
RSpec::Core::RakeTask.new(:spec)
|
|
11
|
+
|
|
12
|
+
task :default => :spec
|
|
13
|
+
"""
|
|
14
|
+
And a file named "spec/thing_spec.rb" with:
|
|
15
|
+
"""ruby
|
|
16
|
+
describe "something" do
|
|
17
|
+
it "does something" do
|
|
18
|
+
# pass
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
"""
|
|
22
|
+
When I run `rake`
|
|
23
|
+
Then the output should match /(ruby|rbx) -S rspec/
|
|
24
|
+
Then the exit status should be 0
|
|
25
|
+
|
|
26
|
+
Scenario: default options with failing spec (exit status is 1)
|
|
27
|
+
Given a file named "Rakefile" with:
|
|
28
|
+
"""ruby
|
|
29
|
+
require 'rspec/core/rake_task'
|
|
30
|
+
|
|
31
|
+
RSpec::Core::RakeTask.new(:spec)
|
|
32
|
+
|
|
33
|
+
task :default => :spec
|
|
34
|
+
"""
|
|
35
|
+
And a file named "spec/thing_spec.rb" with:
|
|
36
|
+
"""ruby
|
|
37
|
+
describe "something" do
|
|
38
|
+
it "does something" do
|
|
39
|
+
fail
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
"""
|
|
43
|
+
When I run `rake`
|
|
44
|
+
Then the exit status should be 1
|
|
45
|
+
|
|
46
|
+
Scenario: fail_on_error = false with failing spec (exit status is 0)
|
|
47
|
+
Given a file named "Rakefile" with:
|
|
48
|
+
"""ruby
|
|
49
|
+
require 'rspec/core/rake_task'
|
|
50
|
+
|
|
51
|
+
RSpec::Core::RakeTask.new(:spec) do |t|
|
|
52
|
+
t.fail_on_error = false
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
task :default => :spec
|
|
56
|
+
"""
|
|
57
|
+
And a file named "spec/thing_spec.rb" with:
|
|
58
|
+
"""ruby
|
|
59
|
+
describe "something" do
|
|
60
|
+
it "does something" do
|
|
61
|
+
fail
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
"""
|
|
65
|
+
When I run `rake`
|
|
66
|
+
Then the exit status should be 0
|
|
67
|
+
|
|
68
|
+
Scenario: rspec_opts is specified in order to pass args to the rspec command
|
|
69
|
+
Given a file named "Rakefile" with:
|
|
70
|
+
"""ruby
|
|
71
|
+
require 'rspec/core/rake_task'
|
|
72
|
+
|
|
73
|
+
RSpec::Core::RakeTask.new(:spec) do |t|
|
|
74
|
+
t.rspec_opts = "--tag fast"
|
|
75
|
+
end
|
|
76
|
+
"""
|
|
77
|
+
And a file named "spec/thing_spec.rb" with:
|
|
78
|
+
"""ruby
|
|
79
|
+
describe "something" do
|
|
80
|
+
it "has a tag", :fast => true do
|
|
81
|
+
# pass
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
it "does not have a tag" do
|
|
85
|
+
fail
|
|
86
|
+
end
|
|
87
|
+
end
|
|
88
|
+
"""
|
|
89
|
+
When I run `rake spec`
|
|
90
|
+
Then the exit status should be 0
|
|
91
|
+
Then the output should match:
|
|
92
|
+
"""
|
|
93
|
+
(ruby|rbx) -S rspec ./spec/thing_spec.rb --tag fast
|
|
94
|
+
"""
|
|
95
|
+
|
|
96
|
+
Scenario: rspec_opts is specified using arguments to the rake task
|
|
97
|
+
Given a file named "Rakefile" with:
|
|
98
|
+
"""ruby
|
|
99
|
+
require 'rspec/core/rake_task'
|
|
100
|
+
|
|
101
|
+
RSpec::Core::RakeTask.new(:spec, :tag) do |t, task_args|
|
|
102
|
+
t.rspec_opts = "--tag #{task_args[:tag]}"
|
|
103
|
+
end
|
|
104
|
+
"""
|
|
105
|
+
And a file named "spec/thing_spec.rb" with:
|
|
106
|
+
"""ruby
|
|
107
|
+
describe "something" do
|
|
108
|
+
it "has a tag", :fast => true do
|
|
109
|
+
# pass
|
|
110
|
+
end
|
|
111
|
+
|
|
112
|
+
it "does not have a tag" do
|
|
113
|
+
fail
|
|
114
|
+
end
|
|
115
|
+
end
|
|
116
|
+
"""
|
|
117
|
+
When I run `rake spec[fast]`
|
|
118
|
+
Then the exit status should be 0
|
|
119
|
+
Then the output should match:
|
|
120
|
+
"""
|
|
121
|
+
(ruby|rbx) -S rspec ./spec/thing_spec.rb --tag fast
|
|
122
|
+
"""
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
Feature: --require option
|
|
2
|
+
|
|
3
|
+
Use the `--require` (or `-r`) option to specify a file to require
|
|
4
|
+
before running specs.
|
|
5
|
+
|
|
6
|
+
Scenario: using the --require option
|
|
7
|
+
Given a file named "logging_formatter.rb" with:
|
|
8
|
+
"""ruby
|
|
9
|
+
require "rspec/core/formatters/base_text_formatter"
|
|
10
|
+
require 'delegate'
|
|
11
|
+
|
|
12
|
+
class LoggingFormatter < RSpec::Core::Formatters::BaseTextFormatter
|
|
13
|
+
def initialize(output)
|
|
14
|
+
super LoggingIO.new(output)
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
class LoggingIO < SimpleDelegator
|
|
18
|
+
def initialize(output)
|
|
19
|
+
@file = File.new('rspec.log', 'w')
|
|
20
|
+
super
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
def puts(message)
|
|
24
|
+
[@file, __getobj__].each { |out| out.puts message }
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
def close
|
|
28
|
+
@file.close
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
"""
|
|
33
|
+
And a file named "spec/example_spec.rb" with:
|
|
34
|
+
"""ruby
|
|
35
|
+
describe "an embarassing situation" do
|
|
36
|
+
it "happens to everyone" do
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
"""
|
|
40
|
+
When I run `rspec --require ./logging_formatter.rb --format LoggingFormatter`
|
|
41
|
+
Then the output should contain "1 example, 0 failures"
|
|
42
|
+
And the file "rspec.log" should contain "1 example, 0 failures"
|
|
43
|
+
And the exit status should be 0
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
Feature: run with ruby command
|
|
2
|
+
|
|
3
|
+
You can use the `ruby` command to run specs. You just need to require
|
|
4
|
+
`rspec/autorun`.
|
|
5
|
+
|
|
6
|
+
Generally speaking, you're better off using the `rspec` command, which
|
|
7
|
+
requires `rspec/autorun` for you, but some tools only work with the `ruby`
|
|
8
|
+
command.
|
|
9
|
+
|
|
10
|
+
Scenario:
|
|
11
|
+
Given a file named "example_spec.rb" with:
|
|
12
|
+
"""ruby
|
|
13
|
+
require 'rspec/autorun'
|
|
14
|
+
|
|
15
|
+
describe 1 do
|
|
16
|
+
it "is < 2" do
|
|
17
|
+
1.should be < 2
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
"""
|
|
21
|
+
When I run `ruby example_spec.rb`
|
|
22
|
+
Then the output should contain "1 example, 0 failures"
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
Feature: --tag option
|
|
2
|
+
|
|
3
|
+
Use the --tag (or -t) option to filter the examples by tags.
|
|
4
|
+
|
|
5
|
+
The tag can be a simple name or a name:value pair. In the first case,
|
|
6
|
+
examples with :name => true will be filtered. In the second case, examples
|
|
7
|
+
with :name => value will be filtered, where value is always a string. In
|
|
8
|
+
both cases, name is converted to a symbol.
|
|
9
|
+
|
|
10
|
+
Tags can also be used to exclude examples by adding a ~ before the tag. For
|
|
11
|
+
example ~tag will exclude all examples marked with :tag => true and
|
|
12
|
+
~tag:value will exclude all examples marked with :tag => value.
|
|
13
|
+
|
|
14
|
+
To be compatible with the Cucumber syntax, tags can optionally start with
|
|
15
|
+
an @ symbol, which will be ignored.
|
|
16
|
+
|
|
17
|
+
Background:
|
|
18
|
+
Given a file named "tagged_spec.rb" with:
|
|
19
|
+
"""ruby
|
|
20
|
+
describe "group with tagged specs" do
|
|
21
|
+
it "example I'm working now", :focus => true do; end
|
|
22
|
+
it "special example with string", :type => 'special' do; end
|
|
23
|
+
it "special example with symbol", :type => :special do; end
|
|
24
|
+
it "slow example", :skip => true do; end
|
|
25
|
+
it "ordinary example", :speed => 'slow' do; end
|
|
26
|
+
it "untagged example" do; end
|
|
27
|
+
end
|
|
28
|
+
"""
|
|
29
|
+
|
|
30
|
+
Scenario: filter examples with non-existent tag
|
|
31
|
+
When I run `rspec . --tag mytag`
|
|
32
|
+
Then the process should succeed even though no examples were run
|
|
33
|
+
|
|
34
|
+
Scenario: filter examples with a simple tag
|
|
35
|
+
When I run `rspec . --tag focus`
|
|
36
|
+
Then the output should contain "include {:focus=>true}"
|
|
37
|
+
And the examples should all pass
|
|
38
|
+
|
|
39
|
+
Scenario: filter examples with a simple tag and @
|
|
40
|
+
When I run `rspec . --tag @focus`
|
|
41
|
+
Then the output should contain "include {:focus=>true}"
|
|
42
|
+
Then the examples should all pass
|
|
43
|
+
|
|
44
|
+
Scenario: filter examples with a name:value tag
|
|
45
|
+
When I run `rspec . --tag type:special`
|
|
46
|
+
Then the output should contain:
|
|
47
|
+
"""
|
|
48
|
+
include {:type=>"special"}
|
|
49
|
+
"""
|
|
50
|
+
And the output should contain "2 examples"
|
|
51
|
+
And the examples should all pass
|
|
52
|
+
|
|
53
|
+
Scenario: filter examples with a name:value tag and @
|
|
54
|
+
When I run `rspec . --tag @type:special`
|
|
55
|
+
Then the output should contain:
|
|
56
|
+
"""
|
|
57
|
+
include {:type=>"special"}
|
|
58
|
+
"""
|
|
59
|
+
And the examples should all pass
|
|
60
|
+
|
|
61
|
+
Scenario: exclude examples with a simple tag
|
|
62
|
+
When I run `rspec . --tag ~skip`
|
|
63
|
+
Then the output should contain "exclude {:skip=>true}"
|
|
64
|
+
Then the examples should all pass
|
|
65
|
+
|
|
66
|
+
Scenario: exclude examples with a simple tag and @
|
|
67
|
+
When I run `rspec . --tag ~@skip`
|
|
68
|
+
Then the output should contain "exclude {:skip=>true}"
|
|
69
|
+
Then the examples should all pass
|
|
70
|
+
|
|
71
|
+
Scenario: exclude examples with a name:value tag
|
|
72
|
+
When I run `rspec . --tag ~speed:slow`
|
|
73
|
+
Then the output should contain:
|
|
74
|
+
"""
|
|
75
|
+
exclude {:speed=>"slow"}
|
|
76
|
+
"""
|
|
77
|
+
Then the examples should all pass
|
|
78
|
+
|
|
79
|
+
Scenario: exclude examples with a name:value tag and @
|
|
80
|
+
When I run `rspec . --tag ~@speed:slow`
|
|
81
|
+
Then the output should contain:
|
|
82
|
+
"""
|
|
83
|
+
exclude {:speed=>"slow"}
|
|
84
|
+
"""
|
|
85
|
+
Then the examples should all pass
|
|
86
|
+
|
|
87
|
+
Scenario: filter examples with a simple tag, exclude examples with another tag
|
|
88
|
+
When I run `rspec . --tag focus --tag ~skip`
|
|
89
|
+
Then the output should contain "include {:focus=>true}"
|
|
90
|
+
And the output should contain "exclude {:skip=>true}"
|
|
91
|
+
And the examples should all pass
|
|
92
|
+
|
|
93
|
+
Scenario: exclude examples with multiple tags
|
|
94
|
+
When I run `rspec . --tag ~skip --tag ~speed:slow`
|
|
95
|
+
Then the output should contain one of the following:
|
|
96
|
+
| exclude {:skip=>true, :speed=>"slow"} |
|
|
97
|
+
| exclude {:speed=>"slow", :skip=>true} |
|
|
98
|
+
Then the examples should all pass
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
Feature: run with warnings enabled
|
|
2
|
+
|
|
3
|
+
You can use the `--warnings` option to run specs with warnings enabled
|
|
4
|
+
|
|
5
|
+
@unsupported-on-rbx
|
|
6
|
+
Scenario:
|
|
7
|
+
Given a file named "example_spec.rb" with:
|
|
8
|
+
"""ruby
|
|
9
|
+
describe do
|
|
10
|
+
it 'generates warning' do
|
|
11
|
+
@undefined
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
"""
|
|
15
|
+
When I run `rspec --warnings example_spec.rb`
|
|
16
|
+
Then the output should contain "warning"
|
|
17
|
+
|
|
18
|
+
@unsupported-on-rbx
|
|
19
|
+
Scenario:
|
|
20
|
+
Given a file named "example_spec.rb" with:
|
|
21
|
+
"""ruby
|
|
22
|
+
describe do
|
|
23
|
+
it 'generates warning' do
|
|
24
|
+
@undefined
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
"""
|
|
28
|
+
When I run `rspec example_spec.rb`
|
|
29
|
+
Then the output should not contain "warning"
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
Feature: alias_example_to
|
|
2
|
+
|
|
3
|
+
Use `config.alias_example_to` to create new example group methods
|
|
4
|
+
that define examples with the configured metadata.
|
|
5
|
+
|
|
6
|
+
If you set the `treat_symbols_as_metadata_keys_with_true_values` config option
|
|
7
|
+
to `true`, you can specify metadata using only symbols.
|
|
8
|
+
|
|
9
|
+
Scenario: Use alias_example_to to define focused example
|
|
10
|
+
Given a file named "alias_example_to_spec.rb" with:
|
|
11
|
+
"""ruby
|
|
12
|
+
RSpec.configure do |c|
|
|
13
|
+
c.alias_example_to :fit, :focused => true
|
|
14
|
+
c.filter_run :focused => true
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
describe "an example group" do
|
|
18
|
+
it "does one thing" do
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
fit "does another thing" do
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
"""
|
|
25
|
+
When I run `rspec alias_example_to_spec.rb --format doc`
|
|
26
|
+
Then the output should contain "does another thing"
|
|
27
|
+
And the output should not contain "does one thing"
|
|
28
|
+
|
|
29
|
+
Scenario: use symbols as metadata
|
|
30
|
+
Given a file named "use_symbols_as_metadata_spec.rb" with:
|
|
31
|
+
"""ruby
|
|
32
|
+
RSpec.configure do |c|
|
|
33
|
+
c.treat_symbols_as_metadata_keys_with_true_values = true
|
|
34
|
+
c.alias_example_to :fit, :focused
|
|
35
|
+
c.filter_run :focused
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
describe "an example group" do
|
|
39
|
+
it "does one thing" do
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
fit "does another thing" do
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
"""
|
|
46
|
+
When I run `rspec use_symbols_as_metadata_spec.rb --format doc`
|
|
47
|
+
Then the output should contain "does another thing"
|
|
48
|
+
And the output should not contain "does one thing"
|