messagebus_ruby_api 0.4.0 → 0.4.4
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +40 -50
- data/lib/messagebus_ruby_api/client.rb +76 -54
- data/lib/messagebus_ruby_api/version.rb +1 -1
- data/spec/messagebus_ruby_api/client_spec.rb +66 -19
- data/spec/ruby/1.9.1/bin/autospec +19 -0
- data/spec/ruby/1.9.1/bin/htmldiff +19 -0
- data/spec/ruby/1.9.1/bin/ldiff +19 -0
- data/spec/ruby/1.9.1/bin/rspec +19 -0
- data/spec/ruby/1.9.1/cache/activesupport-3.0.9.gem +0 -0
- data/spec/ruby/1.9.1/cache/diff-lcs-1.1.2.gem +0 -0
- data/spec/ruby/1.9.1/cache/fakeweb-1.3.0.gem +0 -0
- data/spec/ruby/1.9.1/cache/rr-1.0.2.gem +0 -0
- data/spec/ruby/1.9.1/cache/rspec-2.5.0.gem +0 -0
- data/spec/ruby/1.9.1/cache/rspec-core-2.5.1.gem +0 -0
- data/spec/ruby/1.9.1/cache/rspec-expectations-2.5.0.gem +0 -0
- data/spec/ruby/1.9.1/cache/rspec-mocks-2.5.0.gem +0 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/CHANGELOG +1496 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/README.rdoc +33 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/all.rb +3 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/backtrace_cleaner.rb +94 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/base64.rb +42 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/basic_object.rb +21 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/benchmarkable.rb +60 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/buffered_logger.rb +139 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/builder.rb +6 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/cache/compressed_mem_cache_store.rb +13 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/cache/file_store.rb +188 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/cache/mem_cache_store.rb +190 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/cache/memory_store.rb +159 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/cache/strategy/local_cache.rb +164 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/cache/synchronized_memory_store.rb +11 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/cache.rb +638 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/callbacks.rb +601 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/concern.rb +64 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/configurable.rb +48 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/array/access.rb +46 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/array/conversions.rb +164 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/array/extract_options.rb +29 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/array/grouping.rb +100 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/array/random_access.rb +27 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/array/uniq_by.rb +17 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/array/wrap.rb +48 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/array.rb +7 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/benchmark.rb +7 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/big_decimal/conversions.rb +44 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/big_decimal.rb +1 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/cgi/escape_skipping_slashes.rb +19 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/cgi.rb +1 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/class/attribute.rb +90 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/class/attribute_accessors.rb +79 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/class/delegating_attributes.rb +44 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/class/inheritable_attributes.rb +254 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/class/subclasses.rb +50 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/class.rb +5 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/date/acts_like.rb +8 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/date/calculations.rb +241 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/date/conversions.rb +99 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/date/freeze.rb +31 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/date/zones.rb +14 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/date_time/acts_like.rb +13 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/date_time/calculations.rb +115 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/date_time/conversions.rb +103 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/date_time/zones.rb +21 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/enumerable.rb +120 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/exception.rb +3 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/file/atomic.rb +41 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/file/path.rb +5 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/file.rb +2 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/float/rounding.rb +19 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/float.rb +1 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/hash/conversions.rb +151 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/hash/deep_merge.rb +16 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/hash/diff.rb +13 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/hash/except.rb +23 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/hash/indifferent_access.rb +12 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/hash/keys.rb +45 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/hash/reverse_merge.rb +28 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/hash/slice.rb +38 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/hash.rb +8 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/integer/inflections.rb +14 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/integer/multiple.rb +6 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/integer/time.rb +39 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/integer.rb +3 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/kernel/agnostics.rb +11 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/kernel/debugger.rb +16 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/kernel/reporting.rb +62 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/kernel/requires.rb +26 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/kernel/singleton_class.rb +13 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/kernel.rb +5 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/load_error.rb +23 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/logger.rb +108 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/module/aliasing.rb +70 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/module/anonymous.rb +24 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/module/attr_accessor_with_default.rb +31 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/module/attr_internal.rb +32 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/module/attribute_accessors.rb +60 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/module/delegation.rb +146 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/module/deprecation.rb +11 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/module/introspection.rb +88 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/module/method_names.rb +14 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/module/reachable.rb +10 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/module/remove_method.rb +11 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/module/synchronization.rb +43 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/module.rb +12 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/name_error.rb +18 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/numeric/bytes.rb +44 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/numeric/time.rb +77 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/numeric.rb +2 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/object/acts_like.rb +10 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/object/blank.rb +76 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/object/conversions.rb +4 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/object/duplicable.rb +65 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/object/instance_variables.rb +67 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/object/returning.rb +43 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/object/to_json.rb +19 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/object/to_param.rb +50 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/object/to_query.rb +27 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/object/try.rb +36 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/object/with_options.rb +26 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/object.rb +13 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/proc.rb +14 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/process/daemon.rb +23 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/process.rb +1 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/range/blockless_step.rb +29 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/range/conversions.rb +21 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/range/include_range.rb +21 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/range/overlaps.rb +8 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/range.rb +4 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/regexp.rb +5 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/rexml.rb +46 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/string/access.rb +99 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/string/behavior.rb +7 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/string/conversions.rb +53 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/string/encoding.rb +11 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/string/exclude.rb +6 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/string/filters.rb +49 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/string/inflections.rb +164 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/string/interpolation.rb +2 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/string/multibyte.rb +72 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/string/output_safety.rb +135 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/string/starts_ends_with.rb +4 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/string/strip.rb +26 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/string/xchar.rb +18 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/string.rb +13 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/time/acts_like.rb +8 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/time/calculations.rb +287 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/time/conversions.rb +85 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/time/marshal.rb +56 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/time/publicize_conversion_methods.rb +10 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/time/zones.rb +75 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext/uri.rb +22 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/core_ext.rb +3 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/dependencies/autoload.rb +50 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/dependencies.rb +668 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/deprecation/behaviors.rb +42 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/deprecation/method_wrappers.rb +29 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/deprecation/proxy_wrappers.rb +81 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/deprecation/reporting.rb +61 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/deprecation.rb +18 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/descendants_tracker.rb +43 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/duration.rb +105 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/file_update_checker.rb +36 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/gzip.rb +29 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/hash_with_indifferent_access.rb +152 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/i18n.rb +10 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/i18n_railtie.rb +96 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/inflections.rb +60 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/inflector/inflections.rb +211 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/inflector/methods.rb +151 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/inflector/transliterate.rb +98 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/inflector.rb +7 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/json/backends/jsongem.rb +47 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/json/backends/yajl.rb +44 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/json/backends/yaml.rb +107 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/json/decoding.rb +51 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/json/encoding.rb +279 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/json/variable.rb +9 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/json.rb +2 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/lazy_load_hooks.rb +46 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/locale/en.yml +36 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/log_subscriber/test_helper.rb +99 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/log_subscriber.rb +122 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/memoizable.rb +105 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/message_encryptor.rb +71 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/message_verifier.rb +62 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/multibyte/chars.rb +476 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/multibyte/exceptions.rb +8 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/multibyte/unicode.rb +392 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/multibyte/utils.rb +60 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/multibyte.rb +44 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/notifications/fanout.rb +61 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/notifications/instrumenter.rb +54 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/notifications.rb +78 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/option_merger.rb +25 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/ordered_hash.rb +192 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/ordered_options.rb +27 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/railtie.rb +60 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/rescuable.rb +114 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/ruby/shim.rb +22 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/secure_random.rb +199 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/string_inquirer.rb +21 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/test_case.rb +42 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/testing/assertions.rb +84 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/testing/declarative.rb +40 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/testing/default.rb +9 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/testing/deprecation.rb +55 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/testing/isolation.rb +157 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/testing/pending.rb +48 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/testing/performance.rb +425 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/testing/setup_and_teardown.rb +111 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/time/autoload.rb +5 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/time.rb +35 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/time_with_zone.rb +348 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/values/time_zone.rb +379 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/values/unicode_tables.dat +0 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/version.rb +10 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/whiny_nil.rb +60 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/xml_mini/jdom.rb +175 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/xml_mini/libxml.rb +79 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/xml_mini/libxmlsax.rb +85 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/xml_mini/nokogiri.rb +83 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/xml_mini/nokogirisax.rb +87 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/xml_mini/rexml.rb +129 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support/xml_mini.rb +162 -0
- data/spec/ruby/1.9.1/gems/activesupport-3.0.9/lib/active_support.rb +80 -0
- data/spec/ruby/1.9.1/gems/diff-lcs-1.1.2/ChangeLog +46 -0
- data/spec/ruby/1.9.1/gems/diff-lcs-1.1.2/Install +6 -0
- data/spec/ruby/1.9.1/gems/diff-lcs-1.1.2/README +76 -0
- data/spec/ruby/1.9.1/gems/diff-lcs-1.1.2/Rakefile +116 -0
- data/spec/ruby/1.9.1/gems/diff-lcs-1.1.2/bin/htmldiff +112 -0
- data/spec/ruby/1.9.1/gems/diff-lcs-1.1.2/bin/ldiff +45 -0
- data/spec/ruby/1.9.1/gems/diff-lcs-1.1.2/lib/diff/lcs/array.rb +21 -0
- data/spec/ruby/1.9.1/gems/diff-lcs-1.1.2/lib/diff/lcs/block.rb +51 -0
- data/spec/ruby/1.9.1/gems/diff-lcs-1.1.2/lib/diff/lcs/callbacks.rb +322 -0
- data/spec/ruby/1.9.1/gems/diff-lcs-1.1.2/lib/diff/lcs/change.rb +169 -0
- data/spec/ruby/1.9.1/gems/diff-lcs-1.1.2/lib/diff/lcs/hunk.rb +257 -0
- data/spec/ruby/1.9.1/gems/diff-lcs-1.1.2/lib/diff/lcs/ldiff.rb +226 -0
- data/spec/ruby/1.9.1/gems/diff-lcs-1.1.2/lib/diff/lcs/string.rb +19 -0
- data/spec/ruby/1.9.1/gems/diff-lcs-1.1.2/lib/diff/lcs.rb +1105 -0
- data/spec/ruby/1.9.1/gems/diff-lcs-1.1.2/tests/00test.rb +626 -0
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/CHANGELOG +215 -0
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/LICENSE.txt +19 -0
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/README.rdoc +189 -0
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/Rakefile +67 -0
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/fakeweb.gemspec +126 -0
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/lib/fake_web/ext/net_http.rb +72 -0
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/lib/fake_web/registry.rb +127 -0
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/lib/fake_web/responder.rb +122 -0
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/lib/fake_web/response.rb +10 -0
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/lib/fake_web/stub_socket.rb +15 -0
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/lib/fake_web/utility.rb +87 -0
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/lib/fake_web.rb +215 -0
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/lib/fakeweb.rb +2 -0
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/test/fixtures/google_response_from_curl +12 -0
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/test/fixtures/google_response_with_transfer_encoding +17 -0
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/test/fixtures/google_response_without_transfer_encoding +11 -0
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/test/fixtures/test_example.txt +1 -0
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/test/fixtures/test_txt_file +3 -0
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/test/test_allow_net_connect.rb +168 -0
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/test/test_deprecations.rb +54 -0
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/test/test_fake_authentication.rb +92 -0
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/test/test_fake_web.rb +590 -0
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/test/test_fake_web_open_uri.rb +58 -0
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/test/test_helper.rb +90 -0
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/test/test_last_request.rb +29 -0
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/test/test_missing_open_uri.rb +25 -0
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/test/test_missing_pathname.rb +37 -0
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/test/test_other_net_http_libraries.rb +36 -0
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/test/test_precedence.rb +79 -0
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/test/test_query_string.rb +45 -0
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/test/test_regexes.rb +157 -0
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/test/test_response_headers.rb +79 -0
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/test/test_trailing_slashes.rb +53 -0
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/test/test_utility.rb +83 -0
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/test/vendor/right_http_connection-1.2.4/History.txt +59 -0
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/test/vendor/right_http_connection-1.2.4/Manifest.txt +7 -0
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/test/vendor/right_http_connection-1.2.4/README.txt +54 -0
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/test/vendor/right_http_connection-1.2.4/Rakefile +103 -0
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/test/vendor/right_http_connection-1.2.4/lib/net_fix.rb +160 -0
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/test/vendor/right_http_connection-1.2.4/lib/right_http_connection.rb +435 -0
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/test/vendor/right_http_connection-1.2.4/setup.rb +1585 -0
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/test/vendor/samuel-0.2.1/LICENSE +20 -0
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/test/vendor/samuel-0.2.1/README.rdoc +70 -0
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/test/vendor/samuel-0.2.1/Rakefile +62 -0
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/test/vendor/samuel-0.2.1/VERSION +1 -0
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/test/vendor/samuel-0.2.1/lib/samuel/net_http.rb +10 -0
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/test/vendor/samuel-0.2.1/lib/samuel/request.rb +96 -0
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/test/vendor/samuel-0.2.1/lib/samuel.rb +52 -0
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/test/vendor/samuel-0.2.1/samuel.gemspec +69 -0
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/test/vendor/samuel-0.2.1/test/request_test.rb +193 -0
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/test/vendor/samuel-0.2.1/test/samuel_test.rb +42 -0
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/test/vendor/samuel-0.2.1/test/test_helper.rb +66 -0
- data/spec/ruby/1.9.1/gems/fakeweb-1.3.0/test/vendor/samuel-0.2.1/test/thread_test.rb +32 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/CHANGES +260 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/Gemfile +6 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/LICENSE +22 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/README.rdoc +385 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/Rakefile +88 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/VERSION.yml +5 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/adapters/rr_methods.rb +146 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/adapters/rspec.rb +61 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/adapters/test_unit.rb +31 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/blank_slate.rb +17 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/class_instance_method_defined.rb +9 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/double.rb +154 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/double_definitions/child_double_definition_create.rb +27 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/double_definitions/double_definition.rb +367 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/double_definitions/double_definition_create.rb +139 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/double_definitions/double_definition_create_blank_slate.rb +26 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/double_definitions/double_injections/any_instance_of.rb +28 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/double_definitions/double_injections/instance.rb +16 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/double_definitions/strategies/double_injection/any_instance_of.rb +30 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/double_definitions/strategies/double_injection/double_injection_strategy.rb +10 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/double_definitions/strategies/double_injection/instance.rb +17 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/double_definitions/strategies/implementation/implementation_strategy.rb +10 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/double_definitions/strategies/implementation/proxy.rb +60 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/double_definitions/strategies/implementation/reimplementation.rb +14 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/double_definitions/strategies/implementation/strongly_typed_reimplementation.rb +15 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/double_definitions/strategies/strategy.rb +43 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/double_definitions/strategies/strategy_methods.rb +53 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/double_definitions/strategies/verification/dont_allow.rb +31 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/double_definitions/strategies/verification/mock.rb +42 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/double_definitions/strategies/verification/stub.rb +43 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/double_definitions/strategies/verification/verification_strategy.rb +10 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/double_matches.rb +42 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/errors/argument_equality_error.rb +6 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/errors/double_definition_error.rb +6 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/errors/double_not_found_error.rb +6 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/errors/double_order_error.rb +6 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/errors/rr_error.rb +20 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/errors/spy_verification_errors/double_injection_not_found_error.rb +8 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/errors/spy_verification_errors/invocation_count_error.rb +8 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/errors/spy_verification_errors/spy_verification_error.rb +8 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/errors/subject_does_not_implement_method_error.rb +6 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/errors/subject_has_different_arity_error.rb +6 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/errors/times_called_error.rb +6 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/expectations/any_argument_expectation.rb +21 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/expectations/argument_equality_expectation.rb +41 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/expectations/times_called_expectation.rb +57 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/hash_with_object_id_key.rb +46 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/injections/double_injection.rb +213 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/injections/injection.rb +33 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/injections/method_missing_injection.rb +68 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/injections/singleton_method_added_injection.rb +72 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/method_dispatches/base_method_dispatch.rb +84 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/method_dispatches/method_dispatch.rb +59 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/method_dispatches/method_missing_dispatch.rb +61 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/proc_from_block.rb +7 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/recorded_calls.rb +103 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/space.rb +112 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/spy_verification.rb +48 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/spy_verification_proxy.rb +13 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/times_called_matchers/any_times_matcher.rb +18 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/times_called_matchers/at_least_matcher.rb +15 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/times_called_matchers/at_most_matcher.rb +23 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/times_called_matchers/integer_matcher.rb +19 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/times_called_matchers/never_matcher.rb +23 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/times_called_matchers/non_terminal.rb +27 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/times_called_matchers/proc_matcher.rb +11 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/times_called_matchers/range_matcher.rb +21 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/times_called_matchers/terminal.rb +20 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/times_called_matchers/times_called_matcher.rb +44 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/wildcard_matchers/anything.rb +18 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/wildcard_matchers/boolean.rb +23 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/wildcard_matchers/duck_type.rb +32 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/wildcard_matchers/hash_including.rb +29 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/wildcard_matchers/is_a.rb +25 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/wildcard_matchers/numeric.rb +13 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/wildcard_matchers/range.rb +7 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/wildcard_matchers/regexp.rb +7 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/wildcard_matchers/satisfy.rb +26 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/wildcard_matchers.rb +158 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr.rb +99 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/scratch.rb +118 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/api/any_instance_of/all_instances_of_spec.rb +12 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/api/any_instance_of/any_instance_of_spec.rb +47 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/api/any_instance_of/instance_of_spec.rb +12 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/api/dont_allow/dont_allow_after_stub_spec.rb +14 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/api/mock/mock_spec.rb +193 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/api/proxy/proxy_spec.rb +86 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/api/spy/spy_spec.rb +49 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/api/strong/strong_spec.rb +87 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/api/stub/stub_spec.rb +152 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/core_spec_suite.rb +19 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/environment_fixture_setup.rb +8 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/proc_from_block_spec.rb +14 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/adapters/rr_methods_argument_matcher_spec.rb +67 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/adapters/rr_methods_creator_spec.rb +137 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/adapters/rr_methods_space_spec.rb +98 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/adapters/rr_methods_spec_helper.rb +11 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/adapters/rr_methods_times_matcher_spec.rb +13 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/double_definitions/child_double_definition_creator_spec.rb +112 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/double_definitions/double_definition_create_blank_slate_spec.rb +91 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/double_definitions/double_definition_create_spec.rb +443 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/double_injection/double_injection_spec.rb +546 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/double_injection/double_injection_verify_spec.rb +29 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/errors/rr_error_spec.rb +67 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/expectations/any_argument_expectation_spec.rb +47 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/expectations/anything_argument_equality_expectation_spec.rb +14 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/expectations/argument_equality_expectation_spec.rb +135 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/expectations/boolean_argument_equality_expectation_spec.rb +34 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/expectations/hash_including_argument_equality_expectation_spec.rb +82 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/expectations/hash_including_spec.rb +17 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/expectations/satisfy_argument_equality_expectation_spec.rb +59 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/expectations/satisfy_spec.rb +14 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/expectations/times_called_expectation/times_called_expectation_any_times_spec.rb +22 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/expectations/times_called_expectation/times_called_expectation_at_least_spec.rb +37 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/expectations/times_called_expectation/times_called_expectation_at_most_spec.rb +43 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/expectations/times_called_expectation/times_called_expectation_helper.rb +15 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/expectations/times_called_expectation/times_called_expectation_integer_spec.rb +58 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/expectations/times_called_expectation/times_called_expectation_proc_spec.rb +35 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/expectations/times_called_expectation/times_called_expectation_range_spec.rb +39 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/rspec/invocation_matcher_spec.rb +279 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/rspec/rspec_adapter_spec.rb +63 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/rspec/rspec_backtrace_tweaking_spec.rb +31 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/rspec/rspec_backtrace_tweaking_spec_fixture.rb +11 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/rspec/rspec_usage_spec.rb +86 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/space/hash_with_object_id_key_spec.rb +88 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/space/space_spec.rb +587 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/test_unit/test_helper.rb +7 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/test_unit/test_unit_backtrace_test.rb +36 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/test_unit/test_unit_integration_test.rb +59 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/times_called_matchers/any_times_matcher_spec.rb +47 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/times_called_matchers/at_least_matcher_spec.rb +55 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/times_called_matchers/at_most_matcher_spec.rb +70 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/times_called_matchers/integer_matcher_spec.rb +70 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/times_called_matchers/proc_matcher_spec.rb +55 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/times_called_matchers/range_matcher_spec.rb +76 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/times_called_matchers/times_called_matcher_spec.rb +118 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/wildcard_matchers/anything_spec.rb +24 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/wildcard_matchers/boolean_spec.rb +36 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/wildcard_matchers/duck_type_spec.rb +52 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/wildcard_matchers/is_a_spec.rb +32 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/wildcard_matchers/numeric_spec.rb +32 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/wildcard_matchers/range_spec.rb +35 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/wildcard_matchers/regexp_spec.rb +43 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr_spec.rb +28 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rspec_spec_suite.rb +17 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/spec_helper.rb +37 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/spec_suite.rb +48 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/spy_verification_spec.rb +129 -0
- data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/test_unit_spec_suite.rb +21 -0
- data/spec/ruby/1.9.1/gems/rspec-2.5.0/Gemfile +7 -0
- data/spec/ruby/1.9.1/gems/rspec-2.5.0/License.txt +22 -0
- data/spec/ruby/1.9.1/gems/rspec-2.5.0/README.markdown +47 -0
- data/spec/ruby/1.9.1/gems/rspec-2.5.0/Rakefile +16 -0
- data/spec/ruby/1.9.1/gems/rspec-2.5.0/lib/rspec/version.rb +5 -0
- data/spec/ruby/1.9.1/gems/rspec-2.5.0/lib/rspec.rb +4 -0
- data/spec/ruby/1.9.1/gems/rspec-2.5.0/rspec.gemspec +29 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/Gemfile +52 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/Guardfile +5 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/License.txt +23 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/README.md +103 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/Rakefile +72 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/bin/autospec +13 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/bin/rspec +25 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/cucumber.yml +2 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/Autotest.md +14 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/Changelog.md +226 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/README.md +17 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/Upgrade.md +287 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/command_line/README.md +6 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/command_line/configure.feature +22 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/command_line/example_name_option.feature +86 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/command_line/exit_status.feature +52 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/command_line/format_option.feature +73 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/command_line/line_number_appended_to_path.feature +106 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/command_line/line_number_option.feature +45 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/command_line/rake_task.feature +68 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/command_line/tag.feature +74 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/configuration/custom_settings.feature +84 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/configuration/fail_fast.feature +77 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/configuration/read_options_from_file.feature +87 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/example_groups/basic_structure.feature +59 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/example_groups/shared_example_group.feature +177 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/expectation_framework_integration/configure_expectation_framework.feature +62 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/filtering/exclusion_filters.feature +115 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/filtering/implicit_filters.feature +166 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/filtering/inclusion_filters.feature +83 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/filtering/run_all_when_everything_filtered.feature +46 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/formatters/custom_formatter.feature +36 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/helper_methods/arbitrary_methods.feature +40 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/helper_methods/let.feature +50 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/hooks/around_hooks.feature +336 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/hooks/before_and_after_hooks.feature +427 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/hooks/filtering.feature +191 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/metadata/described_class.feature +17 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/mock_framework_integration/use_any_framework.feature +106 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/mock_framework_integration/use_flexmock.feature +23 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/mock_framework_integration/use_mocha.feature +23 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/mock_framework_integration/use_rr.feature +23 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/mock_framework_integration/use_rspec.feature +23 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/pending/pending_examples.feature +216 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/spec_files/arbitrary_file_suffix.feature +13 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/step_definitions/additional_cli_steps.rb +20 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/subject/attribute_of_subject.feature +102 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/subject/explicit_subject.feature +78 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/subject/implicit_receiver.feature +29 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/subject/implicit_subject.feature +30 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/features/support/env.rb +1 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/autotest/discover.rb +1 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/autotest/rspec2.rb +67 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/autorun.rb +2 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/backward_compatibility.rb +48 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/command_line.rb +35 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/command_line_configuration.rb +62 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/configuration.rb +470 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/configuration_options.rb +126 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/deprecation.rb +45 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/drb_command_line.rb +29 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/errors.rb +14 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/example.rb +167 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/example_group.rb +300 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/expecting/with_rspec.rb +11 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/expecting/with_stdlib.rb +9 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/extensions/instance_eval_with_args.rb +39 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/extensions/kernel.rb +5 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/extensions/module_eval_with_args.rb +34 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/extensions/object.rb +14 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/extensions.rb +4 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/formatters/base_formatter.rb +162 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/formatters/base_text_formatter.rb +165 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/formatters/documentation_formatter.rb +71 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/formatters/helpers.rb +28 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/formatters/html_formatter.rb +456 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/formatters/progress_formatter.rb +32 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/formatters/snippet_extractor.rb +52 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/formatters/text_mate_formatter.rb +20 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/hooks.rb +149 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/let.rb +101 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/load_path.rb +3 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/metadata.rb +187 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/mocking/with_absolutely_nothing.rb +11 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/mocking/with_flexmock.rb +25 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/mocking/with_mocha.rb +21 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/mocking/with_rr.rb +25 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/mocking/with_rspec.rb +21 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/option_parser.rb +132 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/pending.rb +30 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/rake_task.rb +196 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/reporter.rb +79 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/ruby_project.rb +44 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/runner.rb +61 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/shared_context.rb +16 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/shared_example_group.rb +53 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/subject.rb +177 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/version.rb +7 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/world.rb +102 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core.rb +65 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/monkey/spork/test_framework/rspec.rb +7 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/lib/rspec/monkey.rb +1 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/rspec-core.gemspec +26 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/script/FullBuildRakeFile +63 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/script/console +8 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/script/cucumber +1 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/script/full_build +1 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/script/spec +1 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/autotest/discover_spec.rb +19 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/autotest/failed_results_re_spec.rb +37 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/autotest/rspec_spec.rb +123 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/command_line_configuration_spec.rb +26 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/command_line_spec.rb +134 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/command_line_spec_output.txt +0 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/configuration_options_spec.rb +341 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/configuration_spec.rb +716 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/deprecations_spec.rb +45 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/drb_command_line_spec.rb +159 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/example_group_spec.rb +753 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/example_spec.rb +162 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/formatters/base_formatter_spec.rb +59 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/formatters/base_text_formatter_spec.rb +184 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/formatters/documentation_formatter_spec.rb +66 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/formatters/helpers_spec.rb +46 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/formatters/html_formatted-1.8.6.html +398 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/formatters/html_formatted-1.8.7-jruby.html +400 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/formatters/html_formatted-1.8.7.html +398 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/formatters/html_formatted-1.9.1.html +405 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/formatters/html_formatted-1.9.2.html +405 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/formatters/html_formatter_spec.rb +81 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/formatters/progress_formatter_spec.rb +31 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/formatters/snippet_extractor_spec.rb +18 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/formatters/text_mate_formatted-1.8.6.html +398 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/formatters/text_mate_formatted-1.8.7-jruby.html +400 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/formatters/text_mate_formatted-1.8.7.html +398 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/formatters/text_mate_formatted-1.9.1.html +405 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/formatters/text_mate_formatted-1.9.2.html +405 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/formatters/text_mate_formatter_spec.rb +84 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/hooks_filtering_spec.rb +227 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/hooks_spec.rb +57 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/kernel_extensions_spec.rb +9 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/let_spec.rb +42 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/metadata_spec.rb +298 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/option_parser_spec.rb +75 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/pending_example_spec.rb +226 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/rake_task_spec.rb +161 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/reporter_spec.rb +70 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/resources/a_bar.rb +0 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/resources/a_foo.rb +0 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/resources/a_spec.rb +1 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/resources/custom_example_group_runner.rb +14 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/resources/formatter_specs.rb +54 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/resources/utf8_encoded.rb +8 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/ruby_project_spec.rb +24 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/runner_spec.rb +47 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/shared_context_spec.rb +30 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/shared_example_group_spec.rb +152 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/subject_spec.rb +178 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/world_spec.rb +174 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core_spec.rb +31 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/ruby_forker.rb +13 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/spec_helper.rb +71 -0
- data/spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/support/matchers.rb +44 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/Gemfile +38 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/Guardfile +5 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/License.txt +22 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/README.md +41 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/Rakefile +70 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/cucumber.yml +3 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/features/Changelog.md +84 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/features/README.markdown +42 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/features/Upgrade.md +53 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/features/built_in_matchers/be.feature +135 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/features/built_in_matchers/be_within.feature +43 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/features/built_in_matchers/equality.feature +142 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/features/built_in_matchers/exist.feature +49 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/features/built_in_matchers/expect_change.feature +59 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/features/built_in_matchers/expect_error.feature +105 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/features/built_in_matchers/have.feature +103 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/features/built_in_matchers/include.feature +121 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/features/built_in_matchers/match.feature +50 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/features/built_in_matchers/operators.feature +221 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/features/built_in_matchers/predicates.feature +128 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/features/built_in_matchers/respond_to.feature +78 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/features/built_in_matchers/satisfy.feature +31 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/features/built_in_matchers/throw_symbol.feature +85 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/features/built_in_matchers/types.feature +114 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/features/custom_matchers/access_running_example.feature +53 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/features/custom_matchers/define_diffable_matcher.feature +27 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/features/custom_matchers/define_matcher.feature +311 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/features/custom_matchers/define_matcher_outside_rspec.feature +38 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/features/custom_matchers/define_matcher_with_fluent_interface.feature +24 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/features/customized_message.feature +22 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/features/diffing.feature +85 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/features/implicit_docstrings.feature +52 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/features/step_definitions/additional_cli_steps.rb +22 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/features/support/env.rb +1 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/features/test_frameworks/test_unit.feature +46 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec/expectations/backward_compatibility.rb +16 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec/expectations/deprecation.rb +36 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec/expectations/differ.rb +62 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec/expectations/errors.rb +12 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec/expectations/extensions/array.rb +7 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec/expectations/extensions/kernel.rb +52 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec/expectations/extensions.rb +2 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec/expectations/fail_with.rb +51 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec/expectations/handler.rb +50 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec/expectations/version.rb +7 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec/expectations.rb +39 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec/matchers/be.rb +222 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec/matchers/be_close.rb +17 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec/matchers/be_instance_of.rb +26 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec/matchers/be_kind_of.rb +26 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec/matchers/be_within.rb +40 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec/matchers/block_aliases.rb +19 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec/matchers/change.rb +190 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec/matchers/compatibility.rb +14 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec/matchers/dsl.rb +21 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec/matchers/eq.rb +50 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec/matchers/eql.rb +45 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec/matchers/equal.rb +53 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec/matchers/errors.rb +5 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec/matchers/exist.rb +26 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec/matchers/extensions/instance_exec.rb +31 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec/matchers/generated_descriptions.rb +36 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec/matchers/has.rb +35 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec/matchers/have.rb +151 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec/matchers/include.rb +54 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec/matchers/match.rb +21 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec/matchers/match_array.rb +71 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec/matchers/matcher.rb +161 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec/matchers/method_missing.rb +12 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec/matchers/operator_matcher.rb +87 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec/matchers/pretty.rb +37 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec/matchers/raise_error.rb +130 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec/matchers/respond_to.rb +85 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec/matchers/satisfy.rb +51 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec/matchers/throw_symbol.rb +121 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec/matchers.rb +196 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec-expectations.rb +1 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/rspec-expectations.gemspec +27 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/spec/rspec/expectations/differ_spec.rb +96 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/spec/rspec/expectations/extensions/kernel_spec.rb +45 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/spec/rspec/expectations/fail_with_spec.rb +70 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/spec/rspec/expectations/handler_spec.rb +206 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/spec/rspec/matchers/be_close_spec.rb +22 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/spec/rspec/matchers/be_instance_of_spec.rb +36 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/spec/rspec/matchers/be_kind_of_spec.rb +33 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/spec/rspec/matchers/be_spec.rb +456 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/spec/rspec/matchers/be_within_spec.rb +64 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/spec/rspec/matchers/change_spec.rb +409 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/spec/rspec/matchers/compatibility_spec.rb +28 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/spec/rspec/matchers/description_generation_spec.rb +160 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/spec/rspec/matchers/dsl_spec.rb +25 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/spec/rspec/matchers/eq_spec.rb +38 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/spec/rspec/matchers/eql_spec.rb +37 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/spec/rspec/matchers/equal_spec.rb +57 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/spec/rspec/matchers/exist_spec.rb +104 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/spec/rspec/matchers/has_spec.rb +81 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/spec/rspec/matchers/have_spec.rb +401 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/spec/rspec/matchers/include_spec.rb +341 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/spec/rspec/matchers/match_array_spec.rb +111 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/spec/rspec/matchers/match_spec.rb +57 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/spec/rspec/matchers/matcher_spec.rb +374 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/spec/rspec/matchers/matchers_spec.rb +51 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/spec/rspec/matchers/operator_matcher_spec.rb +215 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/spec/rspec/matchers/raise_error_spec.rb +339 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/spec/rspec/matchers/respond_to_spec.rb +292 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/spec/rspec/matchers/satisfy_spec.rb +40 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/spec/rspec/matchers/throw_symbol_spec.rb +113 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/spec/spec_helper.rb +24 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/spec/suite.rb +1 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/spec/support/classes.rb +45 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/spec/support/matchers.rb +22 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/spec/support/ruby_version.rb +10 -0
- data/spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/specs.watchr +57 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/Gemfile +39 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/Guardfile +8 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/License.txt +22 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/README.md +57 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/Rakefile +75 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/autotest/discover.rb +1 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/cucumber.yml +2 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/features/Changelog.md +68 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/features/README.markdown +27 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/features/Upgrade.md +14 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/features/message_expectations/README.md +58 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/features/message_expectations/block_local_expectations.feature.pending +55 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/features/message_expectations/expect_message.feature +94 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/features/message_expectations/warn_when_expectation_is_set_on_nil.feature +50 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/features/method_stubs/README.md +39 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/features/method_stubs/simple_return_value.feature +55 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/features/method_stubs/stub_chain.feature +44 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/features/method_stubs/stub_implementation.feature +26 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/features/outside_rspec/configuration.feature +82 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/features/outside_rspec/standalone.feature +32 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/features/support/env.rb +2 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/lib/rspec/mocks/argument_expectation.rb +53 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/lib/rspec/mocks/argument_matchers.rb +233 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/lib/rspec/mocks/error_generator.rb +97 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/lib/rspec/mocks/errors.rb +10 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/lib/rspec/mocks/extensions/instance_exec.rb +31 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/lib/rspec/mocks/extensions/marshal.rb +27 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/lib/rspec/mocks/framework.rb +17 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/lib/rspec/mocks/message_expectation.rb +351 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/lib/rspec/mocks/method_double.rb +165 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/lib/rspec/mocks/methods.rb +100 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/lib/rspec/mocks/mock.rb +79 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/lib/rspec/mocks/order_group.rb +29 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/lib/rspec/mocks/proxy.rb +158 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/lib/rspec/mocks/serialization.rb +26 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/lib/rspec/mocks/space.rb +28 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/lib/rspec/mocks/spec_methods.rb +53 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/lib/rspec/mocks/standalone.rb +3 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/lib/rspec/mocks/version.rb +7 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/lib/rspec/mocks.rb +196 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/lib/spec/mocks.rb +2 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/rspec-mocks.gemspec +25 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks/and_yield_spec.rb +114 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks/any_number_of_times_spec.rb +36 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks/argument_expectation_spec.rb +25 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks/at_least_spec.rb +97 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks/at_most_spec.rb +93 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks/block_return_value_spec.rb +45 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks/bug_report_10260_spec.rb +8 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks/bug_report_10263_spec.rb +27 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks/bug_report_11545_spec.rb +32 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks/bug_report_496_spec.rb +17 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks/bug_report_600_spec.rb +22 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks/bug_report_7611_spec.rb +18 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks/bug_report_7805_spec.rb +22 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks/bug_report_8165_spec.rb +31 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks/bug_report_8302_spec.rb +26 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks/bug_report_830_spec.rb +21 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks/bug_report_957_spec.rb +22 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks/double_spec.rb +12 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks/failing_argument_matchers_spec.rb +96 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks/hash_including_matcher_spec.rb +90 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks/hash_not_including_matcher_spec.rb +67 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks/mock_ordering_spec.rb +94 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks/mock_space_spec.rb +54 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks/mock_spec.rb +696 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks/multiple_return_value_spec.rb +191 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks/nil_expectation_warning_spec.rb +63 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks/null_object_mock_spec.rb +78 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks/once_counts_spec.rb +53 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks/options_hash_spec.rb +35 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks/partial_mock_spec.rb +155 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks/partial_mock_using_mocks_directly_spec.rb +94 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks/passing_argument_matchers_spec.rb +145 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks/precise_counts_spec.rb +52 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks/record_messages_spec.rb +26 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks/serialization_spec.rb +88 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks/stash_spec.rb +27 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks/stub_chain_spec.rb +114 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks/stub_implementation_spec.rb +68 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks/stub_spec.rb +232 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks/stubbed_message_expectations_spec.rb +26 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks/twice_counts_spec.rb +67 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks_spec.rb +51 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/spec_helper.rb +52 -0
- data/spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/specs.watchr +57 -0
- data/spec/ruby/1.9.1/specifications/activesupport-3.0.9.gemspec +27 -0
- data/spec/ruby/1.9.1/specifications/diff-lcs-1.1.2.gemspec +32 -0
- data/spec/ruby/1.9.1/specifications/fakeweb-1.3.0.gemspec +32 -0
- data/spec/ruby/1.9.1/specifications/rr-1.0.2.gemspec +29 -0
- data/spec/ruby/1.9.1/specifications/rspec-2.5.0.gemspec +38 -0
- data/spec/ruby/1.9.1/specifications/rspec-core-2.5.1.gemspec +30 -0
- data/spec/ruby/1.9.1/specifications/rspec-expectations-2.5.0.gemspec +32 -0
- data/spec/ruby/1.9.1/specifications/rspec-mocks-2.5.0.gemspec +29 -0
- metadata +1633 -5
data/spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/double_definitions/double_definition_create_spec.rb
ADDED
@@ -0,0 +1,443 @@
|
|
1
|
+
require File.expand_path("#{File.dirname(__FILE__)}/../../spec_helper")
|
2
|
+
|
3
|
+
module RR
|
4
|
+
module DoubleDefinitions
|
5
|
+
describe DoubleDefinitionCreate do
|
6
|
+
attr_reader :double_definition_create, :subject, :strategy_method_name
|
7
|
+
it_should_behave_like "Swapped Space"
|
8
|
+
before(:each) do
|
9
|
+
@subject = Object.new
|
10
|
+
@double_definition_create = DoubleDefinitionCreate.new
|
11
|
+
end
|
12
|
+
|
13
|
+
describe "#root_subject" do
|
14
|
+
it "returns #subject" do
|
15
|
+
double_definition_create.stub(subject).foobar
|
16
|
+
double_definition_create.root_subject.should == subject
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
describe "StrategySetupMethods" do
|
21
|
+
describe "normal strategy definitions" do
|
22
|
+
def call_strategy(*args, &block)
|
23
|
+
double_definition_create.__send__(strategy_method_name, *args, &block)
|
24
|
+
end
|
25
|
+
|
26
|
+
describe "#mock" do
|
27
|
+
before do
|
28
|
+
@strategy_method_name = :mock
|
29
|
+
end
|
30
|
+
|
31
|
+
context "when passing no args" do
|
32
|
+
it "returns self" do
|
33
|
+
call_strategy.should === double_definition_create
|
34
|
+
end
|
35
|
+
end
|
36
|
+
|
37
|
+
context "when passed a subject and a method_name argument" do
|
38
|
+
it "creates a mock Double for method" do
|
39
|
+
double_definition = double_definition_create.mock(subject, :foobar).returns {:baz}
|
40
|
+
double_definition.times_matcher.should == RR::TimesCalledMatchers::IntegerMatcher.new(1)
|
41
|
+
double_definition.argument_expectation.class.should == RR::Expectations::ArgumentEqualityExpectation
|
42
|
+
double_definition.argument_expectation.expected_arguments.should == []
|
43
|
+
subject.foobar.should == :baz
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
describe "#stub" do
|
49
|
+
before do
|
50
|
+
@strategy_method_name = :stub
|
51
|
+
end
|
52
|
+
|
53
|
+
context "when passing no args" do
|
54
|
+
it "returns self" do
|
55
|
+
call_strategy.should === double_definition_create
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
59
|
+
context "when passed subject and a method_name argument" do
|
60
|
+
it "creates a stub Double for method when passed a method_name argument" do
|
61
|
+
double_definition = double_definition_create.stub(subject, :foobar).returns {:baz}
|
62
|
+
double_definition.times_matcher.should == RR::TimesCalledMatchers::AnyTimesMatcher.new
|
63
|
+
double_definition.argument_expectation.class.should == RR::Expectations::AnyArgumentExpectation
|
64
|
+
subject.foobar.should == :baz
|
65
|
+
end
|
66
|
+
end
|
67
|
+
end
|
68
|
+
|
69
|
+
describe "#dont_allow" do
|
70
|
+
before do
|
71
|
+
@strategy_method_name = :dont_allow
|
72
|
+
end
|
73
|
+
|
74
|
+
context "when passing no args" do
|
75
|
+
it "returns self" do
|
76
|
+
call_strategy.should === double_definition_create
|
77
|
+
end
|
78
|
+
end
|
79
|
+
|
80
|
+
context "when passed a subject and a method_name argument_expectation" do
|
81
|
+
it "creates a mock Double for method" do
|
82
|
+
double_definition = double_definition_create.dont_allow(subject, :foobar)
|
83
|
+
double_definition.times_matcher.should == RR::TimesCalledMatchers::NeverMatcher.new
|
84
|
+
double_definition.argument_expectation.class.should == RR::Expectations::AnyArgumentExpectation
|
85
|
+
|
86
|
+
lambda do
|
87
|
+
subject.foobar
|
88
|
+
end.should raise_error(RR::Errors::TimesCalledError)
|
89
|
+
RR.reset
|
90
|
+
end
|
91
|
+
end
|
92
|
+
end
|
93
|
+
end
|
94
|
+
|
95
|
+
describe "! strategy definitions" do
|
96
|
+
attr_reader :strategy_method_name
|
97
|
+
def call_strategy(*args, &definition_eval_block)
|
98
|
+
double_definition_create.__send__(strategy_method_name, *args, &definition_eval_block)
|
99
|
+
end
|
100
|
+
|
101
|
+
describe "#mock!" do
|
102
|
+
before do
|
103
|
+
@strategy_method_name = :mock!
|
104
|
+
end
|
105
|
+
|
106
|
+
context "when passed a method_name argument" do
|
107
|
+
it "sets #verification_strategy to Mock" do
|
108
|
+
double_definition_create.mock!(:foobar)
|
109
|
+
double_definition_create.verification_strategy.class.should == Strategies::Verification::Mock
|
110
|
+
lambda {RR.verify}.should raise_error(::RR::Errors::TimesCalledError)
|
111
|
+
end
|
112
|
+
end
|
113
|
+
end
|
114
|
+
|
115
|
+
describe "#stub!" do
|
116
|
+
before do
|
117
|
+
@strategy_method_name = :stub!
|
118
|
+
end
|
119
|
+
|
120
|
+
context "when passed a method_name argument" do
|
121
|
+
it "sets #verification_strategy to Stub" do
|
122
|
+
double_definition_create.stub!(:foobar)
|
123
|
+
double_definition_create.verification_strategy.class.should == Strategies::Verification::Stub
|
124
|
+
end
|
125
|
+
end
|
126
|
+
end
|
127
|
+
|
128
|
+
describe "#dont_allow!" do
|
129
|
+
before do
|
130
|
+
@strategy_method_name = :dont_allow!
|
131
|
+
end
|
132
|
+
|
133
|
+
context "when passed a method_name argument" do
|
134
|
+
it "sets #verification_strategy to DontAllow" do
|
135
|
+
double_definition_create.dont_allow!(:foobar)
|
136
|
+
double_definition_create.verification_strategy.class.should == Strategies::Verification::DontAllow
|
137
|
+
end
|
138
|
+
end
|
139
|
+
end
|
140
|
+
end
|
141
|
+
|
142
|
+
describe "#stub.proxy" do
|
143
|
+
before do
|
144
|
+
class << subject
|
145
|
+
def foobar(*args)
|
146
|
+
:original_foobar
|
147
|
+
end
|
148
|
+
end
|
149
|
+
end
|
150
|
+
|
151
|
+
context "when passed a method_name argument" do
|
152
|
+
it "creates a proxy Double for method" do
|
153
|
+
double_definition = double_definition_create.stub.proxy(subject, :foobar).after_call {:baz}
|
154
|
+
double_definition.times_matcher.should == RR::TimesCalledMatchers::AnyTimesMatcher.new
|
155
|
+
double_definition.argument_expectation.class.should == RR::Expectations::AnyArgumentExpectation
|
156
|
+
subject.foobar.should == :baz
|
157
|
+
end
|
158
|
+
end
|
159
|
+
end
|
160
|
+
|
161
|
+
describe "#instance_of" do
|
162
|
+
context "when not passed a class" do
|
163
|
+
it "raises an ArgumentError" do
|
164
|
+
lambda do
|
165
|
+
double_definition_create.instance_of(Object.new).foobar
|
166
|
+
end.should raise_error(ArgumentError, "instance_of only accepts class objects")
|
167
|
+
end
|
168
|
+
end
|
169
|
+
|
170
|
+
context "when passed a method_name argument" do
|
171
|
+
it "creates a proxy Double for method" do
|
172
|
+
klass = Class.new
|
173
|
+
double_definition = double_definition_create.stub.instance_of(klass, :foobar).returns {:baz}
|
174
|
+
double_definition.times_matcher.should == RR::TimesCalledMatchers::AnyTimesMatcher.new
|
175
|
+
double_definition.argument_expectation.class.should == RR::Expectations::AnyArgumentExpectation
|
176
|
+
klass.new.foobar.should == :baz
|
177
|
+
end
|
178
|
+
end
|
179
|
+
end
|
180
|
+
|
181
|
+
describe "#instance_of.mock" do
|
182
|
+
before do
|
183
|
+
@klass = Class.new
|
184
|
+
end
|
185
|
+
|
186
|
+
# context "when passed no arguments" do
|
187
|
+
# it "returns a DoubleDefinitiondouble_definition_create" do
|
188
|
+
# instance_of.instance_of.should be_instance_of(DoubleDefinitionCreate)
|
189
|
+
# end
|
190
|
+
# end
|
191
|
+
|
192
|
+
context "when passed a method_name argument" do
|
193
|
+
it "creates a instance_of Double for method" do
|
194
|
+
double_definition = instance_of.mock(@klass, :foobar)
|
195
|
+
double_definition.with(1, 2) {:baz}
|
196
|
+
double_definition.times_matcher.should == RR::TimesCalledMatchers::IntegerMatcher.new(1)
|
197
|
+
double_definition.argument_expectation.class.should == RR::Expectations::ArgumentEqualityExpectation
|
198
|
+
double_definition.argument_expectation.expected_arguments.should == [1, 2]
|
199
|
+
|
200
|
+
@klass.new.foobar(1, 2).should == :baz
|
201
|
+
end
|
202
|
+
end
|
203
|
+
end
|
204
|
+
end
|
205
|
+
|
206
|
+
describe "StrategyExecutionMethods" do
|
207
|
+
describe "#create" do
|
208
|
+
context "when #verification_strategy is a Mock" do
|
209
|
+
context "when #implementation_strategy is a Reimplementation" do
|
210
|
+
before do
|
211
|
+
double_definition_create.mock(subject)
|
212
|
+
end
|
213
|
+
|
214
|
+
it "sets expectation on the #subject that it will be sent the method_name once with the passed-in arguments" do
|
215
|
+
mock(subject).foobar(1, 2)
|
216
|
+
subject.foobar(1, 2)
|
217
|
+
lambda {subject.foobar(1, 2)}.should raise_error(RR::Errors::TimesCalledError)
|
218
|
+
lambda {RR.verify}.should raise_error(RR::Errors::TimesCalledError)
|
219
|
+
end
|
220
|
+
|
221
|
+
describe "#subject.method_name being called" do
|
222
|
+
it "returns the return value of the Double#returns block" do
|
223
|
+
double_definition_create.call(:foobar, 1, 2) {:baz}
|
224
|
+
subject.foobar(1, 2).should == :baz
|
225
|
+
end
|
226
|
+
end
|
227
|
+
end
|
228
|
+
|
229
|
+
context "when #implementation_strategy is a Proxy" do
|
230
|
+
before do
|
231
|
+
double_definition_create.mock
|
232
|
+
double_definition_create.proxy(subject)
|
233
|
+
end
|
234
|
+
|
235
|
+
it "sets expectation on the #subject that it will be sent the method_name once with the passed-in arguments" do
|
236
|
+
def subject.foobar(*args)
|
237
|
+
:baz
|
238
|
+
end
|
239
|
+
mock(subject).foobar(1, 2)
|
240
|
+
|
241
|
+
subject.foobar(1, 2)
|
242
|
+
lambda {subject.foobar(1, 2)}.should raise_error(RR::Errors::TimesCalledError)
|
243
|
+
lambda {RR.verify}.should raise_error(RR::Errors::TimesCalledError)
|
244
|
+
end
|
245
|
+
|
246
|
+
describe "#subject.method_name being called" do
|
247
|
+
it "calls the original method" do
|
248
|
+
original_method_called = false
|
249
|
+
(class << subject; self; end).class_eval do
|
250
|
+
define_method(:foobar) do |*args|
|
251
|
+
original_method_called = true
|
252
|
+
end
|
253
|
+
end
|
254
|
+
double_definition_create.call(:foobar, 1, 2)
|
255
|
+
subject.foobar(1, 2)
|
256
|
+
original_method_called.should be_true
|
257
|
+
end
|
258
|
+
|
259
|
+
context "when not passed a block" do
|
260
|
+
it "returns the value of the original method" do
|
261
|
+
def subject.foobar(*args)
|
262
|
+
:baz;
|
263
|
+
end
|
264
|
+
double_definition_create.call(:foobar, 1, 2)
|
265
|
+
subject.foobar(1, 2).should == :baz
|
266
|
+
end
|
267
|
+
end
|
268
|
+
|
269
|
+
context "when passed a block" do
|
270
|
+
attr_reader :real_value
|
271
|
+
before do
|
272
|
+
@real_value = real_value = Object.new
|
273
|
+
(class << subject; self; end).class_eval do
|
274
|
+
define_method(:foobar) {|arg1, arg2| real_value}
|
275
|
+
end
|
276
|
+
end
|
277
|
+
|
278
|
+
it "calls the block with the return value of the original method" do
|
279
|
+
double_definition_create.call(:foobar, 1, 2) do |value|
|
280
|
+
mock(value).a_method {99}
|
281
|
+
value
|
282
|
+
end
|
283
|
+
subject.foobar(1, 2)
|
284
|
+
real_value.a_method.should == 99
|
285
|
+
end
|
286
|
+
|
287
|
+
it "returns the return value of the block" do
|
288
|
+
double_definition_create.call(:foobar, 1, 2) do |value|
|
289
|
+
:something_else
|
290
|
+
end
|
291
|
+
subject.foobar(1, 2).should == :something_else
|
292
|
+
end
|
293
|
+
end
|
294
|
+
end
|
295
|
+
end
|
296
|
+
end
|
297
|
+
|
298
|
+
context "when #verification_strategy is a Stub" do
|
299
|
+
context "when #implementation_strategy is a Reimplementation" do
|
300
|
+
before do
|
301
|
+
double_definition_create.stub(subject)
|
302
|
+
end
|
303
|
+
|
304
|
+
context "when not passed a block" do
|
305
|
+
it "returns nil" do
|
306
|
+
double_definition_create.call(:foobar)
|
307
|
+
subject.foobar.should be_nil
|
308
|
+
end
|
309
|
+
end
|
310
|
+
|
311
|
+
context "when passed a block" do
|
312
|
+
describe "#subject.method_name being called" do
|
313
|
+
it "returns the return value of the block" do
|
314
|
+
double_definition_create.call(:foobar) {:baz}
|
315
|
+
subject.foobar.should == :baz
|
316
|
+
end
|
317
|
+
end
|
318
|
+
end
|
319
|
+
|
320
|
+
context "when not passed args" do
|
321
|
+
describe "#subject.method_name being called with any arguments" do
|
322
|
+
it "invokes the implementation of the Stub" do
|
323
|
+
double_definition_create.call(:foobar) {:baz}
|
324
|
+
subject.foobar(1, 2).should == :baz
|
325
|
+
subject.foobar().should == :baz
|
326
|
+
subject.foobar([]).should == :baz
|
327
|
+
end
|
328
|
+
end
|
329
|
+
end
|
330
|
+
|
331
|
+
context "when passed args" do
|
332
|
+
describe "#subject.method_name being called with the passed-in arguments" do
|
333
|
+
it "invokes the implementation of the Stub" do
|
334
|
+
double_definition_create.call(:foobar, 1, 2) {:baz}
|
335
|
+
subject.foobar(1, 2).should == :baz
|
336
|
+
end
|
337
|
+
end
|
338
|
+
|
339
|
+
describe "#subject.method_name being called with different arguments" do
|
340
|
+
it "raises a DoubleNotFoundError" do
|
341
|
+
double_definition_create.call(:foobar, 1, 2) {:baz}
|
342
|
+
lambda do
|
343
|
+
subject.foobar
|
344
|
+
end.should raise_error(RR::Errors::DoubleNotFoundError)
|
345
|
+
end
|
346
|
+
end
|
347
|
+
end
|
348
|
+
end
|
349
|
+
|
350
|
+
context "when #implementation_strategy is a Proxy" do
|
351
|
+
before do
|
352
|
+
def subject.foobar(*args)
|
353
|
+
:original_return_value
|
354
|
+
end
|
355
|
+
double_definition_create.stub
|
356
|
+
double_definition_create.proxy(subject)
|
357
|
+
end
|
358
|
+
|
359
|
+
context "when not passed a block" do
|
360
|
+
describe "#subject.method_name being called" do
|
361
|
+
it "invokes the original implementanion" do
|
362
|
+
double_definition_create.call(:foobar)
|
363
|
+
subject.foobar.should == :original_return_value
|
364
|
+
end
|
365
|
+
end
|
366
|
+
end
|
367
|
+
|
368
|
+
context "when passed a block" do
|
369
|
+
describe "#subject.method_name being called" do
|
370
|
+
it "invokes the original implementanion and invokes the block with the return value of the original implementanion" do
|
371
|
+
passed_in_value = nil
|
372
|
+
double_definition_create.call(:foobar) do |original_return_value|
|
373
|
+
passed_in_value = original_return_value
|
374
|
+
end
|
375
|
+
subject.foobar
|
376
|
+
passed_in_value.should == :original_return_value
|
377
|
+
end
|
378
|
+
|
379
|
+
it "returns the return value of the block" do
|
380
|
+
double_definition_create.call(:foobar) do |original_return_value|
|
381
|
+
:new_return_value
|
382
|
+
end
|
383
|
+
subject.foobar.should == :new_return_value
|
384
|
+
end
|
385
|
+
end
|
386
|
+
end
|
387
|
+
|
388
|
+
context "when passed args" do
|
389
|
+
describe "#subject.method_name being called with the passed-in arguments" do
|
390
|
+
it "invokes the implementation of the Stub" do
|
391
|
+
double_definition_create.call(:foobar, 1, 2) {:baz}
|
392
|
+
subject.foobar(1, 2).should == :baz
|
393
|
+
end
|
394
|
+
end
|
395
|
+
|
396
|
+
describe "#subject.method_name being called with different arguments" do
|
397
|
+
it "raises a DoubleNotFoundError" do
|
398
|
+
double_definition_create.call(:foobar, 1, 2) {:baz}
|
399
|
+
lambda do
|
400
|
+
subject.foobar
|
401
|
+
end.should raise_error(RR::Errors::DoubleNotFoundError)
|
402
|
+
end
|
403
|
+
end
|
404
|
+
end
|
405
|
+
end
|
406
|
+
end
|
407
|
+
|
408
|
+
context "when #verification_strategy is a DontAllow" do
|
409
|
+
before do
|
410
|
+
double_definition_create.dont_allow(subject)
|
411
|
+
end
|
412
|
+
|
413
|
+
context "when not passed args" do
|
414
|
+
describe "#subject.method_name being called with any arguments" do
|
415
|
+
it "raises a TimesCalledError" do
|
416
|
+
double_definition_create.call(:foobar)
|
417
|
+
lambda {subject.foobar}.should raise_error(RR::Errors::TimesCalledError)
|
418
|
+
lambda {subject.foobar(1, 2)}.should raise_error(RR::Errors::TimesCalledError)
|
419
|
+
end
|
420
|
+
end
|
421
|
+
end
|
422
|
+
|
423
|
+
context "when passed args" do
|
424
|
+
describe "#subject.method_name being called with the passed-in arguments" do
|
425
|
+
it "raises a TimesCalledError" do
|
426
|
+
double_definition_create.call(:foobar, 1, 2)
|
427
|
+
lambda {subject.foobar(1, 2)}.should raise_error(RR::Errors::TimesCalledError)
|
428
|
+
end
|
429
|
+
end
|
430
|
+
|
431
|
+
describe "#subject.method_name being called with different arguments" do
|
432
|
+
it "raises a DoubleNotFoundError" do
|
433
|
+
double_definition_create.call(:foobar, 1, 2)
|
434
|
+
lambda {subject.foobar()}.should raise_error(RR::Errors::DoubleNotFoundError)
|
435
|
+
end
|
436
|
+
end
|
437
|
+
end
|
438
|
+
end
|
439
|
+
end
|
440
|
+
end
|
441
|
+
end
|
442
|
+
end
|
443
|
+
end
|