remq 0.0.1a → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +8 -0
- data/Readme.md +31 -17
- data/lib/remq/version.rb +1 -1
- data/lib/remq.rb +130 -28
- data/remq.gemspec +2 -4
- data/spec/remq_spec.rb +68 -42
- data/vendor/bundle/bin/autospec +23 -0
- data/vendor/bundle/bin/htmldiff +25 -0
- data/vendor/bundle/bin/ldiff +25 -0
- data/vendor/bundle/bin/rake +23 -0
- data/vendor/bundle/bin/rspec +23 -0
- data/vendor/bundle/cache/diff-lcs-1.1.3.gem +0 -0
- data/vendor/bundle/cache/hiredis-0.4.5.gem +0 -0
- data/vendor/bundle/cache/multi_json-1.6.1.gem +0 -0
- data/vendor/bundle/cache/rake-10.0.3.gem +0 -0
- data/vendor/bundle/cache/redis-3.0.2.gem +0 -0
- data/vendor/bundle/cache/rspec-2.12.0.gem +0 -0
- data/vendor/bundle/cache/rspec-core-2.12.2.gem +0 -0
- data/vendor/bundle/cache/rspec-expectations-2.12.1.gem +0 -0
- data/vendor/bundle/cache/rspec-mocks-2.12.2.gem +0 -0
- data/vendor/bundle/gems/diff-lcs-1.1.3/History.rdoc +54 -0
- data/vendor/bundle/gems/diff-lcs-1.1.3/License.rdoc +38 -0
- data/vendor/bundle/gems/diff-lcs-1.1.3/Manifest.txt +27 -0
- data/vendor/bundle/gems/diff-lcs-1.1.3/README.rdoc +72 -0
- data/vendor/bundle/gems/diff-lcs-1.1.3/Rakefile +26 -0
- data/vendor/bundle/gems/diff-lcs-1.1.3/bin/htmldiff +32 -0
- data/vendor/bundle/gems/diff-lcs-1.1.3/bin/ldiff +6 -0
- data/vendor/bundle/gems/diff-lcs-1.1.3/diff-lcs.gemspec +51 -0
- data/vendor/bundle/gems/diff-lcs-1.1.3/docs/COPYING.txt +340 -0
- data/vendor/bundle/gems/diff-lcs-1.1.3/docs/artistic.html +289 -0
- data/vendor/bundle/gems/diff-lcs-1.1.3/lib/diff/lcs/array.rb +21 -0
- data/vendor/bundle/gems/diff-lcs-1.1.3/lib/diff/lcs/block.rb +51 -0
- data/vendor/bundle/gems/diff-lcs-1.1.3/lib/diff/lcs/callbacks.rb +322 -0
- data/vendor/bundle/gems/diff-lcs-1.1.3/lib/diff/lcs/change.rb +169 -0
- data/vendor/bundle/gems/diff-lcs-1.1.3/lib/diff/lcs/htmldiff.rb +151 -0
- data/vendor/bundle/gems/diff-lcs-1.1.3/lib/diff/lcs/hunk.rb +242 -0
- data/vendor/bundle/gems/diff-lcs-1.1.3/lib/diff/lcs/ldiff.rb +210 -0
- data/vendor/bundle/gems/diff-lcs-1.1.3/lib/diff/lcs/string.rb +19 -0
- data/vendor/bundle/gems/diff-lcs-1.1.3/lib/diff/lcs.rb +1105 -0
- data/vendor/bundle/gems/diff-lcs-1.1.3/lib/diff-lcs.rb +5 -0
- data/vendor/bundle/gems/diff-lcs-1.1.3/spec/diff_spec.rb +35 -0
- data/vendor/bundle/gems/diff-lcs-1.1.3/spec/lcs_spec.rb +36 -0
- data/vendor/bundle/gems/diff-lcs-1.1.3/spec/patch_spec.rb +390 -0
- data/vendor/bundle/gems/diff-lcs-1.1.3/spec/sdiff_spec.rb +204 -0
- data/vendor/bundle/gems/diff-lcs-1.1.3/spec/spec_helper.rb +284 -0
- data/vendor/bundle/gems/diff-lcs-1.1.3/spec/traverse_balanced_spec.rb +286 -0
- data/vendor/bundle/gems/diff-lcs-1.1.3/spec/traverse_sequences_spec.rb +83 -0
- data/vendor/bundle/gems/hiredis-0.4.5/COPYING +28 -0
- data/vendor/bundle/gems/hiredis-0.4.5/Rakefile +45 -0
- data/vendor/bundle/gems/hiredis-0.4.5/ext/hiredis_ext/Makefile +213 -0
- data/vendor/bundle/gems/hiredis-0.4.5/ext/hiredis_ext/connection.c +472 -0
- data/vendor/bundle/gems/hiredis-0.4.5/ext/hiredis_ext/connection.o +0 -0
- data/vendor/bundle/gems/hiredis-0.4.5/ext/hiredis_ext/extconf.rb +17 -0
- data/vendor/bundle/gems/hiredis-0.4.5/ext/hiredis_ext/hiredis_ext.bundle +0 -0
- data/vendor/bundle/gems/hiredis-0.4.5/ext/hiredis_ext/hiredis_ext.c +13 -0
- data/vendor/bundle/gems/hiredis-0.4.5/ext/hiredis_ext/hiredis_ext.h +37 -0
- data/vendor/bundle/gems/hiredis-0.4.5/ext/hiredis_ext/hiredis_ext.o +0 -0
- data/vendor/bundle/gems/hiredis-0.4.5/ext/hiredis_ext/reader.c +114 -0
- data/vendor/bundle/gems/hiredis-0.4.5/ext/hiredis_ext/reader.o +0 -0
- data/vendor/bundle/gems/hiredis-0.4.5/lib/hiredis/connection.rb +10 -0
- data/vendor/bundle/gems/hiredis-0.4.5/lib/hiredis/errors.rb +5 -0
- data/vendor/bundle/gems/hiredis-0.4.5/lib/hiredis/ext/connection.rb +29 -0
- data/vendor/bundle/gems/hiredis-0.4.5/lib/hiredis/ext/hiredis_ext.bundle +0 -0
- data/vendor/bundle/gems/hiredis-0.4.5/lib/hiredis/ext/reader.rb +2 -0
- data/vendor/bundle/gems/hiredis-0.4.5/lib/hiredis/reader.rb +10 -0
- data/vendor/bundle/gems/hiredis-0.4.5/lib/hiredis/ruby/connection.rb +298 -0
- data/vendor/bundle/gems/hiredis-0.4.5/lib/hiredis/ruby/reader.rb +183 -0
- data/vendor/bundle/gems/hiredis-0.4.5/lib/hiredis/version.rb +3 -0
- data/vendor/bundle/gems/hiredis-0.4.5/lib/hiredis.rb +2 -0
- data/vendor/bundle/gems/hiredis-0.4.5/vendor/hiredis/COPYING +29 -0
- data/vendor/bundle/gems/hiredis-0.4.5/vendor/hiredis/Makefile +148 -0
- data/vendor/bundle/gems/hiredis-0.4.5/vendor/hiredis/async.c +604 -0
- data/vendor/bundle/gems/hiredis-0.4.5/vendor/hiredis/async.h +125 -0
- data/vendor/bundle/gems/hiredis-0.4.5/vendor/hiredis/async.o +0 -0
- data/vendor/bundle/gems/hiredis-0.4.5/vendor/hiredis/dict.c +338 -0
- data/vendor/bundle/gems/hiredis-0.4.5/vendor/hiredis/dict.h +126 -0
- data/vendor/bundle/gems/hiredis-0.4.5/vendor/hiredis/fmacros.h +16 -0
- data/vendor/bundle/gems/hiredis-0.4.5/vendor/hiredis/hiredis.c +1283 -0
- data/vendor/bundle/gems/hiredis-0.4.5/vendor/hiredis/hiredis.h +204 -0
- data/vendor/bundle/gems/hiredis-0.4.5/vendor/hiredis/hiredis.o +0 -0
- data/vendor/bundle/gems/hiredis-0.4.5/vendor/hiredis/libhiredis.a +0 -0
- data/vendor/bundle/gems/hiredis-0.4.5/vendor/hiredis/net.c +279 -0
- data/vendor/bundle/gems/hiredis-0.4.5/vendor/hiredis/net.h +47 -0
- data/vendor/bundle/gems/hiredis-0.4.5/vendor/hiredis/net.o +0 -0
- data/vendor/bundle/gems/hiredis-0.4.5/vendor/hiredis/sds.c +605 -0
- data/vendor/bundle/gems/hiredis-0.4.5/vendor/hiredis/sds.h +88 -0
- data/vendor/bundle/gems/hiredis-0.4.5/vendor/hiredis/sds.o +0 -0
- data/vendor/bundle/gems/hiredis-0.4.5/vendor/hiredis/test.c +653 -0
- data/vendor/bundle/gems/multi_json-1.6.1/CHANGELOG.md +121 -0
- data/vendor/bundle/gems/multi_json-1.6.1/CONTRIBUTING.md +46 -0
- data/vendor/bundle/gems/multi_json-1.6.1/Gemfile +31 -0
- data/vendor/bundle/gems/multi_json-1.6.1/LICENSE.md +20 -0
- data/vendor/bundle/gems/multi_json-1.6.1/README.md +105 -0
- data/vendor/bundle/gems/multi_json-1.6.1/Rakefile +12 -0
- data/vendor/bundle/gems/multi_json-1.6.1/lib/multi_json/adapters/gson.rb +20 -0
- data/vendor/bundle/gems/multi_json-1.6.1/lib/multi_json/adapters/json_common.rb +35 -0
- data/vendor/bundle/gems/multi_json-1.6.1/lib/multi_json/adapters/json_gem.rb +12 -0
- data/vendor/bundle/gems/multi_json-1.6.1/lib/multi_json/adapters/json_pure.rb +12 -0
- data/vendor/bundle/gems/multi_json-1.6.1/lib/multi_json/adapters/nsjsonserialization.rb +35 -0
- data/vendor/bundle/gems/multi_json-1.6.1/lib/multi_json/adapters/oj.rb +29 -0
- data/vendor/bundle/gems/multi_json-1.6.1/lib/multi_json/adapters/ok_json.rb +58 -0
- data/vendor/bundle/gems/multi_json-1.6.1/lib/multi_json/adapters/yajl.rb +20 -0
- data/vendor/bundle/gems/multi_json-1.6.1/lib/multi_json/vendor/okjson.rb +602 -0
- data/vendor/bundle/gems/multi_json-1.6.1/lib/multi_json/version.rb +3 -0
- data/vendor/bundle/gems/multi_json-1.6.1/lib/multi_json.rb +137 -0
- data/vendor/bundle/gems/multi_json-1.6.1/multi_json.gemspec +22 -0
- data/vendor/bundle/gems/multi_json-1.6.1/spec/adapter_shared_example.rb +162 -0
- data/vendor/bundle/gems/multi_json-1.6.1/spec/helper.rb +45 -0
- data/vendor/bundle/gems/multi_json-1.6.1/spec/json_common_shared_example.rb +36 -0
- data/vendor/bundle/gems/multi_json-1.6.1/spec/multi_json_spec.rb +151 -0
- data/vendor/bundle/gems/rake-10.0.3/CHANGES +526 -0
- data/vendor/bundle/gems/rake-10.0.3/MIT-LICENSE +21 -0
- data/vendor/bundle/gems/rake-10.0.3/README.rdoc +187 -0
- data/vendor/bundle/gems/rake-10.0.3/Rakefile +374 -0
- data/vendor/bundle/gems/rake-10.0.3/TODO +21 -0
- data/vendor/bundle/gems/rake-10.0.3/bin/rake +33 -0
- data/vendor/bundle/gems/rake-10.0.3/doc/command_line_usage.rdoc +152 -0
- data/vendor/bundle/gems/rake-10.0.3/doc/example/Rakefile1 +38 -0
- data/vendor/bundle/gems/rake-10.0.3/doc/example/Rakefile2 +35 -0
- data/vendor/bundle/gems/rake-10.0.3/doc/example/a.c +6 -0
- data/vendor/bundle/gems/rake-10.0.3/doc/example/b.c +6 -0
- data/vendor/bundle/gems/rake-10.0.3/doc/example/main.c +11 -0
- data/vendor/bundle/gems/rake-10.0.3/doc/glossary.rdoc +51 -0
- data/vendor/bundle/gems/rake-10.0.3/doc/jamis.rb +591 -0
- data/vendor/bundle/gems/rake-10.0.3/doc/proto_rake.rdoc +127 -0
- data/vendor/bundle/gems/rake-10.0.3/doc/rake.1.gz +0 -0
- data/vendor/bundle/gems/rake-10.0.3/doc/rakefile.rdoc +557 -0
- data/vendor/bundle/gems/rake-10.0.3/doc/rational.rdoc +151 -0
- data/vendor/bundle/gems/rake-10.0.3/doc/release_notes/rake-0.4.14.rdoc +23 -0
- data/vendor/bundle/gems/rake-10.0.3/doc/release_notes/rake-0.4.15.rdoc +35 -0
- data/vendor/bundle/gems/rake-10.0.3/doc/release_notes/rake-0.5.0.rdoc +53 -0
- data/vendor/bundle/gems/rake-10.0.3/doc/release_notes/rake-0.5.3.rdoc +78 -0
- data/vendor/bundle/gems/rake-10.0.3/doc/release_notes/rake-0.5.4.rdoc +46 -0
- data/vendor/bundle/gems/rake-10.0.3/doc/release_notes/rake-0.6.0.rdoc +141 -0
- data/vendor/bundle/gems/rake-10.0.3/doc/release_notes/rake-0.7.0.rdoc +119 -0
- data/vendor/bundle/gems/rake-10.0.3/doc/release_notes/rake-0.7.1.rdoc +59 -0
- data/vendor/bundle/gems/rake-10.0.3/doc/release_notes/rake-0.7.2.rdoc +121 -0
- data/vendor/bundle/gems/rake-10.0.3/doc/release_notes/rake-0.7.3.rdoc +47 -0
- data/vendor/bundle/gems/rake-10.0.3/doc/release_notes/rake-0.8.0.rdoc +114 -0
- data/vendor/bundle/gems/rake-10.0.3/doc/release_notes/rake-0.8.2.rdoc +165 -0
- data/vendor/bundle/gems/rake-10.0.3/doc/release_notes/rake-0.8.3.rdoc +112 -0
- data/vendor/bundle/gems/rake-10.0.3/doc/release_notes/rake-0.8.4.rdoc +147 -0
- data/vendor/bundle/gems/rake-10.0.3/doc/release_notes/rake-0.8.5.rdoc +53 -0
- data/vendor/bundle/gems/rake-10.0.3/doc/release_notes/rake-0.8.6.rdoc +55 -0
- data/vendor/bundle/gems/rake-10.0.3/doc/release_notes/rake-0.8.7.rdoc +55 -0
- data/vendor/bundle/gems/rake-10.0.3/doc/release_notes/rake-0.9.0.rdoc +112 -0
- data/vendor/bundle/gems/rake-10.0.3/doc/release_notes/rake-0.9.1.rdoc +52 -0
- data/vendor/bundle/gems/rake-10.0.3/doc/release_notes/rake-0.9.2.2.rdoc +55 -0
- data/vendor/bundle/gems/rake-10.0.3/doc/release_notes/rake-0.9.2.rdoc +49 -0
- data/vendor/bundle/gems/rake-10.0.3/doc/release_notes/rake-0.9.3.rdoc +102 -0
- data/vendor/bundle/gems/rake-10.0.3/doc/release_notes/rake-0.9.4.rdoc +110 -0
- data/vendor/bundle/gems/rake-10.0.3/doc/release_notes/rake-0.9.5.rdoc +114 -0
- data/vendor/bundle/gems/rake-10.0.3/doc/release_notes/rake-0.9.6.rdoc +127 -0
- data/vendor/bundle/gems/rake-10.0.3/doc/release_notes/rake-10.0.0.rdoc +178 -0
- data/vendor/bundle/gems/rake-10.0.3/doc/release_notes/rake-10.0.1.rdoc +187 -0
- data/vendor/bundle/gems/rake-10.0.3/doc/release_notes/rake-10.0.2.rdoc +191 -0
- data/vendor/bundle/gems/rake-10.0.3/doc/release_notes/rake-10.0.3.rdoc +191 -0
- data/vendor/bundle/gems/rake-10.0.3/install.rb +90 -0
- data/vendor/bundle/gems/rake-10.0.3/lib/rake/alt_system.rb +109 -0
- data/vendor/bundle/gems/rake-10.0.3/lib/rake/application.rb +669 -0
- data/vendor/bundle/gems/rake-10.0.3/lib/rake/backtrace.rb +18 -0
- data/vendor/bundle/gems/rake-10.0.3/lib/rake/clean.rb +32 -0
- data/vendor/bundle/gems/rake-10.0.3/lib/rake/cloneable.rb +16 -0
- data/vendor/bundle/gems/rake-10.0.3/lib/rake/contrib/compositepublisher.rb +21 -0
- data/vendor/bundle/gems/rake-10.0.3/lib/rake/contrib/ftptools.rb +151 -0
- data/vendor/bundle/gems/rake-10.0.3/lib/rake/contrib/publisher.rb +73 -0
- data/vendor/bundle/gems/rake-10.0.3/lib/rake/contrib/rubyforgepublisher.rb +16 -0
- data/vendor/bundle/gems/rake-10.0.3/lib/rake/contrib/sshpublisher.rb +50 -0
- data/vendor/bundle/gems/rake-10.0.3/lib/rake/contrib/sys.rb +1 -0
- data/vendor/bundle/gems/rake-10.0.3/lib/rake/default_loader.rb +10 -0
- data/vendor/bundle/gems/rake-10.0.3/lib/rake/dsl_definition.rb +156 -0
- data/vendor/bundle/gems/rake-10.0.3/lib/rake/early_time.rb +18 -0
- data/vendor/bundle/gems/rake-10.0.3/lib/rake/ext/core.rb +27 -0
- data/vendor/bundle/gems/rake-10.0.3/lib/rake/ext/module.rb +0 -0
- data/vendor/bundle/gems/rake-10.0.3/lib/rake/ext/string.rb +168 -0
- data/vendor/bundle/gems/rake-10.0.3/lib/rake/ext/time.rb +15 -0
- data/vendor/bundle/gems/rake-10.0.3/lib/rake/file_creation_task.rb +24 -0
- data/vendor/bundle/gems/rake-10.0.3/lib/rake/file_list.rb +410 -0
- data/vendor/bundle/gems/rake-10.0.3/lib/rake/file_task.rb +47 -0
- data/vendor/bundle/gems/rake-10.0.3/lib/rake/file_utils.rb +114 -0
- data/vendor/bundle/gems/rake-10.0.3/lib/rake/file_utils_ext.rb +146 -0
- data/vendor/bundle/gems/rake-10.0.3/lib/rake/gempackagetask.rb +1 -0
- data/vendor/bundle/gems/rake-10.0.3/lib/rake/invocation_chain.rb +51 -0
- data/vendor/bundle/gems/rake-10.0.3/lib/rake/invocation_exception_mixin.rb +16 -0
- data/vendor/bundle/gems/rake-10.0.3/lib/rake/loaders/makefile.rb +40 -0
- data/vendor/bundle/gems/rake-10.0.3/lib/rake/multi_task.rb +13 -0
- data/vendor/bundle/gems/rake-10.0.3/lib/rake/name_space.rb +25 -0
- data/vendor/bundle/gems/rake-10.0.3/lib/rake/packagetask.rb +185 -0
- data/vendor/bundle/gems/rake-10.0.3/lib/rake/pathmap.rb +1 -0
- data/vendor/bundle/gems/rake-10.0.3/lib/rake/phony.rb +15 -0
- data/vendor/bundle/gems/rake-10.0.3/lib/rake/private_reader.rb +20 -0
- data/vendor/bundle/gems/rake-10.0.3/lib/rake/promise.rb +99 -0
- data/vendor/bundle/gems/rake-10.0.3/lib/rake/pseudo_status.rb +24 -0
- data/vendor/bundle/gems/rake-10.0.3/lib/rake/rake_module.rb +37 -0
- data/vendor/bundle/gems/rake-10.0.3/lib/rake/rake_test_loader.rb +22 -0
- data/vendor/bundle/gems/rake-10.0.3/lib/rake/rdoctask.rb +1 -0
- data/vendor/bundle/gems/rake-10.0.3/lib/rake/ruby182_test_unit_fix.rb +25 -0
- data/vendor/bundle/gems/rake-10.0.3/lib/rake/rule_recursion_overflow_error.rb +20 -0
- data/vendor/bundle/gems/rake-10.0.3/lib/rake/runtest.rb +22 -0
- data/vendor/bundle/gems/rake-10.0.3/lib/rake/task.rb +350 -0
- data/vendor/bundle/gems/rake-10.0.3/lib/rake/task_argument_error.rb +7 -0
- data/vendor/bundle/gems/rake-10.0.3/lib/rake/task_arguments.rb +78 -0
- data/vendor/bundle/gems/rake-10.0.3/lib/rake/task_manager.rb +296 -0
- data/vendor/bundle/gems/rake-10.0.3/lib/rake/tasklib.rb +22 -0
- data/vendor/bundle/gems/rake-10.0.3/lib/rake/testtask.rb +198 -0
- data/vendor/bundle/gems/rake-10.0.3/lib/rake/thread_history_display.rb +48 -0
- data/vendor/bundle/gems/rake-10.0.3/lib/rake/thread_pool.rb +155 -0
- data/vendor/bundle/gems/rake-10.0.3/lib/rake/trace_output.rb +19 -0
- data/vendor/bundle/gems/rake-10.0.3/lib/rake/version.rb +13 -0
- data/vendor/bundle/gems/rake-10.0.3/lib/rake/win32.rb +55 -0
- data/vendor/bundle/gems/rake-10.0.3/lib/rake.rb +71 -0
- data/vendor/bundle/gems/rake-10.0.3/test/file_creation.rb +34 -0
- data/vendor/bundle/gems/rake-10.0.3/test/helper.rb +562 -0
- data/vendor/bundle/gems/rake-10.0.3/test/test_private_reader.rb +42 -0
- data/vendor/bundle/gems/rake-10.0.3/test/test_rake.rb +40 -0
- data/vendor/bundle/gems/rake-10.0.3/test/test_rake_application.rb +515 -0
- data/vendor/bundle/gems/rake-10.0.3/test/test_rake_application_options.rb +443 -0
- data/vendor/bundle/gems/rake-10.0.3/test/test_rake_backtrace.rb +89 -0
- data/vendor/bundle/gems/rake-10.0.3/test/test_rake_clean.rb +14 -0
- data/vendor/bundle/gems/rake-10.0.3/test/test_rake_definitions.rb +80 -0
- data/vendor/bundle/gems/rake-10.0.3/test/test_rake_directory_task.rb +57 -0
- data/vendor/bundle/gems/rake-10.0.3/test/test_rake_dsl.rb +40 -0
- data/vendor/bundle/gems/rake-10.0.3/test/test_rake_early_time.rb +31 -0
- data/vendor/bundle/gems/rake-10.0.3/test/test_rake_extension.rb +59 -0
- data/vendor/bundle/gems/rake-10.0.3/test/test_rake_file_creation_task.rb +56 -0
- data/vendor/bundle/gems/rake-10.0.3/test/test_rake_file_list.rb +628 -0
- data/vendor/bundle/gems/rake-10.0.3/test/test_rake_file_list_path_map.rb +8 -0
- data/vendor/bundle/gems/rake-10.0.3/test/test_rake_file_task.rb +122 -0
- data/vendor/bundle/gems/rake-10.0.3/test/test_rake_file_utils.rb +305 -0
- data/vendor/bundle/gems/rake-10.0.3/test/test_rake_ftp_file.rb +59 -0
- data/vendor/bundle/gems/rake-10.0.3/test/test_rake_functional.rb +496 -0
- data/vendor/bundle/gems/rake-10.0.3/test/test_rake_invocation_chain.rb +52 -0
- data/vendor/bundle/gems/rake-10.0.3/test/test_rake_makefile_loader.rb +44 -0
- data/vendor/bundle/gems/rake-10.0.3/test/test_rake_multi_task.rb +59 -0
- data/vendor/bundle/gems/rake-10.0.3/test/test_rake_name_space.rb +43 -0
- data/vendor/bundle/gems/rake-10.0.3/test/test_rake_package_task.rb +79 -0
- data/vendor/bundle/gems/rake-10.0.3/test/test_rake_path_map.rb +157 -0
- data/vendor/bundle/gems/rake-10.0.3/test/test_rake_path_map_explode.rb +34 -0
- data/vendor/bundle/gems/rake-10.0.3/test/test_rake_path_map_partial.rb +18 -0
- data/vendor/bundle/gems/rake-10.0.3/test/test_rake_pseudo_status.rb +21 -0
- data/vendor/bundle/gems/rake-10.0.3/test/test_rake_rake_test_loader.rb +21 -0
- data/vendor/bundle/gems/rake-10.0.3/test/test_rake_reduce_compat.rb +30 -0
- data/vendor/bundle/gems/rake-10.0.3/test/test_rake_require.rb +40 -0
- data/vendor/bundle/gems/rake-10.0.3/test/test_rake_rules.rb +327 -0
- data/vendor/bundle/gems/rake-10.0.3/test/test_rake_task.rb +316 -0
- data/vendor/bundle/gems/rake-10.0.3/test/test_rake_task_argument_parsing.rb +103 -0
- data/vendor/bundle/gems/rake-10.0.3/test/test_rake_task_arguments.rb +88 -0
- data/vendor/bundle/gems/rake-10.0.3/test/test_rake_task_lib.rb +9 -0
- data/vendor/bundle/gems/rake-10.0.3/test/test_rake_task_manager.rb +157 -0
- data/vendor/bundle/gems/rake-10.0.3/test/test_rake_task_manager_argument_resolution.rb +19 -0
- data/vendor/bundle/gems/rake-10.0.3/test/test_rake_task_with_arguments.rb +171 -0
- data/vendor/bundle/gems/rake-10.0.3/test/test_rake_test_task.rb +120 -0
- data/vendor/bundle/gems/rake-10.0.3/test/test_rake_thread_pool.rb +123 -0
- data/vendor/bundle/gems/rake-10.0.3/test/test_rake_top_level_functions.rb +71 -0
- data/vendor/bundle/gems/rake-10.0.3/test/test_rake_win32.rb +72 -0
- data/vendor/bundle/gems/rake-10.0.3/test/test_thread_history_display.rb +91 -0
- data/vendor/bundle/gems/rake-10.0.3/test/test_trace_output.rb +43 -0
- data/vendor/bundle/gems/redis-3.0.2/CHANGELOG.md +238 -0
- data/vendor/bundle/gems/redis-3.0.2/LICENSE +20 -0
- data/vendor/bundle/gems/redis-3.0.2/README.md +232 -0
- data/vendor/bundle/gems/redis-3.0.2/Rakefile +392 -0
- data/vendor/bundle/gems/redis-3.0.2/benchmarking/logging.rb +62 -0
- data/vendor/bundle/gems/redis-3.0.2/benchmarking/pipeline.rb +51 -0
- data/vendor/bundle/gems/redis-3.0.2/benchmarking/speed.rb +21 -0
- data/vendor/bundle/gems/redis-3.0.2/benchmarking/suite.rb +24 -0
- data/vendor/bundle/gems/redis-3.0.2/benchmarking/worker.rb +71 -0
- data/vendor/bundle/gems/redis-3.0.2/examples/basic.rb +15 -0
- data/vendor/bundle/gems/redis-3.0.2/examples/dist_redis.rb +43 -0
- data/vendor/bundle/gems/redis-3.0.2/examples/incr-decr.rb +17 -0
- data/vendor/bundle/gems/redis-3.0.2/examples/list.rb +26 -0
- data/vendor/bundle/gems/redis-3.0.2/examples/pubsub.rb +37 -0
- data/vendor/bundle/gems/redis-3.0.2/examples/sets.rb +36 -0
- data/vendor/bundle/gems/redis-3.0.2/examples/unicorn/config.ru +3 -0
- data/vendor/bundle/gems/redis-3.0.2/examples/unicorn/unicorn.rb +20 -0
- data/vendor/bundle/gems/redis-3.0.2/lib/redis/client.rb +401 -0
- data/vendor/bundle/gems/redis-3.0.2/lib/redis/connection/command_helper.rb +44 -0
- data/vendor/bundle/gems/redis-3.0.2/lib/redis/connection/hiredis.rb +63 -0
- data/vendor/bundle/gems/redis-3.0.2/lib/redis/connection/registry.rb +12 -0
- data/vendor/bundle/gems/redis-3.0.2/lib/redis/connection/ruby.rb +285 -0
- data/vendor/bundle/gems/redis-3.0.2/lib/redis/connection/synchrony.rb +124 -0
- data/vendor/bundle/gems/redis-3.0.2/lib/redis/connection.rb +9 -0
- data/vendor/bundle/gems/redis-3.0.2/lib/redis/distributed.rb +816 -0
- data/vendor/bundle/gems/redis-3.0.2/lib/redis/errors.rb +40 -0
- data/vendor/bundle/gems/redis-3.0.2/lib/redis/hash_ring.rb +131 -0
- data/vendor/bundle/gems/redis-3.0.2/lib/redis/pipeline.rb +130 -0
- data/vendor/bundle/gems/redis-3.0.2/lib/redis/subscribe.rb +79 -0
- data/vendor/bundle/gems/redis-3.0.2/lib/redis/version.rb +3 -0
- data/vendor/bundle/gems/redis-3.0.2/lib/redis.rb +2233 -0
- data/vendor/bundle/gems/redis-3.0.2/redis.gemspec +41 -0
- data/vendor/bundle/gems/redis-3.0.2/test/blocking_commands_test.rb +42 -0
- data/vendor/bundle/gems/redis-3.0.2/test/command_map_test.rb +30 -0
- data/vendor/bundle/gems/redis-3.0.2/test/commands_on_hashes_test.rb +21 -0
- data/vendor/bundle/gems/redis-3.0.2/test/commands_on_lists_test.rb +20 -0
- data/vendor/bundle/gems/redis-3.0.2/test/commands_on_sets_test.rb +77 -0
- data/vendor/bundle/gems/redis-3.0.2/test/commands_on_sorted_sets_test.rb +109 -0
- data/vendor/bundle/gems/redis-3.0.2/test/commands_on_strings_test.rb +83 -0
- data/vendor/bundle/gems/redis-3.0.2/test/commands_on_value_types_test.rb +99 -0
- data/vendor/bundle/gems/redis-3.0.2/test/connection_handling_test.rb +189 -0
- data/vendor/bundle/gems/redis-3.0.2/test/distributed_blocking_commands_test.rb +46 -0
- data/vendor/bundle/gems/redis-3.0.2/test/distributed_commands_on_hashes_test.rb +10 -0
- data/vendor/bundle/gems/redis-3.0.2/test/distributed_commands_on_lists_test.rb +22 -0
- data/vendor/bundle/gems/redis-3.0.2/test/distributed_commands_on_sets_test.rb +83 -0
- data/vendor/bundle/gems/redis-3.0.2/test/distributed_commands_on_sorted_sets_test.rb +18 -0
- data/vendor/bundle/gems/redis-3.0.2/test/distributed_commands_on_strings_test.rb +48 -0
- data/vendor/bundle/gems/redis-3.0.2/test/distributed_commands_on_value_types_test.rb +87 -0
- data/vendor/bundle/gems/redis-3.0.2/test/distributed_commands_requiring_clustering_test.rb +148 -0
- data/vendor/bundle/gems/redis-3.0.2/test/distributed_connection_handling_test.rb +23 -0
- data/vendor/bundle/gems/redis-3.0.2/test/distributed_internals_test.rb +41 -0
- data/vendor/bundle/gems/redis-3.0.2/test/distributed_key_tags_test.rb +52 -0
- data/vendor/bundle/gems/redis-3.0.2/test/distributed_persistence_control_commands_test.rb +26 -0
- data/vendor/bundle/gems/redis-3.0.2/test/distributed_publish_subscribe_test.rb +92 -0
- data/vendor/bundle/gems/redis-3.0.2/test/distributed_remote_server_control_commands_test.rb +66 -0
- data/vendor/bundle/gems/redis-3.0.2/test/distributed_scripting_test.rb +102 -0
- data/vendor/bundle/gems/redis-3.0.2/test/distributed_sorting_test.rb +20 -0
- data/vendor/bundle/gems/redis-3.0.2/test/distributed_test.rb +58 -0
- data/vendor/bundle/gems/redis-3.0.2/test/distributed_transactions_test.rb +32 -0
- data/vendor/bundle/gems/redis-3.0.2/test/encoding_test.rb +18 -0
- data/vendor/bundle/gems/redis-3.0.2/test/error_replies_test.rb +59 -0
- data/vendor/bundle/gems/redis-3.0.2/test/helper.rb +194 -0
- data/vendor/bundle/gems/redis-3.0.2/test/helper_test.rb +22 -0
- data/vendor/bundle/gems/redis-3.0.2/test/internals_test.rb +301 -0
- data/vendor/bundle/gems/redis-3.0.2/test/lint/blocking_commands.rb +124 -0
- data/vendor/bundle/gems/redis-3.0.2/test/lint/hashes.rb +162 -0
- data/vendor/bundle/gems/redis-3.0.2/test/lint/lists.rb +143 -0
- data/vendor/bundle/gems/redis-3.0.2/test/lint/sets.rb +96 -0
- data/vendor/bundle/gems/redis-3.0.2/test/lint/sorted_sets.rb +238 -0
- data/vendor/bundle/gems/redis-3.0.2/test/lint/strings.rb +157 -0
- data/vendor/bundle/gems/redis-3.0.2/test/lint/value_types.rb +106 -0
- data/vendor/bundle/gems/redis-3.0.2/test/persistence_control_commands_test.rb +26 -0
- data/vendor/bundle/gems/redis-3.0.2/test/pipelining_commands_test.rb +195 -0
- data/vendor/bundle/gems/redis-3.0.2/test/publish_subscribe_test.rb +153 -0
- data/vendor/bundle/gems/redis-3.0.2/test/remote_server_control_commands_test.rb +117 -0
- data/vendor/bundle/gems/redis-3.0.2/test/scripting_test.rb +78 -0
- data/vendor/bundle/gems/redis-3.0.2/test/sorting_test.rb +45 -0
- data/vendor/bundle/gems/redis-3.0.2/test/support/connection/hiredis.rb +1 -0
- data/vendor/bundle/gems/redis-3.0.2/test/support/connection/ruby.rb +1 -0
- data/vendor/bundle/gems/redis-3.0.2/test/support/connection/synchrony.rb +17 -0
- data/vendor/bundle/gems/redis-3.0.2/test/support/redis_mock.rb +110 -0
- data/vendor/bundle/gems/redis-3.0.2/test/support/wire/synchrony.rb +24 -0
- data/vendor/bundle/gems/redis-3.0.2/test/support/wire/thread.rb +5 -0
- data/vendor/bundle/gems/redis-3.0.2/test/synchrony_driver.rb +88 -0
- data/vendor/bundle/gems/redis-3.0.2/test/test.conf +9 -0
- data/vendor/bundle/gems/redis-3.0.2/test/thread_safety_test.rb +32 -0
- data/vendor/bundle/gems/redis-3.0.2/test/transactions_test.rb +260 -0
- data/vendor/bundle/gems/redis-3.0.2/test/unknown_commands_test.rb +14 -0
- data/vendor/bundle/gems/redis-3.0.2/test/url_param_test.rb +132 -0
- data/vendor/bundle/gems/rspec-2.12.0/License.txt +24 -0
- data/vendor/bundle/gems/rspec-2.12.0/README.md +47 -0
- data/vendor/bundle/gems/rspec-2.12.0/lib/rspec/version.rb +5 -0
- data/vendor/bundle/gems/rspec-2.12.0/lib/rspec.rb +4 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/Changelog.md +655 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/License.txt +24 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/README.md +257 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/exe/autospec +13 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/exe/rspec +25 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/features/Autotest.md +38 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/features/README.md +17 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/features/Upgrade.md +364 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/features/command_line/README.md +28 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/features/command_line/example_name_option.feature +101 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/features/command_line/exit_status.feature +82 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/features/command_line/format_option.feature +81 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/features/command_line/init.feature +18 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/features/command_line/line_number_appended_to_path.feature +140 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/features/command_line/line_number_option.feature +58 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/features/command_line/order.feature +29 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/features/command_line/pattern_option.feature +31 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/features/command_line/rake_task.feature +122 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/features/command_line/ruby.feature +22 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/features/command_line/tag.feature +91 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/features/configuration/alias_example_to.feature +48 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/features/configuration/custom_settings.feature +84 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/features/configuration/default_path.feature +38 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/features/configuration/fail_fast.feature +77 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/features/configuration/read_options_from_file.feature +87 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/features/example_groups/basic_structure.feature +55 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/features/example_groups/shared_context.feature +74 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/features/example_groups/shared_examples.feature +222 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/features/expectation_framework_integration/configure_expectation_framework.feature +102 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/features/filtering/exclusion_filters.feature +139 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/features/filtering/if_and_unless.feature +168 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/features/filtering/inclusion_filters.feature +105 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/features/filtering/run_all_when_everything_filtered.feature +46 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/features/formatters/custom_formatter.feature +36 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/features/formatters/json_formatter.feature +30 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/features/formatters/text_formatter.feature +46 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/features/helper_methods/arbitrary_methods.feature +40 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/features/helper_methods/let.feature +50 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/features/helper_methods/modules.feature +149 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/features/hooks/around_hooks.feature +343 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/features/hooks/before_and_after_hooks.feature +427 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/features/hooks/filtering.feature +234 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/features/metadata/current_example.feature +17 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/features/metadata/described_class.feature +17 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/features/metadata/user_defined.feature +113 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/features/mock_framework_integration/use_any_framework.feature +106 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/features/mock_framework_integration/use_flexmock.feature +96 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/features/mock_framework_integration/use_mocha.feature +97 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/features/mock_framework_integration/use_rr.feature +98 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/features/mock_framework_integration/use_rspec.feature +97 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/features/pending/pending_examples.feature +229 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/features/spec_files/arbitrary_file_suffix.feature +13 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/features/step_definitions/additional_cli_steps.rb +32 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/features/subject/attribute_of_subject.feature +124 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/features/subject/explicit_subject.feature +82 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/features/subject/implicit_receiver.feature +29 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/features/subject/implicit_subject.feature +63 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/features/support/env.rb +12 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/lib/autotest/discover.rb +1 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/lib/autotest/rspec2.rb +73 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/lib/rspec/autorun.rb +2 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/lib/rspec/core/backward_compatibility.rb +65 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/lib/rspec/core/command_line.rb +36 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/lib/rspec/core/configuration.rb +1057 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/lib/rspec/core/configuration_options.rb +144 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/lib/rspec/core/deprecation.rb +36 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/lib/rspec/core/drb_command_line.rb +26 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/lib/rspec/core/drb_options.rb +87 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/lib/rspec/core/dsl.rb +26 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/lib/rspec/core/example.rb +331 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/lib/rspec/core/example_group.rb +476 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/lib/rspec/core/extensions/instance_eval_with_args.rb +44 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/lib/rspec/core/extensions/kernel.rb +9 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/lib/rspec/core/extensions/module_eval_with_args.rb +38 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/lib/rspec/core/extensions/ordered.rb +27 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/lib/rspec/core/filter_manager.rb +203 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/lib/rspec/core/formatters/base_formatter.rb +237 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/lib/rspec/core/formatters/base_text_formatter.rb +225 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/lib/rspec/core/formatters/documentation_formatter.rb +67 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/lib/rspec/core/formatters/helpers.rb +103 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/lib/rspec/core/formatters/html_formatter.rb +154 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/lib/rspec/core/formatters/html_printer.rb +407 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/lib/rspec/core/formatters/json_formatter.rb +73 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/lib/rspec/core/formatters/progress_formatter.rb +32 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/lib/rspec/core/formatters/snippet_extractor.rb +92 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/lib/rspec/core/formatters/text_mate_formatter.rb +34 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/lib/rspec/core/formatters.rb +55 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/lib/rspec/core/hooks.rb +495 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/lib/rspec/core/let.rb +110 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/lib/rspec/core/load_path.rb +3 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/lib/rspec/core/metadata.rb +293 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/lib/rspec/core/metadata_hash_builder.rb +97 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/lib/rspec/core/mocking/with_absolutely_nothing.rb +11 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/lib/rspec/core/mocking/with_flexmock.rb +27 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/lib/rspec/core/mocking/with_mocha.rb +52 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/lib/rspec/core/mocking/with_rr.rb +27 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/lib/rspec/core/mocking/with_rspec.rb +27 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/lib/rspec/core/option_parser.rb +202 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/lib/rspec/core/pending.rb +101 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/lib/rspec/core/project_initializer.rb +86 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/lib/rspec/core/rake_task.rb +202 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/lib/rspec/core/reporter.rb +102 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/lib/rspec/core/ruby_project.rb +44 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/lib/rspec/core/runner.rb +87 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/lib/rspec/core/shared_context.rb +49 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/lib/rspec/core/shared_example_group.rb +144 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/lib/rspec/core/subject.rb +223 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/lib/rspec/core/version.rb +7 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/lib/rspec/core/world.rb +128 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/lib/rspec/core.rb +147 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/spec/autotest/discover_spec.rb +19 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/spec/autotest/failed_results_re_spec.rb +45 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/spec/autotest/rspec_spec.rb +128 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/spec/command_line/order_spec.rb +204 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/spec/rspec/core/command_line_spec.rb +108 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/spec/rspec/core/command_line_spec_output.txt +0 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/spec/rspec/core/configuration_options_spec.rb +384 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/spec/rspec/core/configuration_spec.rb +1371 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/spec/rspec/core/deprecations_spec.rb +75 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/spec/rspec/core/drb_command_line_spec.rb +102 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/spec/rspec/core/drb_options_spec.rb +180 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/spec/rspec/core/dsl_spec.rb +25 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/spec/rspec/core/example_group_spec.rb +1144 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/spec/rspec/core/example_spec.rb +402 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/spec/rspec/core/filter_manager_spec.rb +246 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/spec/rspec/core/formatters/base_formatter_spec.rb +108 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/spec/rspec/core/formatters/base_text_formatter_spec.rb +367 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/spec/rspec/core/formatters/documentation_formatter_spec.rb +88 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/spec/rspec/core/formatters/helpers_spec.rb +78 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/spec/rspec/core/formatters/html_formatted-1.8.7-jruby.html +410 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/spec/rspec/core/formatters/html_formatted-1.8.7-rbx.html +462 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/spec/rspec/core/formatters/html_formatted-1.8.7.html +409 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/spec/rspec/core/formatters/html_formatted-1.9.2-jruby.html +410 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/spec/rspec/core/formatters/html_formatted-1.9.2.html +416 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/spec/rspec/core/formatters/html_formatted-1.9.3-jruby.html +410 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/spec/rspec/core/formatters/html_formatted-1.9.3-rbx.html +462 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/spec/rspec/core/formatters/html_formatted-1.9.3.html +416 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/spec/rspec/core/formatters/html_formatter_spec.rb +90 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/spec/rspec/core/formatters/json_formatter_spec.rb +110 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/spec/rspec/core/formatters/progress_formatter_spec.rb +30 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/spec/rspec/core/formatters/snippet_extractor_spec.rb +26 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/spec/rspec/core/formatters/text_mate_formatted-1.8.7-jruby.html +410 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/spec/rspec/core/formatters/text_mate_formatted-1.8.7-rbx.html +462 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/spec/rspec/core/formatters/text_mate_formatted-1.8.7.html +409 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/spec/rspec/core/formatters/text_mate_formatted-1.9.2-jruby.html +410 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/spec/rspec/core/formatters/text_mate_formatted-1.9.2.html +416 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/spec/rspec/core/formatters/text_mate_formatted-1.9.3-jruby.html +410 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/spec/rspec/core/formatters/text_mate_formatted-1.9.3-rbx.html +462 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/spec/rspec/core/formatters/text_mate_formatted-1.9.3.html +416 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/spec/rspec/core/formatters/text_mate_formatter_spec.rb +91 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/spec/rspec/core/hooks_filtering_spec.rb +227 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/spec/rspec/core/hooks_spec.rb +250 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/spec/rspec/core/kernel_extensions_spec.rb +9 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/spec/rspec/core/let_spec.rb +55 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/spec/rspec/core/metadata_spec.rb +486 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/spec/rspec/core/option_parser_spec.rb +208 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/spec/rspec/core/pending_example_spec.rb +220 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/spec/rspec/core/project_initializer_spec.rb +130 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/spec/rspec/core/rake_task_spec.rb +181 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/spec/rspec/core/reporter_spec.rb +120 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/spec/rspec/core/resources/a_bar.rb +0 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/spec/rspec/core/resources/a_foo.rb +0 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/spec/rspec/core/resources/a_spec.rb +1 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/spec/rspec/core/resources/custom_example_group_runner.rb +14 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/spec/rspec/core/resources/formatter_specs.rb +60 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/spec/rspec/core/resources/utf8_encoded.rb +8 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/spec/rspec/core/rspec_matchers_spec.rb +45 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/spec/rspec/core/ruby_project_spec.rb +24 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/spec/rspec/core/runner_spec.rb +82 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/spec/rspec/core/shared_context_spec.rb +67 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/spec/rspec/core/shared_example_group_spec.rb +96 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/spec/rspec/core/subject_spec.rb +255 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/spec/rspec/core/world_spec.rb +144 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/spec/rspec/core_spec.rb +35 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/spec/spec_helper.rb +128 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/spec/support/config_options_helper.rb +15 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/spec/support/helper_methods.rb +18 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/spec/support/isolated_directory.rb +10 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/spec/support/isolated_home_directory.rb +16 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/spec/support/matchers.rb +65 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/spec/support/shared_example_groups.rb +41 -0
- data/vendor/bundle/gems/rspec-core-2.12.2/spec/support/spec_files.rb +44 -0
- data/vendor/bundle/gems/rspec-expectations-2.12.1/Changelog.md +297 -0
- data/vendor/bundle/gems/rspec-expectations-2.12.1/License.txt +23 -0
- data/vendor/bundle/gems/rspec-expectations-2.12.1/README.md +228 -0
- data/vendor/bundle/gems/rspec-expectations-2.12.1/features/README.md +49 -0
- data/vendor/bundle/gems/rspec-expectations-2.12.1/features/Upgrade.md +53 -0
- data/vendor/bundle/gems/rspec-expectations-2.12.1/features/built_in_matchers/README.md +90 -0
- data/vendor/bundle/gems/rspec-expectations-2.12.1/features/built_in_matchers/be.feature +173 -0
- data/vendor/bundle/gems/rspec-expectations-2.12.1/features/built_in_matchers/be_within.feature +46 -0
- data/vendor/bundle/gems/rspec-expectations-2.12.1/features/built_in_matchers/cover.feature +45 -0
- data/vendor/bundle/gems/rspec-expectations-2.12.1/features/built_in_matchers/end_with.feature +46 -0
- data/vendor/bundle/gems/rspec-expectations-2.12.1/features/built_in_matchers/equality.feature +145 -0
- data/vendor/bundle/gems/rspec-expectations-2.12.1/features/built_in_matchers/exist.feature +43 -0
- data/vendor/bundle/gems/rspec-expectations-2.12.1/features/built_in_matchers/expect_change.feature +59 -0
- data/vendor/bundle/gems/rspec-expectations-2.12.1/features/built_in_matchers/expect_error.feature +138 -0
- data/vendor/bundle/gems/rspec-expectations-2.12.1/features/built_in_matchers/have.feature +103 -0
- data/vendor/bundle/gems/rspec-expectations-2.12.1/features/built_in_matchers/include.feature +121 -0
- data/vendor/bundle/gems/rspec-expectations-2.12.1/features/built_in_matchers/match.feature +50 -0
- data/vendor/bundle/gems/rspec-expectations-2.12.1/features/built_in_matchers/operators.feature +221 -0
- data/vendor/bundle/gems/rspec-expectations-2.12.1/features/built_in_matchers/predicates.feature +129 -0
- data/vendor/bundle/gems/rspec-expectations-2.12.1/features/built_in_matchers/respond_to.feature +78 -0
- data/vendor/bundle/gems/rspec-expectations-2.12.1/features/built_in_matchers/satisfy.feature +31 -0
- data/vendor/bundle/gems/rspec-expectations-2.12.1/features/built_in_matchers/start_with.feature +46 -0
- data/vendor/bundle/gems/rspec-expectations-2.12.1/features/built_in_matchers/throw_symbol.feature +85 -0
- data/vendor/bundle/gems/rspec-expectations-2.12.1/features/built_in_matchers/types.feature +114 -0
- data/vendor/bundle/gems/rspec-expectations-2.12.1/features/built_in_matchers/yield.feature +146 -0
- data/vendor/bundle/gems/rspec-expectations-2.12.1/features/custom_matchers/access_running_example.feature +53 -0
- data/vendor/bundle/gems/rspec-expectations-2.12.1/features/custom_matchers/define_diffable_matcher.feature +27 -0
- data/vendor/bundle/gems/rspec-expectations-2.12.1/features/custom_matchers/define_matcher.feature +368 -0
- data/vendor/bundle/gems/rspec-expectations-2.12.1/features/custom_matchers/define_matcher_outside_rspec.feature +38 -0
- data/vendor/bundle/gems/rspec-expectations-2.12.1/features/custom_matchers/define_matcher_with_fluent_interface.feature +24 -0
- data/vendor/bundle/gems/rspec-expectations-2.12.1/features/customized_message.feature +22 -0
- data/vendor/bundle/gems/rspec-expectations-2.12.1/features/diffing.feature +85 -0
- data/vendor/bundle/gems/rspec-expectations-2.12.1/features/implicit_docstrings.feature +52 -0
- data/vendor/bundle/gems/rspec-expectations-2.12.1/features/step_definitions/additional_cli_steps.rb +22 -0
- data/vendor/bundle/gems/rspec-expectations-2.12.1/features/support/env.rb +5 -0
- data/vendor/bundle/gems/rspec-expectations-2.12.1/features/syntax_configuration.feature +68 -0
- data/vendor/bundle/gems/rspec-expectations-2.12.1/features/test_frameworks/test_unit.feature +46 -0
- data/vendor/bundle/gems/rspec-expectations-2.12.1/lib/rspec/expectations/deprecation.rb +38 -0
- data/vendor/bundle/gems/rspec-expectations-2.12.1/lib/rspec/expectations/differ.rb +115 -0
- data/vendor/bundle/gems/rspec-expectations-2.12.1/lib/rspec/expectations/errors.rb +9 -0
- data/vendor/bundle/gems/rspec-expectations-2.12.1/lib/rspec/expectations/expectation_target.rb +88 -0
- data/vendor/bundle/gems/rspec-expectations-2.12.1/lib/rspec/expectations/extensions/array.rb +9 -0
- data/vendor/bundle/gems/rspec-expectations-2.12.1/lib/rspec/expectations/extensions/object.rb +39 -0
- data/vendor/bundle/gems/rspec-expectations-2.12.1/lib/rspec/expectations/extensions.rb +2 -0
- data/vendor/bundle/gems/rspec-expectations-2.12.1/lib/rspec/expectations/fail_with.rb +55 -0
- data/vendor/bundle/gems/rspec-expectations-2.12.1/lib/rspec/expectations/handler.rb +63 -0
- data/vendor/bundle/gems/rspec-expectations-2.12.1/lib/rspec/expectations/syntax.rb +118 -0
- data/vendor/bundle/gems/rspec-expectations-2.12.1/lib/rspec/expectations/version.rb +8 -0
- data/vendor/bundle/gems/rspec-expectations-2.12.1/lib/rspec/expectations.rb +47 -0
- data/vendor/bundle/gems/rspec-expectations-2.12.1/lib/rspec/matchers/be_close.rb +9 -0
- data/vendor/bundle/gems/rspec-expectations-2.12.1/lib/rspec/matchers/built_in/base_matcher.rb +68 -0
- data/vendor/bundle/gems/rspec-expectations-2.12.1/lib/rspec/matchers/built_in/be.rb +185 -0
- data/vendor/bundle/gems/rspec-expectations-2.12.1/lib/rspec/matchers/built_in/be_instance_of.rb +15 -0
- data/vendor/bundle/gems/rspec-expectations-2.12.1/lib/rspec/matchers/built_in/be_kind_of.rb +11 -0
- data/vendor/bundle/gems/rspec-expectations-2.12.1/lib/rspec/matchers/built_in/be_within.rb +46 -0
- data/vendor/bundle/gems/rspec-expectations-2.12.1/lib/rspec/matchers/built_in/change.rb +133 -0
- data/vendor/bundle/gems/rspec-expectations-2.12.1/lib/rspec/matchers/built_in/cover.rb +21 -0
- data/vendor/bundle/gems/rspec-expectations-2.12.1/lib/rspec/matchers/built_in/eq.rb +22 -0
- data/vendor/bundle/gems/rspec-expectations-2.12.1/lib/rspec/matchers/built_in/eql.rb +23 -0
- data/vendor/bundle/gems/rspec-expectations-2.12.1/lib/rspec/matchers/built_in/equal.rb +44 -0
- data/vendor/bundle/gems/rspec-expectations-2.12.1/lib/rspec/matchers/built_in/exist.rb +26 -0
- data/vendor/bundle/gems/rspec-expectations-2.12.1/lib/rspec/matchers/built_in/has.rb +48 -0
- data/vendor/bundle/gems/rspec-expectations-2.12.1/lib/rspec/matchers/built_in/have.rb +108 -0
- data/vendor/bundle/gems/rspec-expectations-2.12.1/lib/rspec/matchers/built_in/include.rb +53 -0
- data/vendor/bundle/gems/rspec-expectations-2.12.1/lib/rspec/matchers/built_in/match.rb +12 -0
- data/vendor/bundle/gems/rspec-expectations-2.12.1/lib/rspec/matchers/built_in/match_array.rb +51 -0
- data/vendor/bundle/gems/rspec-expectations-2.12.1/lib/rspec/matchers/built_in/raise_error.rb +107 -0
- data/vendor/bundle/gems/rspec-expectations-2.12.1/lib/rspec/matchers/built_in/respond_to.rb +74 -0
- data/vendor/bundle/gems/rspec-expectations-2.12.1/lib/rspec/matchers/built_in/satisfy.rb +30 -0
- data/vendor/bundle/gems/rspec-expectations-2.12.1/lib/rspec/matchers/built_in/start_and_end_with.rb +48 -0
- data/vendor/bundle/gems/rspec-expectations-2.12.1/lib/rspec/matchers/built_in/throw_symbol.rb +94 -0
- data/vendor/bundle/gems/rspec-expectations-2.12.1/lib/rspec/matchers/built_in/yield.rb +221 -0
- data/vendor/bundle/gems/rspec-expectations-2.12.1/lib/rspec/matchers/built_in.rb +39 -0
- data/vendor/bundle/gems/rspec-expectations-2.12.1/lib/rspec/matchers/compatibility.rb +14 -0
- data/vendor/bundle/gems/rspec-expectations-2.12.1/lib/rspec/matchers/configuration.rb +108 -0
- data/vendor/bundle/gems/rspec-expectations-2.12.1/lib/rspec/matchers/dsl.rb +24 -0
- data/vendor/bundle/gems/rspec-expectations-2.12.1/lib/rspec/matchers/extensions/instance_eval_with_args.rb +39 -0
- data/vendor/bundle/gems/rspec-expectations-2.12.1/lib/rspec/matchers/generated_descriptions.rb +35 -0
- data/vendor/bundle/gems/rspec-expectations-2.12.1/lib/rspec/matchers/matcher.rb +299 -0
- data/vendor/bundle/gems/rspec-expectations-2.12.1/lib/rspec/matchers/method_missing.rb +12 -0
- data/vendor/bundle/gems/rspec-expectations-2.12.1/lib/rspec/matchers/operator_matcher.rb +109 -0
- data/vendor/bundle/gems/rspec-expectations-2.12.1/lib/rspec/matchers/pretty.rb +60 -0
- data/vendor/bundle/gems/rspec-expectations-2.12.1/lib/rspec/matchers.rb +699 -0
- data/vendor/bundle/gems/rspec-expectations-2.12.1/lib/rspec-expectations.rb +1 -0
- data/vendor/bundle/gems/rspec-expectations-2.12.1/spec/rspec/expectations/differ_spec.rb +177 -0
- data/vendor/bundle/gems/rspec-expectations-2.12.1/spec/rspec/expectations/expectation_target_spec.rb +65 -0
- data/vendor/bundle/gems/rspec-expectations-2.12.1/spec/rspec/expectations/extensions/kernel_spec.rb +67 -0
- data/vendor/bundle/gems/rspec-expectations-2.12.1/spec/rspec/expectations/fail_with_spec.rb +70 -0
- data/vendor/bundle/gems/rspec-expectations-2.12.1/spec/rspec/expectations/handler_spec.rb +206 -0
- data/vendor/bundle/gems/rspec-expectations-2.12.1/spec/rspec/expectations/syntax_spec.rb +35 -0
- data/vendor/bundle/gems/rspec-expectations-2.12.1/spec/rspec/matchers/base_matcher_spec.rb +60 -0
- data/vendor/bundle/gems/rspec-expectations-2.12.1/spec/rspec/matchers/be_close_spec.rb +22 -0
- data/vendor/bundle/gems/rspec-expectations-2.12.1/spec/rspec/matchers/be_instance_of_spec.rb +57 -0
- data/vendor/bundle/gems/rspec-expectations-2.12.1/spec/rspec/matchers/be_kind_of_spec.rb +37 -0
- data/vendor/bundle/gems/rspec-expectations-2.12.1/spec/rspec/matchers/be_spec.rb +452 -0
- data/vendor/bundle/gems/rspec-expectations-2.12.1/spec/rspec/matchers/be_within_spec.rb +80 -0
- data/vendor/bundle/gems/rspec-expectations-2.12.1/spec/rspec/matchers/change_spec.rb +528 -0
- data/vendor/bundle/gems/rspec-expectations-2.12.1/spec/rspec/matchers/configuration_spec.rb +234 -0
- data/vendor/bundle/gems/rspec-expectations-2.12.1/spec/rspec/matchers/cover_spec.rb +69 -0
- data/vendor/bundle/gems/rspec-expectations-2.12.1/spec/rspec/matchers/description_generation_spec.rb +176 -0
- data/vendor/bundle/gems/rspec-expectations-2.12.1/spec/rspec/matchers/dsl_spec.rb +57 -0
- data/vendor/bundle/gems/rspec-expectations-2.12.1/spec/rspec/matchers/eq_spec.rb +54 -0
- data/vendor/bundle/gems/rspec-expectations-2.12.1/spec/rspec/matchers/eql_spec.rb +41 -0
- data/vendor/bundle/gems/rspec-expectations-2.12.1/spec/rspec/matchers/equal_spec.rb +60 -0
- data/vendor/bundle/gems/rspec-expectations-2.12.1/spec/rspec/matchers/exist_spec.rb +110 -0
- data/vendor/bundle/gems/rspec-expectations-2.12.1/spec/rspec/matchers/has_spec.rb +118 -0
- data/vendor/bundle/gems/rspec-expectations-2.12.1/spec/rspec/matchers/have_spec.rb +431 -0
- data/vendor/bundle/gems/rspec-expectations-2.12.1/spec/rspec/matchers/include_spec.rb +373 -0
- data/vendor/bundle/gems/rspec-expectations-2.12.1/spec/rspec/matchers/match_array_spec.rb +153 -0
- data/vendor/bundle/gems/rspec-expectations-2.12.1/spec/rspec/matchers/match_spec.rb +61 -0
- data/vendor/bundle/gems/rspec-expectations-2.12.1/spec/rspec/matchers/matcher_spec.rb +434 -0
- data/vendor/bundle/gems/rspec-expectations-2.12.1/spec/rspec/matchers/matchers_spec.rb +31 -0
- data/vendor/bundle/gems/rspec-expectations-2.12.1/spec/rspec/matchers/method_missing_spec.rb +24 -0
- data/vendor/bundle/gems/rspec-expectations-2.12.1/spec/rspec/matchers/operator_matcher_spec.rb +244 -0
- data/vendor/bundle/gems/rspec-expectations-2.12.1/spec/rspec/matchers/raise_error_spec.rb +395 -0
- data/vendor/bundle/gems/rspec-expectations-2.12.1/spec/rspec/matchers/respond_to_spec.rb +295 -0
- data/vendor/bundle/gems/rspec-expectations-2.12.1/spec/rspec/matchers/satisfy_spec.rb +44 -0
- data/vendor/bundle/gems/rspec-expectations-2.12.1/spec/rspec/matchers/start_with_end_with_spec.rb +182 -0
- data/vendor/bundle/gems/rspec-expectations-2.12.1/spec/rspec/matchers/throw_symbol_spec.rb +116 -0
- data/vendor/bundle/gems/rspec-expectations-2.12.1/spec/rspec/matchers/yield_spec.rb +437 -0
- data/vendor/bundle/gems/rspec-expectations-2.12.1/spec/spec_helper.rb +27 -0
- data/vendor/bundle/gems/rspec-expectations-2.12.1/spec/support/classes.rb +56 -0
- data/vendor/bundle/gems/rspec-expectations-2.12.1/spec/support/in_sub_process.rb +31 -0
- data/vendor/bundle/gems/rspec-expectations-2.12.1/spec/support/matchers.rb +22 -0
- data/vendor/bundle/gems/rspec-expectations-2.12.1/spec/support/ruby_version.rb +10 -0
- data/vendor/bundle/gems/rspec-expectations-2.12.1/spec/support/shared_examples.rb +13 -0
- data/vendor/bundle/gems/rspec-mocks-2.12.2/Changelog.md +268 -0
- data/vendor/bundle/gems/rspec-mocks-2.12.2/License.txt +23 -0
- data/vendor/bundle/gems/rspec-mocks-2.12.2/README.md +301 -0
- data/vendor/bundle/gems/rspec-mocks-2.12.2/features/README.md +67 -0
- data/vendor/bundle/gems/rspec-mocks-2.12.2/features/Scope.md +17 -0
- data/vendor/bundle/gems/rspec-mocks-2.12.2/features/Upgrade.md +22 -0
- data/vendor/bundle/gems/rspec-mocks-2.12.2/features/argument_matchers/README.md +27 -0
- data/vendor/bundle/gems/rspec-mocks-2.12.2/features/argument_matchers/explicit.feature +60 -0
- data/vendor/bundle/gems/rspec-mocks-2.12.2/features/argument_matchers/general_matchers.feature +85 -0
- data/vendor/bundle/gems/rspec-mocks-2.12.2/features/argument_matchers/type_matchers.feature +27 -0
- data/vendor/bundle/gems/rspec-mocks-2.12.2/features/message_expectations/README.md +73 -0
- data/vendor/bundle/gems/rspec-mocks-2.12.2/features/message_expectations/any_instance.feature +21 -0
- data/vendor/bundle/gems/rspec-mocks-2.12.2/features/message_expectations/block_local_expectations.feature.pending +55 -0
- data/vendor/bundle/gems/rspec-mocks-2.12.2/features/message_expectations/call_original.feature +24 -0
- data/vendor/bundle/gems/rspec-mocks-2.12.2/features/message_expectations/expect_message.feature +94 -0
- data/vendor/bundle/gems/rspec-mocks-2.12.2/features/message_expectations/receive_counts.feature +209 -0
- data/vendor/bundle/gems/rspec-mocks-2.12.2/features/message_expectations/warn_when_expectation_is_set_on_nil.feature +50 -0
- data/vendor/bundle/gems/rspec-mocks-2.12.2/features/method_stubs/README.md +47 -0
- data/vendor/bundle/gems/rspec-mocks-2.12.2/features/method_stubs/any_instance.feature +132 -0
- data/vendor/bundle/gems/rspec-mocks-2.12.2/features/method_stubs/as_null_object.feature +35 -0
- data/vendor/bundle/gems/rspec-mocks-2.12.2/features/method_stubs/simple_return_value.feature +64 -0
- data/vendor/bundle/gems/rspec-mocks-2.12.2/features/method_stubs/stub_chain.feature +51 -0
- data/vendor/bundle/gems/rspec-mocks-2.12.2/features/method_stubs/stub_implementation.feature +26 -0
- data/vendor/bundle/gems/rspec-mocks-2.12.2/features/method_stubs/to_ary.feature +47 -0
- data/vendor/bundle/gems/rspec-mocks-2.12.2/features/mutating_constants/README.md +82 -0
- data/vendor/bundle/gems/rspec-mocks-2.12.2/features/mutating_constants/hiding_defined_constant.feature +64 -0
- data/vendor/bundle/gems/rspec-mocks-2.12.2/features/mutating_constants/stub_defined_constant.feature +79 -0
- data/vendor/bundle/gems/rspec-mocks-2.12.2/features/mutating_constants/stub_undefined_constant.feature +50 -0
- data/vendor/bundle/gems/rspec-mocks-2.12.2/features/outside_rspec/configuration.feature +82 -0
- data/vendor/bundle/gems/rspec-mocks-2.12.2/features/outside_rspec/standalone.feature +33 -0
- data/vendor/bundle/gems/rspec-mocks-2.12.2/features/step_definitions/additional_cli_steps.rb +4 -0
- data/vendor/bundle/gems/rspec-mocks-2.12.2/features/support/env.rb +6 -0
- data/vendor/bundle/gems/rspec-mocks-2.12.2/lib/rspec/mocks/any_instance/chain.rb +78 -0
- data/vendor/bundle/gems/rspec-mocks-2.12.2/lib/rspec/mocks/any_instance/expectation_chain.rb +57 -0
- data/vendor/bundle/gems/rspec-mocks-2.12.2/lib/rspec/mocks/any_instance/message_chains.rb +60 -0
- data/vendor/bundle/gems/rspec-mocks-2.12.2/lib/rspec/mocks/any_instance/recorder.rb +199 -0
- data/vendor/bundle/gems/rspec-mocks-2.12.2/lib/rspec/mocks/any_instance/stub_chain.rb +37 -0
- data/vendor/bundle/gems/rspec-mocks-2.12.2/lib/rspec/mocks/any_instance/stub_chain_chain.rb +25 -0
- data/vendor/bundle/gems/rspec-mocks-2.12.2/lib/rspec/mocks/any_instance.rb +81 -0
- data/vendor/bundle/gems/rspec-mocks-2.12.2/lib/rspec/mocks/argument_list_matcher.rb +93 -0
- data/vendor/bundle/gems/rspec-mocks-2.12.2/lib/rspec/mocks/argument_matchers.rb +238 -0
- data/vendor/bundle/gems/rspec-mocks-2.12.2/lib/rspec/mocks/configuration.rb +28 -0
- data/vendor/bundle/gems/rspec-mocks-2.12.2/lib/rspec/mocks/error_generator.rb +120 -0
- data/vendor/bundle/gems/rspec-mocks-2.12.2/lib/rspec/mocks/errors.rb +12 -0
- data/vendor/bundle/gems/rspec-mocks-2.12.2/lib/rspec/mocks/example_methods.rb +120 -0
- data/vendor/bundle/gems/rspec-mocks-2.12.2/lib/rspec/mocks/extensions/instance_exec.rb +34 -0
- data/vendor/bundle/gems/rspec-mocks-2.12.2/lib/rspec/mocks/extensions/marshal.rb +23 -0
- data/vendor/bundle/gems/rspec-mocks-2.12.2/lib/rspec/mocks/extensions/psych.rb +23 -0
- data/vendor/bundle/gems/rspec-mocks-2.12.2/lib/rspec/mocks/framework.rb +22 -0
- data/vendor/bundle/gems/rspec-mocks-2.12.2/lib/rspec/mocks/instance_method_stasher.rb +85 -0
- data/vendor/bundle/gems/rspec-mocks-2.12.2/lib/rspec/mocks/message_expectation.rb +503 -0
- data/vendor/bundle/gems/rspec-mocks-2.12.2/lib/rspec/mocks/method_double.rb +280 -0
- data/vendor/bundle/gems/rspec-mocks-2.12.2/lib/rspec/mocks/methods.rb +155 -0
- data/vendor/bundle/gems/rspec-mocks-2.12.2/lib/rspec/mocks/mock.rb +7 -0
- data/vendor/bundle/gems/rspec-mocks-2.12.2/lib/rspec/mocks/mutate_const.rb +415 -0
- data/vendor/bundle/gems/rspec-mocks-2.12.2/lib/rspec/mocks/order_group.rb +40 -0
- data/vendor/bundle/gems/rspec-mocks-2.12.2/lib/rspec/mocks/proxy.rb +205 -0
- data/vendor/bundle/gems/rspec-mocks-2.12.2/lib/rspec/mocks/serialization.rb +34 -0
- data/vendor/bundle/gems/rspec-mocks-2.12.2/lib/rspec/mocks/space.rb +34 -0
- data/vendor/bundle/gems/rspec-mocks-2.12.2/lib/rspec/mocks/standalone.rb +3 -0
- data/vendor/bundle/gems/rspec-mocks-2.12.2/lib/rspec/mocks/test_double.rb +103 -0
- data/vendor/bundle/gems/rspec-mocks-2.12.2/lib/rspec/mocks/version.rb +7 -0
- data/vendor/bundle/gems/rspec-mocks-2.12.2/lib/rspec/mocks.rb +63 -0
- data/vendor/bundle/gems/rspec-mocks-2.12.2/lib/spec/mocks.rb +6 -0
- data/vendor/bundle/gems/rspec-mocks-2.12.2/spec/rspec/mocks/and_call_original_spec.rb +225 -0
- data/vendor/bundle/gems/rspec-mocks-2.12.2/spec/rspec/mocks/and_yield_spec.rb +114 -0
- data/vendor/bundle/gems/rspec-mocks-2.12.2/spec/rspec/mocks/any_instance/message_chains_spec.rb +40 -0
- data/vendor/bundle/gems/rspec-mocks-2.12.2/spec/rspec/mocks/any_instance_spec.rb +888 -0
- data/vendor/bundle/gems/rspec-mocks-2.12.2/spec/rspec/mocks/any_number_of_times_spec.rb +30 -0
- data/vendor/bundle/gems/rspec-mocks-2.12.2/spec/rspec/mocks/argument_expectation_spec.rb +34 -0
- data/vendor/bundle/gems/rspec-mocks-2.12.2/spec/rspec/mocks/at_least_spec.rb +142 -0
- data/vendor/bundle/gems/rspec-mocks-2.12.2/spec/rspec/mocks/at_most_spec.rb +90 -0
- data/vendor/bundle/gems/rspec-mocks-2.12.2/spec/rspec/mocks/block_return_value_spec.rb +53 -0
- data/vendor/bundle/gems/rspec-mocks-2.12.2/spec/rspec/mocks/bug_report_10260_spec.rb +8 -0
- data/vendor/bundle/gems/rspec-mocks-2.12.2/spec/rspec/mocks/bug_report_10263_spec.rb +27 -0
- data/vendor/bundle/gems/rspec-mocks-2.12.2/spec/rspec/mocks/bug_report_11545_spec.rb +32 -0
- data/vendor/bundle/gems/rspec-mocks-2.12.2/spec/rspec/mocks/bug_report_496_spec.rb +17 -0
- data/vendor/bundle/gems/rspec-mocks-2.12.2/spec/rspec/mocks/bug_report_600_spec.rb +22 -0
- data/vendor/bundle/gems/rspec-mocks-2.12.2/spec/rspec/mocks/bug_report_7611_spec.rb +16 -0
- data/vendor/bundle/gems/rspec-mocks-2.12.2/spec/rspec/mocks/bug_report_8165_spec.rb +31 -0
- data/vendor/bundle/gems/rspec-mocks-2.12.2/spec/rspec/mocks/bug_report_830_spec.rb +21 -0
- data/vendor/bundle/gems/rspec-mocks-2.12.2/spec/rspec/mocks/bug_report_957_spec.rb +22 -0
- data/vendor/bundle/gems/rspec-mocks-2.12.2/spec/rspec/mocks/configuration_spec.rb +26 -0
- data/vendor/bundle/gems/rspec-mocks-2.12.2/spec/rspec/mocks/double_spec.rb +12 -0
- data/vendor/bundle/gems/rspec-mocks-2.12.2/spec/rspec/mocks/failing_argument_matchers_spec.rb +94 -0
- data/vendor/bundle/gems/rspec-mocks-2.12.2/spec/rspec/mocks/hash_excluding_matcher_spec.rb +67 -0
- data/vendor/bundle/gems/rspec-mocks-2.12.2/spec/rspec/mocks/hash_including_matcher_spec.rb +90 -0
- data/vendor/bundle/gems/rspec-mocks-2.12.2/spec/rspec/mocks/instance_method_stasher_spec.rb +58 -0
- data/vendor/bundle/gems/rspec-mocks-2.12.2/spec/rspec/mocks/mock_ordering_spec.rb +103 -0
- data/vendor/bundle/gems/rspec-mocks-2.12.2/spec/rspec/mocks/mock_space_spec.rb +58 -0
- data/vendor/bundle/gems/rspec-mocks-2.12.2/spec/rspec/mocks/mock_spec.rb +734 -0
- data/vendor/bundle/gems/rspec-mocks-2.12.2/spec/rspec/mocks/multiple_return_value_spec.rb +119 -0
- data/vendor/bundle/gems/rspec-mocks-2.12.2/spec/rspec/mocks/mutate_const_spec.rb +481 -0
- data/vendor/bundle/gems/rspec-mocks-2.12.2/spec/rspec/mocks/nil_expectation_warning_spec.rb +56 -0
- data/vendor/bundle/gems/rspec-mocks-2.12.2/spec/rspec/mocks/null_object_mock_spec.rb +107 -0
- data/vendor/bundle/gems/rspec-mocks-2.12.2/spec/rspec/mocks/once_counts_spec.rb +52 -0
- data/vendor/bundle/gems/rspec-mocks-2.12.2/spec/rspec/mocks/options_hash_spec.rb +35 -0
- data/vendor/bundle/gems/rspec-mocks-2.12.2/spec/rspec/mocks/partial_mock_spec.rb +196 -0
- data/vendor/bundle/gems/rspec-mocks-2.12.2/spec/rspec/mocks/partial_mock_using_mocks_directly_spec.rb +95 -0
- data/vendor/bundle/gems/rspec-mocks-2.12.2/spec/rspec/mocks/passing_argument_matchers_spec.rb +142 -0
- data/vendor/bundle/gems/rspec-mocks-2.12.2/spec/rspec/mocks/precise_counts_spec.rb +68 -0
- data/vendor/bundle/gems/rspec-mocks-2.12.2/spec/rspec/mocks/record_messages_spec.rb +26 -0
- data/vendor/bundle/gems/rspec-mocks-2.12.2/spec/rspec/mocks/serialization_spec.rb +110 -0
- data/vendor/bundle/gems/rspec-mocks-2.12.2/spec/rspec/mocks/stash_spec.rb +54 -0
- data/vendor/bundle/gems/rspec-mocks-2.12.2/spec/rspec/mocks/stub_chain_spec.rb +154 -0
- data/vendor/bundle/gems/rspec-mocks-2.12.2/spec/rspec/mocks/stub_implementation_spec.rb +81 -0
- data/vendor/bundle/gems/rspec-mocks-2.12.2/spec/rspec/mocks/stub_spec.rb +266 -0
- data/vendor/bundle/gems/rspec-mocks-2.12.2/spec/rspec/mocks/stubbed_message_expectations_spec.rb +47 -0
- data/vendor/bundle/gems/rspec-mocks-2.12.2/spec/rspec/mocks/test_double_spec.rb +57 -0
- data/vendor/bundle/gems/rspec-mocks-2.12.2/spec/rspec/mocks/to_ary_spec.rb +40 -0
- data/vendor/bundle/gems/rspec-mocks-2.12.2/spec/rspec/mocks/twice_counts_spec.rb +66 -0
- data/vendor/bundle/gems/rspec-mocks-2.12.2/spec/rspec/mocks_spec.rb +67 -0
- data/vendor/bundle/gems/rspec-mocks-2.12.2/spec/spec_helper.rb +36 -0
- data/vendor/bundle/specifications/diff-lcs-1.1.3.gemspec +35 -0
- data/vendor/bundle/specifications/hiredis-0.4.5.gemspec +30 -0
- data/vendor/bundle/specifications/multi_json-1.6.1.gemspec +30 -0
- data/vendor/bundle/specifications/rake-10.0.3.gemspec +34 -0
- data/vendor/bundle/specifications/redis-3.0.2.gemspec +28 -0
- data/vendor/bundle/specifications/rspec-2.12.0.gemspec +39 -0
- data/vendor/bundle/specifications/rspec-core-2.12.2.gemspec +58 -0
- data/vendor/bundle/specifications/rspec-expectations-2.12.1.gemspec +40 -0
- data/vendor/bundle/specifications/rspec-mocks-2.12.2.gemspec +37 -0
- data/vendor/remq/Readme.md +30 -16
- data/vendor/remq/VERSION +1 -0
- data/vendor/remq/scripts/consume.lua +24 -38
- data/vendor/remq/scripts/flush.lua +33 -0
- data/vendor/remq/scripts/publish.lua +10 -7
- metadata +806 -29
- data/lib/remq/coder.rb +0 -30
- data/lib/remq/multi_json_coder.rb +0 -39
- data/vendor/remq/scripts/purge.lua +0 -18
@@ -0,0 +1,699 @@
|
|
1
|
+
module RSpec
|
2
|
+
# RSpec::Matchers provides a number of useful matchers we use to compose
|
3
|
+
# expectations. A matcher is any object that responds to the following:
|
4
|
+
#
|
5
|
+
# matches?(actual)
|
6
|
+
# failure_message_for_should
|
7
|
+
#
|
8
|
+
# These methods are also part of the matcher protocol, but are optional:
|
9
|
+
#
|
10
|
+
# does_not_match?(actual)
|
11
|
+
# failure_message_for_should_not
|
12
|
+
# description
|
13
|
+
#
|
14
|
+
# ## Predicates
|
15
|
+
#
|
16
|
+
# In addition to matchers that are defined explicitly, RSpec will create
|
17
|
+
# custom matchers on the fly for any arbitrary predicate, giving your specs a
|
18
|
+
# much more natural language feel.
|
19
|
+
#
|
20
|
+
# A Ruby predicate is a method that ends with a "?" and returns true or false.
|
21
|
+
# Common examples are `empty?`, `nil?`, and `instance_of?`.
|
22
|
+
#
|
23
|
+
# All you need to do is write `should be_` followed by the predicate without
|
24
|
+
# the question mark, and RSpec will figure it out from there. For example:
|
25
|
+
#
|
26
|
+
# [].should be_empty # => [].empty?() | passes
|
27
|
+
# [].should_not be_empty # => [].empty?() | fails
|
28
|
+
#
|
29
|
+
# In addtion to prefixing the predicate matchers with "be_", you can also use "be_a_"
|
30
|
+
# and "be_an_", making your specs read much more naturally:
|
31
|
+
#
|
32
|
+
# "a string".should be_an_instance_of(String) =>"a string".instance_of?(String) #passes
|
33
|
+
#
|
34
|
+
# 3.should be_a_kind_of(Fixnum) # => 3.kind_of?(Numeric) | passes
|
35
|
+
# 3.should be_a_kind_of(Numeric) # => 3.kind_of?(Numeric) | passes
|
36
|
+
# 3.should be_an_instance_of(Fixnum) # => 3.instance_of?(Fixnum) | passes
|
37
|
+
# 3.should_not be_instance_of(Numeric) # => 3.instance_of?(Numeric) | fails
|
38
|
+
#
|
39
|
+
# RSpec will also create custom matchers for predicates like `has_key?`. To
|
40
|
+
# use this feature, just state that the object should have_key(:key) and RSpec will
|
41
|
+
# call has_key?(:key) on the target. For example:
|
42
|
+
#
|
43
|
+
# {:a => "A"}.should have_key(:a) # => {:a => "A"}.has_key?(:a) | passes
|
44
|
+
# {:a => "A"}.should have_key(:b) # => {:a => "A"}.has_key?(:b) | fails
|
45
|
+
#
|
46
|
+
# You can use this feature to invoke any predicate that begins with "has_", whether it is
|
47
|
+
# part of the Ruby libraries (like `Hash#has_key?`) or a method you wrote on your own class.
|
48
|
+
#
|
49
|
+
# ## Custom Matchers
|
50
|
+
#
|
51
|
+
# When you find that none of the stock matchers provide a natural feeling
|
52
|
+
# expectation, you can very easily write your own using RSpec's matcher DSL
|
53
|
+
# or writing one from scratch.
|
54
|
+
#
|
55
|
+
# ### Matcher DSL
|
56
|
+
#
|
57
|
+
# Imagine that you are writing a game in which players can be in various
|
58
|
+
# zones on a virtual board. To specify that bob should be in zone 4, you
|
59
|
+
# could say:
|
60
|
+
#
|
61
|
+
# bob.current_zone.should eql(Zone.new("4"))
|
62
|
+
#
|
63
|
+
# But you might find it more expressive to say:
|
64
|
+
#
|
65
|
+
# bob.should be_in_zone("4")
|
66
|
+
#
|
67
|
+
# and/or
|
68
|
+
#
|
69
|
+
# bob.should_not be_in_zone("3")
|
70
|
+
#
|
71
|
+
# You can create such a matcher like so:
|
72
|
+
#
|
73
|
+
# RSpec::Matchers.define :be_in_zone do |zone|
|
74
|
+
# match do |player|
|
75
|
+
# player.in_zone?(zone)
|
76
|
+
# end
|
77
|
+
# end
|
78
|
+
#
|
79
|
+
# This will generate a <tt>be_in_zone</tt> method that returns a matcher
|
80
|
+
# with logical default messages for failures. You can override the failure
|
81
|
+
# messages and the generated description as follows:
|
82
|
+
#
|
83
|
+
# RSpec::Matchers.define :be_in_zone do |zone|
|
84
|
+
# match do |player|
|
85
|
+
# player.in_zone?(zone)
|
86
|
+
# end
|
87
|
+
#
|
88
|
+
# failure_message_for_should do |player|
|
89
|
+
# # generate and return the appropriate string.
|
90
|
+
# end
|
91
|
+
#
|
92
|
+
# failure_message_for_should_not do |player|
|
93
|
+
# # generate and return the appropriate string.
|
94
|
+
# end
|
95
|
+
#
|
96
|
+
# description do
|
97
|
+
# # generate and return the appropriate string.
|
98
|
+
# end
|
99
|
+
# end
|
100
|
+
#
|
101
|
+
# Each of the message-generation methods has access to the block arguments
|
102
|
+
# passed to the <tt>create</tt> method (in this case, <tt>zone</tt>). The
|
103
|
+
# failure message methods (<tt>failure_message_for_should</tt> and
|
104
|
+
# <tt>failure_message_for_should_not</tt>) are passed the actual value (the
|
105
|
+
# receiver of <tt>should</tt> or <tt>should_not</tt>).
|
106
|
+
#
|
107
|
+
# ### Custom Matcher from scratch
|
108
|
+
#
|
109
|
+
# You could also write a custom matcher from scratch, as follows:
|
110
|
+
#
|
111
|
+
# class BeInZone
|
112
|
+
# def initialize(expected)
|
113
|
+
# @expected = expected
|
114
|
+
# end
|
115
|
+
#
|
116
|
+
# def matches?(target)
|
117
|
+
# @target = target
|
118
|
+
# @target.current_zone.eql?(Zone.new(@expected))
|
119
|
+
# end
|
120
|
+
#
|
121
|
+
# def failure_message_for_should
|
122
|
+
# "expected #{@target.inspect} to be in Zone #{@expected}"
|
123
|
+
# end
|
124
|
+
#
|
125
|
+
# def failure_message_for_should_not
|
126
|
+
# "expected #{@target.inspect} not to be in Zone #{@expected}"
|
127
|
+
# end
|
128
|
+
# end
|
129
|
+
#
|
130
|
+
# ... and a method like this:
|
131
|
+
#
|
132
|
+
# def be_in_zone(expected)
|
133
|
+
# BeInZone.new(expected)
|
134
|
+
# end
|
135
|
+
#
|
136
|
+
# And then expose the method to your specs. This is normally done
|
137
|
+
# by including the method and the class in a module, which is then
|
138
|
+
# included in your spec:
|
139
|
+
#
|
140
|
+
# module CustomGameMatchers
|
141
|
+
# class BeInZone
|
142
|
+
# # ...
|
143
|
+
# end
|
144
|
+
#
|
145
|
+
# def be_in_zone(expected)
|
146
|
+
# # ...
|
147
|
+
# end
|
148
|
+
# end
|
149
|
+
#
|
150
|
+
# describe "Player behaviour" do
|
151
|
+
# include CustomGameMatchers
|
152
|
+
# # ...
|
153
|
+
# end
|
154
|
+
#
|
155
|
+
# or you can include in globally in a spec_helper.rb file <tt>require</tt>d
|
156
|
+
# from your spec file(s):
|
157
|
+
#
|
158
|
+
# RSpec::configure do |config|
|
159
|
+
# config.include(CustomGameMatchers)
|
160
|
+
# end
|
161
|
+
module Matchers
|
162
|
+
# Include Matchers for other test frameworks. Note that MiniTest _must_
|
163
|
+
# come before TU because on ruby 1.9, T::U::TC is a subclass of MT::U::TC
|
164
|
+
# and a 1.9 bug can lead to infinite recursion from the `super` call in our
|
165
|
+
# method_missing hook. See this gist for more info:
|
166
|
+
# https://gist.github.com/845896
|
167
|
+
if defined?(MiniTest::Unit::TestCase)
|
168
|
+
MiniTest::Unit::TestCase.send(:include, self)
|
169
|
+
end
|
170
|
+
if defined?(Test::Unit::TestCase)
|
171
|
+
Test::Unit::TestCase.send(:include, self)
|
172
|
+
end
|
173
|
+
end
|
174
|
+
end
|
175
|
+
|
176
|
+
require 'rspec/matchers/extensions/instance_eval_with_args'
|
177
|
+
require 'rspec/matchers/pretty'
|
178
|
+
|
179
|
+
require 'rspec/matchers/built_in'
|
180
|
+
require 'rspec/matchers/matcher'
|
181
|
+
require 'rspec/matchers/operator_matcher'
|
182
|
+
require 'rspec/matchers/be_close'
|
183
|
+
|
184
|
+
require 'rspec/matchers/generated_descriptions'
|
185
|
+
require 'rspec/matchers/method_missing'
|
186
|
+
require 'rspec/matchers/compatibility'
|
187
|
+
require 'rspec/matchers/dsl'
|
188
|
+
|
189
|
+
module RSpec
|
190
|
+
module Matchers
|
191
|
+
|
192
|
+
# Passes if actual is truthy (anything but false or nil)
|
193
|
+
def be_true
|
194
|
+
BuiltIn::BeTrue.new
|
195
|
+
end
|
196
|
+
|
197
|
+
# Passes if actual is falsy (false or nil)
|
198
|
+
def be_false
|
199
|
+
BuiltIn::BeFalse.new
|
200
|
+
end
|
201
|
+
|
202
|
+
# Passes if actual is nil
|
203
|
+
def be_nil
|
204
|
+
BuiltIn::BeNil.new
|
205
|
+
end
|
206
|
+
|
207
|
+
# @example
|
208
|
+
# actual.should be_true
|
209
|
+
# actual.should be_false
|
210
|
+
# actual.should be_nil
|
211
|
+
# actual.should be_[arbitrary_predicate](*args)
|
212
|
+
# actual.should_not be_nil
|
213
|
+
# actual.should_not be_[arbitrary_predicate](*args)
|
214
|
+
#
|
215
|
+
# Given true, false, or nil, will pass if actual value is true, false or
|
216
|
+
# nil (respectively). Given no args means the caller should satisfy an if
|
217
|
+
# condition (to be or not to be).
|
218
|
+
#
|
219
|
+
# Predicates are any Ruby method that ends in a "?" and returns true or
|
220
|
+
# false. Given be_ followed by arbitrary_predicate (without the "?"),
|
221
|
+
# RSpec will match convert that into a query against the target object.
|
222
|
+
#
|
223
|
+
# The arbitrary_predicate feature will handle any predicate prefixed with
|
224
|
+
# "be_an_" (e.g. be_an_instance_of), "be_a_" (e.g. be_a_kind_of) or "be_"
|
225
|
+
# (e.g. be_empty), letting you choose the prefix that best suits the
|
226
|
+
# predicate.
|
227
|
+
def be(*args)
|
228
|
+
args.empty? ?
|
229
|
+
Matchers::BuiltIn::Be.new : equal(*args)
|
230
|
+
end
|
231
|
+
|
232
|
+
# passes if target.kind_of?(klass)
|
233
|
+
def be_a(klass)
|
234
|
+
be_a_kind_of(klass)
|
235
|
+
end
|
236
|
+
|
237
|
+
alias_method :be_an, :be_a
|
238
|
+
|
239
|
+
# Passes if actual.instance_of?(expected)
|
240
|
+
#
|
241
|
+
# @example
|
242
|
+
#
|
243
|
+
# 5.should be_instance_of(Fixnum)
|
244
|
+
# 5.should_not be_instance_of(Numeric)
|
245
|
+
# 5.should_not be_instance_of(Float)
|
246
|
+
def be_an_instance_of(expected)
|
247
|
+
BuiltIn::BeAnInstanceOf.new(expected)
|
248
|
+
end
|
249
|
+
|
250
|
+
alias_method :be_instance_of, :be_an_instance_of
|
251
|
+
|
252
|
+
# Passes if actual.kind_of?(expected)
|
253
|
+
#
|
254
|
+
# @example
|
255
|
+
#
|
256
|
+
# 5.should be_kind_of(Fixnum)
|
257
|
+
# 5.should be_kind_of(Numeric)
|
258
|
+
# 5.should_not be_kind_of(Float)
|
259
|
+
def be_a_kind_of(expected)
|
260
|
+
BuiltIn::BeAKindOf.new(expected)
|
261
|
+
end
|
262
|
+
|
263
|
+
alias_method :be_kind_of, :be_a_kind_of
|
264
|
+
|
265
|
+
# Passes if actual == expected +/- delta
|
266
|
+
#
|
267
|
+
# @example
|
268
|
+
#
|
269
|
+
# result.should be_within(0.5).of(3.0)
|
270
|
+
# result.should_not be_within(0.5).of(3.0)
|
271
|
+
def be_within(delta)
|
272
|
+
BuiltIn::BeWithin.new(delta)
|
273
|
+
end
|
274
|
+
|
275
|
+
# Applied to a proc, specifies that its execution will cause some value to
|
276
|
+
# change.
|
277
|
+
#
|
278
|
+
# @param [Object] receiver
|
279
|
+
# @param [Symbol] message the message to send the receiver
|
280
|
+
#
|
281
|
+
# You can either pass <tt>receiver</tt> and <tt>message</tt>, or a block,
|
282
|
+
# but not both.
|
283
|
+
#
|
284
|
+
# When passing a block, it must use the <tt>{ ... }</tt> format, not
|
285
|
+
# do/end, as <tt>{ ... }</tt> binds to the +change+ method, whereas do/end
|
286
|
+
# would errantly bind to the +should+ or +should_not+ method.
|
287
|
+
#
|
288
|
+
# @example
|
289
|
+
#
|
290
|
+
# lambda {
|
291
|
+
# team.add_player(player)
|
292
|
+
# }.should change(roster, :count)
|
293
|
+
#
|
294
|
+
# lambda {
|
295
|
+
# team.add_player(player)
|
296
|
+
# }.should change(roster, :count).by(1)
|
297
|
+
#
|
298
|
+
# lambda {
|
299
|
+
# team.add_player(player)
|
300
|
+
# }.should change(roster, :count).by_at_least(1)
|
301
|
+
#
|
302
|
+
# lambda {
|
303
|
+
# team.add_player(player)
|
304
|
+
# }.should change(roster, :count).by_at_most(1)
|
305
|
+
#
|
306
|
+
# string = "string"
|
307
|
+
# lambda {
|
308
|
+
# string.reverse!
|
309
|
+
# }.should change { string }.from("string").to("gnirts")
|
310
|
+
#
|
311
|
+
# lambda {
|
312
|
+
# person.happy_birthday
|
313
|
+
# }.should change(person, :birthday).from(32).to(33)
|
314
|
+
#
|
315
|
+
# lambda {
|
316
|
+
# employee.develop_great_new_social_networking_app
|
317
|
+
# }.should change(employee, :title).from("Mail Clerk").to("CEO")
|
318
|
+
#
|
319
|
+
# lambda {
|
320
|
+
# doctor.leave_office
|
321
|
+
# }.should change(doctor, :sign).from(/is in/).to(/is out/)
|
322
|
+
#
|
323
|
+
# user = User.new(:type => "admin")
|
324
|
+
# lambda {
|
325
|
+
# user.symbolize_type
|
326
|
+
# }.should change(user, :type).from(String).to(Symbol)
|
327
|
+
#
|
328
|
+
# == Notes
|
329
|
+
#
|
330
|
+
# Evaluates <tt>receiver.message</tt> or <tt>block</tt> before and after it
|
331
|
+
# evaluates the proc object (generated by the lambdas in the examples
|
332
|
+
# above).
|
333
|
+
#
|
334
|
+
# <tt>should_not change</tt> only supports the form with no subsequent
|
335
|
+
# calls to <tt>by</tt>, <tt>by_at_least</tt>, <tt>by_at_most</tt>,
|
336
|
+
# <tt>to</tt> or <tt>from</tt>.
|
337
|
+
def change(receiver=nil, message=nil, &block)
|
338
|
+
BuiltIn::Change.new(receiver, message, &block)
|
339
|
+
end
|
340
|
+
|
341
|
+
# Passes if actual covers expected. This works for
|
342
|
+
# Ranges. You can also pass in multiple args
|
343
|
+
# and it will only pass if all args are found in Range.
|
344
|
+
#
|
345
|
+
# @example
|
346
|
+
# (1..10).should cover(5)
|
347
|
+
# (1..10).should cover(4, 6)
|
348
|
+
# (1..10).should cover(4, 6, 11) # will fail
|
349
|
+
# (1..10).should_not cover(11)
|
350
|
+
# (1..10).should_not cover(5) # will fail
|
351
|
+
#
|
352
|
+
# ### Warning:: Ruby >= 1.9 only
|
353
|
+
def cover(*values)
|
354
|
+
BuiltIn::Cover.new(*values)
|
355
|
+
end if (1..2).respond_to?(:cover?)
|
356
|
+
|
357
|
+
# Matches if the actual value ends with the expected value(s). In the case
|
358
|
+
# of a string, matches against the last `expected.length` characters of the
|
359
|
+
# actual string. In the case of an array, matches against the last
|
360
|
+
# `expected.length` elements of the actual array.
|
361
|
+
#
|
362
|
+
# @example
|
363
|
+
#
|
364
|
+
# "this string".should end_with "string"
|
365
|
+
# [0, 1, 2, 3, 4].should end_with 4
|
366
|
+
# [0, 2, 3, 4, 4].should end_with 3, 4
|
367
|
+
def end_with(*expected)
|
368
|
+
BuiltIn::EndWith.new(*expected)
|
369
|
+
end
|
370
|
+
|
371
|
+
# Passes if <tt>actual == expected</tt>.
|
372
|
+
#
|
373
|
+
# See http://www.ruby-doc.org/core/classes/Object.html#M001057 for more information about equality in Ruby.
|
374
|
+
#
|
375
|
+
# @example
|
376
|
+
#
|
377
|
+
# 5.should eq(5)
|
378
|
+
# 5.should_not eq(3)
|
379
|
+
def eq(expected)
|
380
|
+
BuiltIn::Eq.new(expected)
|
381
|
+
end
|
382
|
+
|
383
|
+
# Passes if +actual.eql?(expected)+
|
384
|
+
#
|
385
|
+
# See http://www.ruby-doc.org/core/classes/Object.html#M001057 for more information about equality in Ruby.
|
386
|
+
#
|
387
|
+
# @example
|
388
|
+
#
|
389
|
+
# 5.should eql(5)
|
390
|
+
# 5.should_not eql(3)
|
391
|
+
def eql(expected)
|
392
|
+
BuiltIn::Eql.new(expected)
|
393
|
+
end
|
394
|
+
|
395
|
+
# Passes if <tt>actual.equal?(expected)</tt> (object identity).
|
396
|
+
#
|
397
|
+
# See http://www.ruby-doc.org/core/classes/Object.html#M001057 for more information about equality in Ruby.
|
398
|
+
#
|
399
|
+
# @example
|
400
|
+
#
|
401
|
+
# 5.should equal(5) # Fixnums are equal
|
402
|
+
# "5".should_not equal("5") # Strings that look the same are not the same object
|
403
|
+
def equal(expected)
|
404
|
+
BuiltIn::Equal.new(expected)
|
405
|
+
end
|
406
|
+
|
407
|
+
# Passes if `actual.exist?` or `actual.exists?`
|
408
|
+
#
|
409
|
+
# @example
|
410
|
+
# File.should exist("path/to/file")
|
411
|
+
def exist(*args)
|
412
|
+
BuiltIn::Exist.new(*args)
|
413
|
+
end
|
414
|
+
|
415
|
+
# Passes if receiver is a collection with the submitted number of items OR
|
416
|
+
# if the receiver OWNS a collection with the submitted number of items.
|
417
|
+
#
|
418
|
+
# If the receiver OWNS the collection, you must use the name of the
|
419
|
+
# collection. So if a `Team` instance has a collection named `#players`,
|
420
|
+
# you must use that name to set the expectation.
|
421
|
+
#
|
422
|
+
# If the receiver IS the collection, you can use any name you like for
|
423
|
+
# `named_collection`. We'd recommend using either "elements", "members", or
|
424
|
+
# "items" as these are all standard ways of describing the things IN a
|
425
|
+
# collection.
|
426
|
+
#
|
427
|
+
# This also works for Strings, letting you set expectations about their
|
428
|
+
# lengths.
|
429
|
+
#
|
430
|
+
# @example
|
431
|
+
#
|
432
|
+
# # Passes if team.players.size == 11
|
433
|
+
# team.should have(11).players
|
434
|
+
#
|
435
|
+
# # Passes if [1,2,3].length == 3
|
436
|
+
# [1,2,3].should have(3).items #"items" is pure sugar
|
437
|
+
#
|
438
|
+
# # Passes if ['a', 'b', 'c'].count == 3
|
439
|
+
# [1,2,3].should have(3).items #"items" is pure sugar
|
440
|
+
#
|
441
|
+
# # Passes if "this string".length == 11
|
442
|
+
# "this string".should have(11).characters #"characters" is pure sugar
|
443
|
+
def have(n)
|
444
|
+
BuiltIn::Have.new(n)
|
445
|
+
end
|
446
|
+
alias :have_exactly :have
|
447
|
+
|
448
|
+
# Exactly like have() with >=.
|
449
|
+
#
|
450
|
+
# @example
|
451
|
+
# "this".should have_at_least(3).letters
|
452
|
+
#
|
453
|
+
# ### Warning:
|
454
|
+
#
|
455
|
+
# `should_not have_at_least` is not supported
|
456
|
+
def have_at_least(n)
|
457
|
+
BuiltIn::Have.new(n, :at_least)
|
458
|
+
end
|
459
|
+
|
460
|
+
# Exactly like have() with <=.
|
461
|
+
#
|
462
|
+
# @example
|
463
|
+
# should have_at_most(number).items
|
464
|
+
#
|
465
|
+
# ### Warning:
|
466
|
+
#
|
467
|
+
# `should_not have_at_most` is not supported
|
468
|
+
def have_at_most(n)
|
469
|
+
BuiltIn::Have.new(n, :at_most)
|
470
|
+
end
|
471
|
+
|
472
|
+
# Passes if actual includes expected. This works for
|
473
|
+
# collections and Strings. You can also pass in multiple args
|
474
|
+
# and it will only pass if all args are found in collection.
|
475
|
+
#
|
476
|
+
# @example
|
477
|
+
#
|
478
|
+
# [1,2,3].should include(3)
|
479
|
+
# [1,2,3].should include(2,3) #would pass
|
480
|
+
# [1,2,3].should include(2,3,4) #would fail
|
481
|
+
# [1,2,3].should_not include(4)
|
482
|
+
# "spread".should include("read")
|
483
|
+
# "spread".should_not include("red")
|
484
|
+
def include(*expected)
|
485
|
+
BuiltIn::Include.new(*expected)
|
486
|
+
end
|
487
|
+
|
488
|
+
# Given a Regexp or String, passes if actual.match(pattern)
|
489
|
+
#
|
490
|
+
# @example
|
491
|
+
#
|
492
|
+
# email.should match(/^([^\s]+)((?:[-a-z0-9]+\.)+[a-z]{2,})$/i)
|
493
|
+
# email.should match("@example.com")
|
494
|
+
# zipcode.should match_regex(/\A\d{5}(-\d{4})?\z/)
|
495
|
+
# zipcode.should match_regex("90210")
|
496
|
+
#
|
497
|
+
# @note Due to Ruby's method dispatch mechanism, using the `#match` matcher
|
498
|
+
# within a custom matcher defined via the matcher DSL
|
499
|
+
# (`RSpec::Matcher.define`) will result Ruby calling the wrong `#match`
|
500
|
+
# method and raising an `ArgumentError`. Instead, use the aliased
|
501
|
+
# `#match_regex` method.
|
502
|
+
def match(expected)
|
503
|
+
BuiltIn::Match.new(expected)
|
504
|
+
end
|
505
|
+
|
506
|
+
alias_method :match_regex, :match
|
507
|
+
|
508
|
+
# With no args, matches if any error is raised.
|
509
|
+
# With a named error, matches only if that specific error is raised.
|
510
|
+
# With a named error and messsage specified as a String, matches only if both match.
|
511
|
+
# With a named error and messsage specified as a Regexp, matches only if both match.
|
512
|
+
# Pass an optional block to perform extra verifications on the exception matched
|
513
|
+
#
|
514
|
+
# @example
|
515
|
+
#
|
516
|
+
# lambda { do_something_risky }.should raise_error
|
517
|
+
# lambda { do_something_risky }.should raise_error(PoorRiskDecisionError)
|
518
|
+
# lambda { do_something_risky }.should raise_error(PoorRiskDecisionError) { |error| error.data.should == 42 }
|
519
|
+
# lambda { do_something_risky }.should raise_error(PoorRiskDecisionError, "that was too risky")
|
520
|
+
# lambda { do_something_risky }.should raise_error(PoorRiskDecisionError, /oo ri/)
|
521
|
+
#
|
522
|
+
# lambda { do_something_risky }.should_not raise_error
|
523
|
+
# lambda { do_something_risky }.should_not raise_error(PoorRiskDecisionError)
|
524
|
+
# lambda { do_something_risky }.should_not raise_error(PoorRiskDecisionError, "that was too risky")
|
525
|
+
# lambda { do_something_risky }.should_not raise_error(PoorRiskDecisionError, /oo ri/)
|
526
|
+
def raise_error(error=Exception, message=nil, &block)
|
527
|
+
BuiltIn::RaiseError.new(error, message, &block)
|
528
|
+
end
|
529
|
+
|
530
|
+
alias_method :raise_exception, :raise_error
|
531
|
+
|
532
|
+
# Matches if the target object responds to all of the names
|
533
|
+
# provided. Names can be Strings or Symbols.
|
534
|
+
#
|
535
|
+
# @example
|
536
|
+
#
|
537
|
+
def respond_to(*names)
|
538
|
+
BuiltIn::RespondTo.new(*names)
|
539
|
+
end
|
540
|
+
|
541
|
+
# Passes if the submitted block returns true. Yields target to the
|
542
|
+
# block.
|
543
|
+
#
|
544
|
+
# Generally speaking, this should be thought of as a last resort when
|
545
|
+
# you can't find any other way to specify the behaviour you wish to
|
546
|
+
# specify.
|
547
|
+
#
|
548
|
+
# If you do find yourself in such a situation, you could always write
|
549
|
+
# a custom matcher, which would likely make your specs more expressive.
|
550
|
+
#
|
551
|
+
# @example
|
552
|
+
#
|
553
|
+
# 5.should satisfy { |n|
|
554
|
+
# n > 3
|
555
|
+
# }
|
556
|
+
def satisfy(&block)
|
557
|
+
BuiltIn::Satisfy.new(&block)
|
558
|
+
end
|
559
|
+
|
560
|
+
# Matches if the actual value starts with the expected value(s). In the
|
561
|
+
# case of a string, matches against the first `expected.length` characters
|
562
|
+
# of the actual string. In the case of an array, matches against the first
|
563
|
+
# `expected.length` elements of the actual array.
|
564
|
+
#
|
565
|
+
# @example
|
566
|
+
#
|
567
|
+
# "this string".should start_with "this s"
|
568
|
+
# [0, 1, 2, 3, 4].should start_with 0
|
569
|
+
# [0, 2, 3, 4, 4].should start_with 0, 1
|
570
|
+
def start_with(*expected)
|
571
|
+
BuiltIn::StartWith.new(*expected)
|
572
|
+
end
|
573
|
+
|
574
|
+
# Given no argument, matches if a proc throws any Symbol.
|
575
|
+
#
|
576
|
+
# Given a Symbol, matches if the given proc throws the specified Symbol.
|
577
|
+
#
|
578
|
+
# Given a Symbol and an arg, matches if the given proc throws the
|
579
|
+
# specified Symbol with the specified arg.
|
580
|
+
#
|
581
|
+
# @example
|
582
|
+
#
|
583
|
+
# lambda { do_something_risky }.should throw_symbol
|
584
|
+
# lambda { do_something_risky }.should throw_symbol(:that_was_risky)
|
585
|
+
# lambda { do_something_risky }.should throw_symbol(:that_was_risky, culprit)
|
586
|
+
#
|
587
|
+
# lambda { do_something_risky }.should_not throw_symbol
|
588
|
+
# lambda { do_something_risky }.should_not throw_symbol(:that_was_risky)
|
589
|
+
# lambda { do_something_risky }.should_not throw_symbol(:that_was_risky, culprit)
|
590
|
+
def throw_symbol(expected_symbol=nil, expected_arg=nil)
|
591
|
+
BuiltIn::ThrowSymbol.new(expected_symbol, expected_arg)
|
592
|
+
end
|
593
|
+
|
594
|
+
# Passes if the method called in the expect block yields, regardless
|
595
|
+
# of whether or not arguments are yielded.
|
596
|
+
#
|
597
|
+
# @example
|
598
|
+
#
|
599
|
+
# expect { |b| 5.tap(&b) }.to yield_control
|
600
|
+
# expect { |b| "a".to_sym(&b) }.not_to yield_control
|
601
|
+
#
|
602
|
+
# @note Your expect block must accept a parameter and pass it on to
|
603
|
+
# the method-under-test as a block.
|
604
|
+
# @note This matcher is not designed for use with methods that yield
|
605
|
+
# multiple times.
|
606
|
+
def yield_control
|
607
|
+
BuiltIn::YieldControl.new
|
608
|
+
end
|
609
|
+
|
610
|
+
# Passes if the method called in the expect block yields with
|
611
|
+
# no arguments. Fails if it does not yield, or yields with arguments.
|
612
|
+
#
|
613
|
+
# @example
|
614
|
+
#
|
615
|
+
# expect { |b| User.transaction(&b) }.to yield_with_no_args
|
616
|
+
# expect { |b| 5.tap(&b) }.not_to yield_with_no_args # because it yields with `5`
|
617
|
+
# expect { |b| "a".to_sym(&b) }.not_to yield_with_no_args # because it does not yield
|
618
|
+
#
|
619
|
+
# @note Your expect block must accept a parameter and pass it on to
|
620
|
+
# the method-under-test as a block.
|
621
|
+
# @note This matcher is not designed for use with methods that yield
|
622
|
+
# multiple times.
|
623
|
+
def yield_with_no_args
|
624
|
+
BuiltIn::YieldWithNoArgs.new
|
625
|
+
end
|
626
|
+
|
627
|
+
# Given no arguments, matches if the method called in the expect
|
628
|
+
# block yields with arguments (regardless of what they are or how
|
629
|
+
# many there are).
|
630
|
+
#
|
631
|
+
# Given arguments, matches if the method called in the expect block
|
632
|
+
# yields with arguments that match the given arguments.
|
633
|
+
#
|
634
|
+
# Argument matching is done using `===` (the case match operator)
|
635
|
+
# and `==`. If the expected and actual arguments match with either
|
636
|
+
# operator, the matcher will pass.
|
637
|
+
#
|
638
|
+
# @example
|
639
|
+
#
|
640
|
+
# expect { |b| 5.tap(&b) }.to yield_with_args # because #tap yields an arg
|
641
|
+
# expect { |b| 5.tap(&b) }.to yield_with_args(5) # because 5 == 5
|
642
|
+
# expect { |b| 5.tap(&b) }.to yield_with_args(Fixnum) # because Fixnum === 5
|
643
|
+
# expect { |b| File.open("f.txt", &b) }.to yield_with_args(/txt/) # because /txt/ === "f.txt"
|
644
|
+
#
|
645
|
+
# expect { |b| User.transaction(&b) }.not_to yield_with_args # because it yields no args
|
646
|
+
# expect { |b| 5.tap(&b) }.not_to yield_with_args(1, 2, 3)
|
647
|
+
#
|
648
|
+
# @note Your expect block must accept a parameter and pass it on to
|
649
|
+
# the method-under-test as a block.
|
650
|
+
# @note This matcher is not designed for use with methods that yield
|
651
|
+
# multiple times.
|
652
|
+
def yield_with_args(*args)
|
653
|
+
BuiltIn::YieldWithArgs.new(*args)
|
654
|
+
end
|
655
|
+
|
656
|
+
# Designed for use with methods that repeatedly yield (such as
|
657
|
+
# iterators). Passes if the method called in the expect block yields
|
658
|
+
# multiple times with arguments matching those given.
|
659
|
+
#
|
660
|
+
# Argument matching is done using `===` (the case match operator)
|
661
|
+
# and `==`. If the expected and actual arguments match with either
|
662
|
+
# operator, the matcher will pass.
|
663
|
+
#
|
664
|
+
# @example
|
665
|
+
#
|
666
|
+
# expect { |b| [1, 2, 3].each(&b) }.to yield_successive_args(1, 2, 3)
|
667
|
+
# expect { |b| { :a => 1, :b => 2 }.each(&b) }.to yield_successive_args([:a, 1], [:b, 2])
|
668
|
+
# expect { |b| [1, 2, 3].each(&b) }.not_to yield_successive_args(1, 2)
|
669
|
+
#
|
670
|
+
# @note Your expect block must accept a parameter and pass it on to
|
671
|
+
# the method-under-test as a block.
|
672
|
+
def yield_successive_args(*args)
|
673
|
+
BuiltIn::YieldSuccessiveArgs.new(*args)
|
674
|
+
end
|
675
|
+
|
676
|
+
# Passes if actual contains all of the expected regardless of order.
|
677
|
+
# This works for collections. Pass in multiple args and it will only
|
678
|
+
# pass if all args are found in collection.
|
679
|
+
#
|
680
|
+
# @note This is also available using the `=~` operator with `should`,
|
681
|
+
# but `=~` is not supported with `expect`.
|
682
|
+
# @note There is no should_not version of array.should =~ other_array
|
683
|
+
#
|
684
|
+
# @example
|
685
|
+
#
|
686
|
+
# expect([1,2,3]).to match_array([1,2,3])
|
687
|
+
# expect([1,2,3]).to match_array([1,3,2])
|
688
|
+
# [1,2,3].should =~ [1,2,3] # => would pass
|
689
|
+
# [1,2,3].should =~ [2,3,1] # => would pass
|
690
|
+
# [1,2,3,4].should =~ [1,2,3] # => would fail
|
691
|
+
# [1,2,2,3].should =~ [1,2,3] # => would fail
|
692
|
+
# [1,2,3].should =~ [1,2,3,4] # => would fail
|
693
|
+
def match_array(array)
|
694
|
+
BuiltIn::MatchArray.new(array)
|
695
|
+
end
|
696
|
+
|
697
|
+
OperatorMatcher.register(Enumerable, '=~', BuiltIn::MatchArray)
|
698
|
+
end
|
699
|
+
end
|
@@ -0,0 +1 @@
|
|
1
|
+
require "rspec/expectations"
|