nutshell-crm 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.gitignore +21 -0
- data/.rspec +2 -0
- data/Gemfile +4 -0
- data/README +0 -0
- data/Rakefile +2 -0
- data/lib/nutshell-crm.rb +78 -0
- data/lib/nutshell-crm/version.rb +3 -0
- data/nutshell-crm.gemspec +28 -0
- data/spec/nutshell-crm_spec.rb +212 -0
- data/spec/spec_helper.rb +8 -0
- data/vendor/bundle/bin/autospec +19 -0
- data/vendor/bundle/bin/htmldiff +21 -0
- data/vendor/bundle/bin/httparty +19 -0
- data/vendor/bundle/bin/ldiff +21 -0
- data/vendor/bundle/bin/rspec +19 -0
- data/vendor/bundle/gems/diff-lcs-1.1.3/.gemtest +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.rb +5 -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/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/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/httparty-0.8.1/.gitignore +9 -0
- data/vendor/bundle/gems/httparty-0.8.1/Gemfile +8 -0
- data/vendor/bundle/gems/httparty-0.8.1/History +259 -0
- data/vendor/bundle/gems/httparty-0.8.1/MIT-LICENSE +20 -0
- data/vendor/bundle/gems/httparty-0.8.1/README.rdoc +54 -0
- data/vendor/bundle/gems/httparty-0.8.1/Rakefile +15 -0
- data/vendor/bundle/gems/httparty-0.8.1/bin/httparty +108 -0
- data/vendor/bundle/gems/httparty-0.8.1/cucumber.yml +1 -0
- data/vendor/bundle/gems/httparty-0.8.1/examples/aaws.rb +32 -0
- data/vendor/bundle/gems/httparty-0.8.1/examples/basic.rb +32 -0
- data/vendor/bundle/gems/httparty-0.8.1/examples/crack.rb +19 -0
- data/vendor/bundle/gems/httparty-0.8.1/examples/custom_parsers.rb +67 -0
- data/vendor/bundle/gems/httparty-0.8.1/examples/delicious.rb +37 -0
- data/vendor/bundle/gems/httparty-0.8.1/examples/google.rb +16 -0
- data/vendor/bundle/gems/httparty-0.8.1/examples/rubyurl.rb +14 -0
- data/vendor/bundle/gems/httparty-0.8.1/examples/tripit_sign_in.rb +33 -0
- data/vendor/bundle/gems/httparty-0.8.1/examples/twitter.rb +31 -0
- data/vendor/bundle/gems/httparty-0.8.1/examples/whoismyrep.rb +10 -0
- data/vendor/bundle/gems/httparty-0.8.1/features/basic_authentication.feature +20 -0
- data/vendor/bundle/gems/httparty-0.8.1/features/command_line.feature +7 -0
- data/vendor/bundle/gems/httparty-0.8.1/features/deals_with_http_error_codes.feature +26 -0
- data/vendor/bundle/gems/httparty-0.8.1/features/digest_authentication.feature +20 -0
- data/vendor/bundle/gems/httparty-0.8.1/features/handles_compressed_responses.feature +19 -0
- data/vendor/bundle/gems/httparty-0.8.1/features/handles_multiple_formats.feature +34 -0
- data/vendor/bundle/gems/httparty-0.8.1/features/steps/env.rb +22 -0
- data/vendor/bundle/gems/httparty-0.8.1/features/steps/httparty_response_steps.rb +26 -0
- data/vendor/bundle/gems/httparty-0.8.1/features/steps/httparty_steps.rb +27 -0
- data/vendor/bundle/gems/httparty-0.8.1/features/steps/mongrel_helper.rb +94 -0
- data/vendor/bundle/gems/httparty-0.8.1/features/steps/remote_service_steps.rb +69 -0
- data/vendor/bundle/gems/httparty-0.8.1/features/supports_redirection.feature +22 -0
- data/vendor/bundle/gems/httparty-0.8.1/features/supports_timeout_option.feature +13 -0
- data/vendor/bundle/gems/httparty-0.8.1/httparty.gemspec +24 -0
- data/vendor/bundle/gems/httparty-0.8.1/lib/httparty.rb +452 -0
- data/vendor/bundle/gems/httparty-0.8.1/lib/httparty/cookie_hash.rb +22 -0
- data/vendor/bundle/gems/httparty-0.8.1/lib/httparty/core_extensions.rb +9 -0
- data/vendor/bundle/gems/httparty-0.8.1/lib/httparty/exceptions.rb +26 -0
- data/vendor/bundle/gems/httparty-0.8.1/lib/httparty/hash_conversions.rb +51 -0
- data/vendor/bundle/gems/httparty-0.8.1/lib/httparty/module_inheritable_attributes.rb +34 -0
- data/vendor/bundle/gems/httparty-0.8.1/lib/httparty/net_digest_auth.rb +71 -0
- data/vendor/bundle/gems/httparty-0.8.1/lib/httparty/parser.rb +141 -0
- data/vendor/bundle/gems/httparty-0.8.1/lib/httparty/request.rb +257 -0
- data/vendor/bundle/gems/httparty-0.8.1/lib/httparty/response.rb +85 -0
- data/vendor/bundle/gems/httparty-0.8.1/lib/httparty/version.rb +3 -0
- data/vendor/bundle/gems/httparty-0.8.1/spec/fixtures/delicious.xml +23 -0
- data/vendor/bundle/gems/httparty-0.8.1/spec/fixtures/empty.xml +0 -0
- data/vendor/bundle/gems/httparty-0.8.1/spec/fixtures/google.html +3 -0
- data/vendor/bundle/gems/httparty-0.8.1/spec/fixtures/ssl/generate.sh +29 -0
- data/vendor/bundle/gems/httparty-0.8.1/spec/fixtures/ssl/generated/1fe462c2.0 +16 -0
- data/vendor/bundle/gems/httparty-0.8.1/spec/fixtures/ssl/generated/bogushost.crt +13 -0
- data/vendor/bundle/gems/httparty-0.8.1/spec/fixtures/ssl/generated/ca.crt +16 -0
- data/vendor/bundle/gems/httparty-0.8.1/spec/fixtures/ssl/generated/ca.key +15 -0
- data/vendor/bundle/gems/httparty-0.8.1/spec/fixtures/ssl/generated/selfsigned.crt +14 -0
- data/vendor/bundle/gems/httparty-0.8.1/spec/fixtures/ssl/generated/server.crt +13 -0
- data/vendor/bundle/gems/httparty-0.8.1/spec/fixtures/ssl/generated/server.key +15 -0
- data/vendor/bundle/gems/httparty-0.8.1/spec/fixtures/ssl/openssl-exts.cnf +9 -0
- data/vendor/bundle/gems/httparty-0.8.1/spec/fixtures/twitter.json +1 -0
- data/vendor/bundle/gems/httparty-0.8.1/spec/fixtures/twitter.xml +403 -0
- data/vendor/bundle/gems/httparty-0.8.1/spec/fixtures/undefined_method_add_node_for_nil.xml +2 -0
- data/vendor/bundle/gems/httparty-0.8.1/spec/httparty/cookie_hash_spec.rb +71 -0
- data/vendor/bundle/gems/httparty-0.8.1/spec/httparty/net_digest_auth_spec.rb +93 -0
- data/vendor/bundle/gems/httparty-0.8.1/spec/httparty/parser_spec.rb +155 -0
- data/vendor/bundle/gems/httparty-0.8.1/spec/httparty/request_spec.rb +544 -0
- data/vendor/bundle/gems/httparty-0.8.1/spec/httparty/response_spec.rb +193 -0
- data/vendor/bundle/gems/httparty-0.8.1/spec/httparty/ssl_spec.rb +54 -0
- data/vendor/bundle/gems/httparty-0.8.1/spec/httparty_spec.rb +621 -0
- data/vendor/bundle/gems/httparty-0.8.1/spec/spec.opts +3 -0
- data/vendor/bundle/gems/httparty-0.8.1/spec/spec_helper.rb +22 -0
- data/vendor/bundle/gems/httparty-0.8.1/spec/support/ssl_test_helper.rb +25 -0
- data/vendor/bundle/gems/httparty-0.8.1/spec/support/ssl_test_server.rb +69 -0
- data/vendor/bundle/gems/httparty-0.8.1/spec/support/stub_response.rb +30 -0
- data/vendor/bundle/gems/httparty-0.8.1/website/css/common.css +47 -0
- data/vendor/bundle/gems/httparty-0.8.1/website/index.html +73 -0
- data/vendor/bundle/gems/json-1.6.3/.gitignore +8 -0
- data/vendor/bundle/gems/json-1.6.3/.travis.yml +15 -0
- data/vendor/bundle/gems/json-1.6.3/CHANGES +223 -0
- data/vendor/bundle/gems/json-1.6.3/COPYING +58 -0
- data/vendor/bundle/gems/json-1.6.3/COPYING-json-jruby +57 -0
- data/vendor/bundle/gems/json-1.6.3/GPL +340 -0
- data/vendor/bundle/gems/json-1.6.3/Gemfile +11 -0
- data/vendor/bundle/gems/json-1.6.3/README-json-jruby.markdown +33 -0
- data/vendor/bundle/gems/json-1.6.3/README.rdoc +358 -0
- data/vendor/bundle/gems/json-1.6.3/Rakefile +408 -0
- data/vendor/bundle/gems/json-1.6.3/TODO +1 -0
- data/vendor/bundle/gems/json-1.6.3/VERSION +1 -0
- data/vendor/bundle/gems/json-1.6.3/benchmarks/data-p4-3GHz-ruby18/.keep +0 -0
- data/vendor/bundle/gems/json-1.6.3/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkComparison.log +52 -0
- data/vendor/bundle/gems/json-1.6.3/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_fast-autocorrelation.dat +1000 -0
- data/vendor/bundle/gems/json-1.6.3/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_fast.dat +1001 -0
- data/vendor/bundle/gems/json-1.6.3/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_pretty-autocorrelation.dat +900 -0
- data/vendor/bundle/gems/json-1.6.3/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_pretty.dat +901 -0
- data/vendor/bundle/gems/json-1.6.3/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_safe-autocorrelation.dat +1000 -0
- data/vendor/bundle/gems/json-1.6.3/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_safe.dat +1001 -0
- data/vendor/bundle/gems/json-1.6.3/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt.log +261 -0
- data/vendor/bundle/gems/json-1.6.3/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_fast-autocorrelation.dat +1000 -0
- data/vendor/bundle/gems/json-1.6.3/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_fast.dat +1001 -0
- data/vendor/bundle/gems/json-1.6.3/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_pretty-autocorrelation.dat +1000 -0
- data/vendor/bundle/gems/json-1.6.3/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_pretty.dat +1001 -0
- data/vendor/bundle/gems/json-1.6.3/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_safe-autocorrelation.dat +1000 -0
- data/vendor/bundle/gems/json-1.6.3/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_safe.dat +1001 -0
- data/vendor/bundle/gems/json-1.6.3/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure.log +262 -0
- data/vendor/bundle/gems/json-1.6.3/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkRails#generator-autocorrelation.dat +1000 -0
- data/vendor/bundle/gems/json-1.6.3/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkRails#generator.dat +1001 -0
- data/vendor/bundle/gems/json-1.6.3/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkRails.log +82 -0
- data/vendor/bundle/gems/json-1.6.3/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkComparison.log +34 -0
- data/vendor/bundle/gems/json-1.6.3/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkExt#parser-autocorrelation.dat +900 -0
- data/vendor/bundle/gems/json-1.6.3/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkExt#parser.dat +901 -0
- data/vendor/bundle/gems/json-1.6.3/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkExt.log +81 -0
- data/vendor/bundle/gems/json-1.6.3/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkPure#parser-autocorrelation.dat +1000 -0
- data/vendor/bundle/gems/json-1.6.3/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkPure#parser.dat +1001 -0
- data/vendor/bundle/gems/json-1.6.3/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkPure.log +82 -0
- data/vendor/bundle/gems/json-1.6.3/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkRails#parser-autocorrelation.dat +1000 -0
- data/vendor/bundle/gems/json-1.6.3/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkRails#parser.dat +1001 -0
- data/vendor/bundle/gems/json-1.6.3/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkRails.log +82 -0
- data/vendor/bundle/gems/json-1.6.3/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkYAML#parser-autocorrelation.dat +1000 -0
- data/vendor/bundle/gems/json-1.6.3/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkYAML#parser.dat +1001 -0
- data/vendor/bundle/gems/json-1.6.3/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkYAML.log +82 -0
- data/vendor/bundle/gems/json-1.6.3/benchmarks/data/.keep +0 -0
- data/vendor/bundle/gems/json-1.6.3/benchmarks/generator2_benchmark.rb +222 -0
- data/vendor/bundle/gems/json-1.6.3/benchmarks/generator_benchmark.rb +224 -0
- data/vendor/bundle/gems/json-1.6.3/benchmarks/ohai.json +1216 -0
- data/vendor/bundle/gems/json-1.6.3/benchmarks/ohai.ruby +1 -0
- data/vendor/bundle/gems/json-1.6.3/benchmarks/parser2_benchmark.rb +251 -0
- data/vendor/bundle/gems/json-1.6.3/benchmarks/parser_benchmark.rb +259 -0
- data/vendor/bundle/gems/json-1.6.3/data/example.json +1 -0
- data/vendor/bundle/gems/json-1.6.3/data/index.html +38 -0
- data/vendor/bundle/gems/json-1.6.3/data/prototype.js +4184 -0
- data/vendor/bundle/gems/json-1.6.3/diagrams/.keep +0 -0
- data/vendor/bundle/gems/json-1.6.3/ext/json/ext/fbuffer/fbuffer.h +156 -0
- data/vendor/bundle/gems/json-1.6.3/ext/json/ext/generator/Makefile +187 -0
- data/vendor/bundle/gems/json-1.6.3/ext/json/ext/generator/extconf.rb +13 -0
- data/vendor/bundle/gems/json-1.6.3/ext/json/ext/generator/generator.bundle +0 -0
- data/vendor/bundle/gems/json-1.6.3/ext/json/ext/generator/generator.c +1384 -0
- data/vendor/bundle/gems/json-1.6.3/ext/json/ext/generator/generator.h +161 -0
- data/vendor/bundle/gems/json-1.6.3/ext/json/ext/generator/generator.o +0 -0
- data/vendor/bundle/gems/json-1.6.3/ext/json/ext/json/ext/generator.bundle +0 -0
- data/vendor/bundle/gems/json-1.6.3/ext/json/ext/json/ext/parser.bundle +0 -0
- data/vendor/bundle/gems/json-1.6.3/ext/json/ext/parser/Makefile +187 -0
- data/vendor/bundle/gems/json-1.6.3/ext/json/ext/parser/extconf.rb +13 -0
- data/vendor/bundle/gems/json-1.6.3/ext/json/ext/parser/parser.bundle +0 -0
- data/vendor/bundle/gems/json-1.6.3/ext/json/ext/parser/parser.c +2197 -0
- data/vendor/bundle/gems/json-1.6.3/ext/json/ext/parser/parser.h +77 -0
- data/vendor/bundle/gems/json-1.6.3/ext/json/ext/parser/parser.o +0 -0
- data/vendor/bundle/gems/json-1.6.3/ext/json/ext/parser/parser.rl +920 -0
- data/vendor/bundle/gems/json-1.6.3/install.rb +19 -0
- data/vendor/bundle/gems/json-1.6.3/java/lib/bytelist-1.0.6.jar +0 -0
- data/vendor/bundle/gems/json-1.6.3/java/lib/jcodings.jar +0 -0
- data/vendor/bundle/gems/json-1.6.3/java/src/json/ext/ByteListTranscoder.java +167 -0
- data/vendor/bundle/gems/json-1.6.3/java/src/json/ext/Generator.java +437 -0
- data/vendor/bundle/gems/json-1.6.3/java/src/json/ext/GeneratorMethods.java +232 -0
- data/vendor/bundle/gems/json-1.6.3/java/src/json/ext/GeneratorService.java +43 -0
- data/vendor/bundle/gems/json-1.6.3/java/src/json/ext/GeneratorState.java +522 -0
- data/vendor/bundle/gems/json-1.6.3/java/src/json/ext/OptionsReader.java +119 -0
- data/vendor/bundle/gems/json-1.6.3/java/src/json/ext/Parser.java +2589 -0
- data/vendor/bundle/gems/json-1.6.3/java/src/json/ext/Parser.rl +913 -0
- data/vendor/bundle/gems/json-1.6.3/java/src/json/ext/ParserService.java +35 -0
- data/vendor/bundle/gems/json-1.6.3/java/src/json/ext/RuntimeInfo.java +121 -0
- data/vendor/bundle/gems/json-1.6.3/java/src/json/ext/StringDecoder.java +166 -0
- data/vendor/bundle/gems/json-1.6.3/java/src/json/ext/StringEncoder.java +106 -0
- data/vendor/bundle/gems/json-1.6.3/java/src/json/ext/Utils.java +89 -0
- data/vendor/bundle/gems/json-1.6.3/json-java.gemspec +22 -0
- data/vendor/bundle/gems/json-1.6.3/json.gemspec +40 -0
- data/vendor/bundle/gems/json-1.6.3/json_pure.gemspec +42 -0
- data/vendor/bundle/gems/json-1.6.3/lib/json.rb +62 -0
- data/vendor/bundle/gems/json-1.6.3/lib/json/add/bigdecimal.rb +21 -0
- data/vendor/bundle/gems/json-1.6.3/lib/json/add/complex.rb +22 -0
- data/vendor/bundle/gems/json-1.6.3/lib/json/add/core.rb +11 -0
- data/vendor/bundle/gems/json-1.6.3/lib/json/add/date.rb +34 -0
- data/vendor/bundle/gems/json-1.6.3/lib/json/add/date_time.rb +50 -0
- data/vendor/bundle/gems/json-1.6.3/lib/json/add/exception.rb +31 -0
- data/vendor/bundle/gems/json-1.6.3/lib/json/add/ostruct.rb +31 -0
- data/vendor/bundle/gems/json-1.6.3/lib/json/add/range.rb +29 -0
- data/vendor/bundle/gems/json-1.6.3/lib/json/add/rational.rb +22 -0
- data/vendor/bundle/gems/json-1.6.3/lib/json/add/regexp.rb +30 -0
- data/vendor/bundle/gems/json-1.6.3/lib/json/add/struct.rb +30 -0
- data/vendor/bundle/gems/json-1.6.3/lib/json/add/symbol.rb +25 -0
- data/vendor/bundle/gems/json-1.6.3/lib/json/add/time.rb +35 -0
- data/vendor/bundle/gems/json-1.6.3/lib/json/common.rb +470 -0
- data/vendor/bundle/gems/json-1.6.3/lib/json/ext.rb +21 -0
- data/vendor/bundle/gems/json-1.6.3/lib/json/ext/.keep +0 -0
- data/vendor/bundle/gems/json-1.6.3/lib/json/pure.rb +21 -0
- data/vendor/bundle/gems/json-1.6.3/lib/json/pure/generator.rb +468 -0
- data/vendor/bundle/gems/json-1.6.3/lib/json/pure/parser.rb +359 -0
- data/vendor/bundle/gems/json-1.6.3/lib/json/version.rb +8 -0
- data/vendor/bundle/gems/json-1.6.3/tests/fixtures/fail1.json +1 -0
- data/vendor/bundle/gems/json-1.6.3/tests/fixtures/fail10.json +1 -0
- data/vendor/bundle/gems/json-1.6.3/tests/fixtures/fail11.json +1 -0
- data/vendor/bundle/gems/json-1.6.3/tests/fixtures/fail12.json +1 -0
- data/vendor/bundle/gems/json-1.6.3/tests/fixtures/fail13.json +1 -0
- data/vendor/bundle/gems/json-1.6.3/tests/fixtures/fail14.json +1 -0
- data/vendor/bundle/gems/json-1.6.3/tests/fixtures/fail18.json +1 -0
- data/vendor/bundle/gems/json-1.6.3/tests/fixtures/fail19.json +1 -0
- data/vendor/bundle/gems/json-1.6.3/tests/fixtures/fail2.json +1 -0
- data/vendor/bundle/gems/json-1.6.3/tests/fixtures/fail20.json +1 -0
- data/vendor/bundle/gems/json-1.6.3/tests/fixtures/fail21.json +1 -0
- data/vendor/bundle/gems/json-1.6.3/tests/fixtures/fail22.json +1 -0
- data/vendor/bundle/gems/json-1.6.3/tests/fixtures/fail23.json +1 -0
- data/vendor/bundle/gems/json-1.6.3/tests/fixtures/fail24.json +1 -0
- data/vendor/bundle/gems/json-1.6.3/tests/fixtures/fail25.json +1 -0
- data/vendor/bundle/gems/json-1.6.3/tests/fixtures/fail27.json +2 -0
- data/vendor/bundle/gems/json-1.6.3/tests/fixtures/fail28.json +2 -0
- data/vendor/bundle/gems/json-1.6.3/tests/fixtures/fail3.json +1 -0
- data/vendor/bundle/gems/json-1.6.3/tests/fixtures/fail4.json +1 -0
- data/vendor/bundle/gems/json-1.6.3/tests/fixtures/fail5.json +1 -0
- data/vendor/bundle/gems/json-1.6.3/tests/fixtures/fail6.json +1 -0
- data/vendor/bundle/gems/json-1.6.3/tests/fixtures/fail7.json +1 -0
- data/vendor/bundle/gems/json-1.6.3/tests/fixtures/fail8.json +1 -0
- data/vendor/bundle/gems/json-1.6.3/tests/fixtures/fail9.json +1 -0
- data/vendor/bundle/gems/json-1.6.3/tests/fixtures/pass1.json +56 -0
- data/vendor/bundle/gems/json-1.6.3/tests/fixtures/pass15.json +1 -0
- data/vendor/bundle/gems/json-1.6.3/tests/fixtures/pass16.json +1 -0
- data/vendor/bundle/gems/json-1.6.3/tests/fixtures/pass17.json +1 -0
- data/vendor/bundle/gems/json-1.6.3/tests/fixtures/pass2.json +1 -0
- data/vendor/bundle/gems/json-1.6.3/tests/fixtures/pass26.json +1 -0
- data/vendor/bundle/gems/json-1.6.3/tests/fixtures/pass3.json +6 -0
- data/vendor/bundle/gems/json-1.6.3/tests/setup_variant.rb +11 -0
- data/vendor/bundle/gems/json-1.6.3/tests/test_json.rb +476 -0
- data/vendor/bundle/gems/json-1.6.3/tests/test_json_addition.rb +188 -0
- data/vendor/bundle/gems/json-1.6.3/tests/test_json_encoding.rb +65 -0
- data/vendor/bundle/gems/json-1.6.3/tests/test_json_fixtures.rb +35 -0
- data/vendor/bundle/gems/json-1.6.3/tests/test_json_generate.rb +249 -0
- data/vendor/bundle/gems/json-1.6.3/tests/test_json_string_matching.rb +40 -0
- data/vendor/bundle/gems/json-1.6.3/tests/test_json_unicode.rb +72 -0
- data/vendor/bundle/gems/json-1.6.3/tools/fuzz.rb +139 -0
- data/vendor/bundle/gems/json-1.6.3/tools/server.rb +62 -0
- data/vendor/bundle/gems/multi_json-1.0.4/.document +5 -0
- data/vendor/bundle/gems/multi_json-1.0.4/.rspec +3 -0
- data/vendor/bundle/gems/multi_json-1.0.4/.travis.yml +7 -0
- data/vendor/bundle/gems/multi_json-1.0.4/Gemfile +6 -0
- data/vendor/bundle/gems/multi_json-1.0.4/LICENSE.md +20 -0
- data/vendor/bundle/gems/multi_json-1.0.4/README.md +94 -0
- data/vendor/bundle/gems/multi_json-1.0.4/Rakefile +25 -0
- data/vendor/bundle/gems/multi_json-1.0.4/lib/multi_json.rb +85 -0
- data/vendor/bundle/gems/multi_json-1.0.4/lib/multi_json/engines/json_common.rb +27 -0
- data/vendor/bundle/gems/multi_json-1.0.4/lib/multi_json/engines/json_gem.rb +12 -0
- data/vendor/bundle/gems/multi_json-1.0.4/lib/multi_json/engines/json_pure.rb +12 -0
- data/vendor/bundle/gems/multi_json-1.0.4/lib/multi_json/engines/ok_json.rb +48 -0
- data/vendor/bundle/gems/multi_json-1.0.4/lib/multi_json/engines/yajl.rb +18 -0
- data/vendor/bundle/gems/multi_json-1.0.4/lib/multi_json/vendor/ok_json.rb +587 -0
- data/vendor/bundle/gems/multi_json-1.0.4/lib/multi_json/version.rb +3 -0
- data/vendor/bundle/gems/multi_json-1.0.4/multi_json.gemspec +22 -0
- data/vendor/bundle/gems/multi_json-1.0.4/spec/helper.rb +35 -0
- data/vendor/bundle/gems/multi_json-1.0.4/spec/multi_json_spec.rb +178 -0
- data/vendor/bundle/gems/multi_xml-0.4.1/.gemtest +0 -0
- data/vendor/bundle/gems/multi_xml-0.4.1/.gitignore +10 -0
- data/vendor/bundle/gems/multi_xml-0.4.1/.rspec +3 -0
- data/vendor/bundle/gems/multi_xml-0.4.1/.travis.yml +7 -0
- data/vendor/bundle/gems/multi_xml-0.4.1/.yardopts +5 -0
- data/vendor/bundle/gems/multi_xml-0.4.1/Gemfile +9 -0
- data/vendor/bundle/gems/multi_xml-0.4.1/LICENSE.md +20 -0
- data/vendor/bundle/gems/multi_xml-0.4.1/README.md +113 -0
- data/vendor/bundle/gems/multi_xml-0.4.1/Rakefile +23 -0
- data/vendor/bundle/gems/multi_xml-0.4.1/lib/multi_xml.rb +237 -0
- data/vendor/bundle/gems/multi_xml-0.4.1/lib/multi_xml/parsers/libxml.rb +30 -0
- data/vendor/bundle/gems/multi_xml-0.4.1/lib/multi_xml/parsers/libxml2_parser.rb +66 -0
- data/vendor/bundle/gems/multi_xml-0.4.1/lib/multi_xml/parsers/nokogiri.rb +32 -0
- data/vendor/bundle/gems/multi_xml-0.4.1/lib/multi_xml/parsers/ox.rb +97 -0
- data/vendor/bundle/gems/multi_xml-0.4.1/lib/multi_xml/parsers/rexml.rb +113 -0
- data/vendor/bundle/gems/multi_xml-0.4.1/lib/multi_xml/version.rb +3 -0
- data/vendor/bundle/gems/multi_xml-0.4.1/multi_xml.gemspec +24 -0
- data/vendor/bundle/gems/multi_xml-0.4.1/spec/helper.rb +3 -0
- data/vendor/bundle/gems/multi_xml-0.4.1/spec/multi_xml_spec.rb +41 -0
- data/vendor/bundle/gems/multi_xml-0.4.1/spec/parser_shared_example.rb +552 -0
- data/vendor/bundle/gems/multi_xml-0.4.1/spec/speed.rb +63 -0
- data/vendor/bundle/gems/rspec-2.7.0/.document +2 -0
- data/vendor/bundle/gems/rspec-2.7.0/.gitignore +8 -0
- data/vendor/bundle/gems/rspec-2.7.0/Gemfile +7 -0
- data/vendor/bundle/gems/rspec-2.7.0/License.txt +22 -0
- data/vendor/bundle/gems/rspec-2.7.0/README.markdown +47 -0
- data/vendor/bundle/gems/rspec-2.7.0/Rakefile +30 -0
- data/vendor/bundle/gems/rspec-2.7.0/lib/rspec.rb +4 -0
- data/vendor/bundle/gems/rspec-2.7.0/lib/rspec/version.rb +5 -0
- data/vendor/bundle/gems/rspec-2.7.0/rspec.gemspec +33 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/README.md +68 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/exe/autospec +13 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/exe/rspec +25 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/features/Autotest.md +38 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/features/README.md +17 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/features/Upgrade.md +364 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/features/command_line/README.md +28 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/features/command_line/configure.feature +22 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/features/command_line/example_name_option.feature +86 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/features/command_line/exit_status.feature +83 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/features/command_line/format_option.feature +81 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/features/command_line/line_number_appended_to_path.feature +140 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/features/command_line/line_number_option.feature +58 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/features/command_line/pattern_option.feature +31 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/features/command_line/rake_task.feature +68 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/features/command_line/ruby.feature +22 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/features/command_line/tag.feature +90 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/features/configuration/alias_example_to.feature +48 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/features/configuration/custom_settings.feature +84 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/features/configuration/default_path.feature +38 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/features/configuration/fail_fast.feature +77 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/features/configuration/read_options_from_file.feature +87 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/features/example_groups/basic_structure.feature +55 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/features/example_groups/shared_context.feature +74 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/features/example_groups/shared_examples.feature +204 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/features/expectation_framework_integration/configure_expectation_framework.feature +73 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/features/filtering/exclusion_filters.feature +139 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/features/filtering/if_and_unless.feature +168 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/features/filtering/inclusion_filters.feature +105 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/features/filtering/run_all_when_everything_filtered.feature +46 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/features/formatters/custom_formatter.feature +36 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/features/formatters/text_formatter.feature +46 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/features/helper_methods/arbitrary_methods.feature +40 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/features/helper_methods/let.feature +50 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/features/helper_methods/modules.feature +149 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/features/hooks/around_hooks.feature +343 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/features/hooks/before_and_after_hooks.feature +423 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/features/hooks/filtering.feature +234 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/features/metadata/current_example.feature +17 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/features/metadata/described_class.feature +17 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/features/metadata/user_defined.feature +113 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/features/mock_framework_integration/use_any_framework.feature +106 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/features/mock_framework_integration/use_flexmock.feature +96 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/features/mock_framework_integration/use_mocha.feature +97 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/features/mock_framework_integration/use_rr.feature +98 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/features/mock_framework_integration/use_rspec.feature +97 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/features/pending/pending_examples.feature +229 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/features/spec_files/arbitrary_file_suffix.feature +13 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/features/step_definitions/additional_cli_steps.rb +30 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/features/subject/attribute_of_subject.feature +122 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/features/subject/explicit_subject.feature +78 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/features/subject/implicit_receiver.feature +29 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/features/subject/implicit_subject.feature +30 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/features/support/env.rb +5 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/lib/autotest/discover.rb +1 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/lib/autotest/rspec2.rb +73 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/lib/rspec/autorun.rb +2 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/lib/rspec/core.rb +81 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/lib/rspec/core/backward_compatibility.rb +63 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/lib/rspec/core/command_line.rb +32 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/lib/rspec/core/command_line_configuration.rb +62 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/lib/rspec/core/configuration.rb +558 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/lib/rspec/core/configuration_options.rb +139 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/lib/rspec/core/deprecation.rb +48 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/lib/rspec/core/drb_command_line.rb +23 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/lib/rspec/core/dsl.rb +11 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/lib/rspec/core/errors.rb +13 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/lib/rspec/core/example.rb +178 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/lib/rspec/core/example_group.rb +348 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/lib/rspec/core/expecting/with_rspec.rb +9 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/lib/rspec/core/expecting/with_stdlib.rb +9 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/lib/rspec/core/extensions.rb +3 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/lib/rspec/core/extensions/instance_eval_with_args.rb +39 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/lib/rspec/core/extensions/kernel.rb +9 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/lib/rspec/core/extensions/module_eval_with_args.rb +34 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/lib/rspec/core/formatters/base_formatter.rb +172 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/lib/rspec/core/formatters/base_text_formatter.rb +185 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/lib/rspec/core/formatters/documentation_formatter.rb +71 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/lib/rspec/core/formatters/helpers.rb +24 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/lib/rspec/core/formatters/html_formatter.rb +458 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/lib/rspec/core/formatters/progress_formatter.rb +32 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/lib/rspec/core/formatters/snippet_extractor.rb +58 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/lib/rspec/core/formatters/text_mate_formatter.rb +34 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/lib/rspec/core/hooks.rb +160 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/lib/rspec/core/let.rb +101 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/lib/rspec/core/load_path.rb +3 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/lib/rspec/core/metadata.rb +229 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/lib/rspec/core/metadata_hash_builder.rb +93 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/lib/rspec/core/mocking/with_absolutely_nothing.rb +11 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/lib/rspec/core/mocking/with_flexmock.rb +27 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/lib/rspec/core/mocking/with_mocha.rb +23 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/lib/rspec/core/mocking/with_rr.rb +27 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/lib/rspec/core/mocking/with_rspec.rb +23 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/lib/rspec/core/option_parser.rb +147 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/lib/rspec/core/pending.rb +38 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/lib/rspec/core/rake_task.rb +201 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/lib/rspec/core/reporter.rb +78 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/lib/rspec/core/ruby_project.rb +44 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/lib/rspec/core/runner.rb +86 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/lib/rspec/core/shared_context.rb +16 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/lib/rspec/core/shared_example_group.rb +67 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/lib/rspec/core/subject.rb +175 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/lib/rspec/core/version.rb +7 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/lib/rspec/core/world.rb +150 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/lib/rspec/monkey.rb +1 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/lib/rspec/monkey/spork/test_framework/rspec.rb +8 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/spec/autotest/discover_spec.rb +19 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/spec/autotest/failed_results_re_spec.rb +45 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/spec/autotest/rspec_spec.rb +123 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/spec/rspec/core/command_line_configuration_spec.rb +26 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/spec/rspec/core/command_line_spec.rb +169 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/spec/rspec/core/command_line_spec_output.txt +0 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/spec/rspec/core/configuration_options_spec.rb +437 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/spec/rspec/core/configuration_spec.rb +920 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/spec/rspec/core/deprecations_spec.rb +66 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/spec/rspec/core/drb_command_line_spec.rb +124 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/spec/rspec/core/example_group_spec.rb +1046 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/spec/rspec/core/example_spec.rb +289 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/spec/rspec/core/formatters/base_formatter_spec.rb +80 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/spec/rspec/core/formatters/base_text_formatter_spec.rb +344 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/spec/rspec/core/formatters/documentation_formatter_spec.rb +66 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/spec/rspec/core/formatters/helpers_spec.rb +46 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/spec/rspec/core/formatters/html_formatted-1.8.7-jruby.html +462 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/spec/rspec/core/formatters/html_formatted-1.8.7.html +399 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/spec/rspec/core/formatters/html_formatted-1.9.2.html +406 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/spec/rspec/core/formatters/html_formatted-1.9.3.html +406 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/spec/rspec/core/formatters/html_formatter_spec.rb +81 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/spec/rspec/core/formatters/progress_formatter_spec.rb +30 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/spec/rspec/core/formatters/snippet_extractor_spec.rb +18 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/spec/rspec/core/formatters/text_mate_formatted-1.8.7-jruby.html +462 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/spec/rspec/core/formatters/text_mate_formatted-1.8.7.html +399 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/spec/rspec/core/formatters/text_mate_formatted-1.9.2.html +406 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/spec/rspec/core/formatters/text_mate_formatted-1.9.3.html +406 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/spec/rspec/core/formatters/text_mate_formatter_spec.rb +84 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/spec/rspec/core/hooks_filtering_spec.rb +227 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/spec/rspec/core/hooks_spec.rb +143 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/spec/rspec/core/kernel_extensions_spec.rb +9 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/spec/rspec/core/let_spec.rb +55 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/spec/rspec/core/metadata_spec.rb +383 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/spec/rspec/core/option_parser_spec.rb +86 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/spec/rspec/core/pending_example_spec.rb +187 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/spec/rspec/core/rake_task_spec.rb +138 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/spec/rspec/core/reporter_spec.rb +86 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/spec/rspec/core/resources/a_bar.rb +0 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/spec/rspec/core/resources/a_foo.rb +0 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/spec/rspec/core/resources/a_spec.rb +1 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/spec/rspec/core/resources/custom_example_group_runner.rb +14 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/spec/rspec/core/resources/formatter_specs.rb +60 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/spec/rspec/core/resources/utf8_encoded.rb +8 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/spec/rspec/core/rspec_matchers_spec.rb +45 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/spec/rspec/core/ruby_project_spec.rb +24 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/spec/rspec/core/runner_spec.rb +82 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/spec/rspec/core/shared_context_spec.rb +30 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/spec/rspec/core/shared_example_group_spec.rb +84 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/spec/rspec/core/subject_spec.rb +199 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/spec/rspec/core/world_spec.rb +315 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/spec/rspec/core_spec.rb +31 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/spec/spec_helper.rb +92 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/spec/support/matchers.rb +75 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/spec/support/shared_example_groups.rb +41 -0
- data/vendor/bundle/gems/rspec-core-2.7.1/spec/support/spec_files.rb +44 -0
- data/vendor/bundle/gems/rspec-expectations-2.7.0/README.md +24 -0
- data/vendor/bundle/gems/rspec-expectations-2.7.0/features/README.markdown +49 -0
- data/vendor/bundle/gems/rspec-expectations-2.7.0/features/Upgrade.md +53 -0
- data/vendor/bundle/gems/rspec-expectations-2.7.0/features/built_in_matchers/README.md +73 -0
- data/vendor/bundle/gems/rspec-expectations-2.7.0/features/built_in_matchers/be.feature +135 -0
- data/vendor/bundle/gems/rspec-expectations-2.7.0/features/built_in_matchers/be_within.feature +43 -0
- data/vendor/bundle/gems/rspec-expectations-2.7.0/features/built_in_matchers/cover.feature +45 -0
- data/vendor/bundle/gems/rspec-expectations-2.7.0/features/built_in_matchers/equality.feature +145 -0
- data/vendor/bundle/gems/rspec-expectations-2.7.0/features/built_in_matchers/exist.feature +43 -0
- data/vendor/bundle/gems/rspec-expectations-2.7.0/features/built_in_matchers/expect_change.feature +59 -0
- data/vendor/bundle/gems/rspec-expectations-2.7.0/features/built_in_matchers/expect_error.feature +138 -0
- data/vendor/bundle/gems/rspec-expectations-2.7.0/features/built_in_matchers/have.feature +103 -0
- data/vendor/bundle/gems/rspec-expectations-2.7.0/features/built_in_matchers/include.feature +121 -0
- data/vendor/bundle/gems/rspec-expectations-2.7.0/features/built_in_matchers/match.feature +50 -0
- data/vendor/bundle/gems/rspec-expectations-2.7.0/features/built_in_matchers/operators.feature +221 -0
- data/vendor/bundle/gems/rspec-expectations-2.7.0/features/built_in_matchers/predicates.feature +128 -0
- data/vendor/bundle/gems/rspec-expectations-2.7.0/features/built_in_matchers/respond_to.feature +78 -0
- data/vendor/bundle/gems/rspec-expectations-2.7.0/features/built_in_matchers/satisfy.feature +31 -0
- data/vendor/bundle/gems/rspec-expectations-2.7.0/features/built_in_matchers/throw_symbol.feature +85 -0
- data/vendor/bundle/gems/rspec-expectations-2.7.0/features/built_in_matchers/types.feature +114 -0
- data/vendor/bundle/gems/rspec-expectations-2.7.0/features/custom_matchers/access_running_example.feature +53 -0
- data/vendor/bundle/gems/rspec-expectations-2.7.0/features/custom_matchers/define_diffable_matcher.feature +27 -0
- data/vendor/bundle/gems/rspec-expectations-2.7.0/features/custom_matchers/define_matcher.feature +340 -0
- data/vendor/bundle/gems/rspec-expectations-2.7.0/features/custom_matchers/define_matcher_outside_rspec.feature +38 -0
- data/vendor/bundle/gems/rspec-expectations-2.7.0/features/custom_matchers/define_matcher_with_fluent_interface.feature +24 -0
- data/vendor/bundle/gems/rspec-expectations-2.7.0/features/customized_message.feature +22 -0
- data/vendor/bundle/gems/rspec-expectations-2.7.0/features/diffing.feature +85 -0
- data/vendor/bundle/gems/rspec-expectations-2.7.0/features/implicit_docstrings.feature +52 -0
- data/vendor/bundle/gems/rspec-expectations-2.7.0/features/step_definitions/additional_cli_steps.rb +22 -0
- data/vendor/bundle/gems/rspec-expectations-2.7.0/features/support/env.rb +5 -0
- data/vendor/bundle/gems/rspec-expectations-2.7.0/features/test_frameworks/test_unit.feature +46 -0
- data/vendor/bundle/gems/rspec-expectations-2.7.0/lib/rspec-expectations.rb +1 -0
- data/vendor/bundle/gems/rspec-expectations-2.7.0/lib/rspec/expectations.rb +37 -0
- data/vendor/bundle/gems/rspec-expectations-2.7.0/lib/rspec/expectations/deprecation.rb +38 -0
- data/vendor/bundle/gems/rspec-expectations-2.7.0/lib/rspec/expectations/differ.rb +62 -0
- data/vendor/bundle/gems/rspec-expectations-2.7.0/lib/rspec/expectations/errors.rb +9 -0
- data/vendor/bundle/gems/rspec-expectations-2.7.0/lib/rspec/expectations/extensions.rb +3 -0
- data/vendor/bundle/gems/rspec-expectations-2.7.0/lib/rspec/expectations/extensions/array.rb +9 -0
- data/vendor/bundle/gems/rspec-expectations-2.7.0/lib/rspec/expectations/extensions/kernel.rb +26 -0
- data/vendor/bundle/gems/rspec-expectations-2.7.0/lib/rspec/expectations/extensions/object.rb +39 -0
- data/vendor/bundle/gems/rspec-expectations-2.7.0/lib/rspec/expectations/fail_with.rb +54 -0
- data/vendor/bundle/gems/rspec-expectations-2.7.0/lib/rspec/expectations/handler.rb +50 -0
- data/vendor/bundle/gems/rspec-expectations-2.7.0/lib/rspec/expectations/version.rb +8 -0
- data/vendor/bundle/gems/rspec-expectations-2.7.0/lib/rspec/matchers.rb +206 -0
- data/vendor/bundle/gems/rspec-expectations-2.7.0/lib/rspec/matchers/be.rb +213 -0
- data/vendor/bundle/gems/rspec-expectations-2.7.0/lib/rspec/matchers/be_close.rb +9 -0
- data/vendor/bundle/gems/rspec-expectations-2.7.0/lib/rspec/matchers/be_instance_of.rb +26 -0
- data/vendor/bundle/gems/rspec-expectations-2.7.0/lib/rspec/matchers/be_kind_of.rb +26 -0
- data/vendor/bundle/gems/rspec-expectations-2.7.0/lib/rspec/matchers/be_within.rb +37 -0
- data/vendor/bundle/gems/rspec-expectations-2.7.0/lib/rspec/matchers/block_aliases.rb +19 -0
- data/vendor/bundle/gems/rspec-expectations-2.7.0/lib/rspec/matchers/change.rb +197 -0
- data/vendor/bundle/gems/rspec-expectations-2.7.0/lib/rspec/matchers/compatibility.rb +14 -0
- data/vendor/bundle/gems/rspec-expectations-2.7.0/lib/rspec/matchers/cover.rb +35 -0
- data/vendor/bundle/gems/rspec-expectations-2.7.0/lib/rspec/matchers/dsl.rb +22 -0
- data/vendor/bundle/gems/rspec-expectations-2.7.0/lib/rspec/matchers/eq.rb +46 -0
- data/vendor/bundle/gems/rspec-expectations-2.7.0/lib/rspec/matchers/eql.rb +41 -0
- data/vendor/bundle/gems/rspec-expectations-2.7.0/lib/rspec/matchers/equal.rb +48 -0
- data/vendor/bundle/gems/rspec-expectations-2.7.0/lib/rspec/matchers/errors.rb +5 -0
- data/vendor/bundle/gems/rspec-expectations-2.7.0/lib/rspec/matchers/exist.rb +26 -0
- data/vendor/bundle/gems/rspec-expectations-2.7.0/lib/rspec/matchers/extensions/instance_eval_with_args.rb +39 -0
- data/vendor/bundle/gems/rspec-expectations-2.7.0/lib/rspec/matchers/generated_descriptions.rb +36 -0
- data/vendor/bundle/gems/rspec-expectations-2.7.0/lib/rspec/matchers/has.rb +44 -0
- data/vendor/bundle/gems/rspec-expectations-2.7.0/lib/rspec/matchers/have.rb +168 -0
- data/vendor/bundle/gems/rspec-expectations-2.7.0/lib/rspec/matchers/include.rb +54 -0
- data/vendor/bundle/gems/rspec-expectations-2.7.0/lib/rspec/matchers/match.rb +21 -0
- data/vendor/bundle/gems/rspec-expectations-2.7.0/lib/rspec/matchers/match_array.rb +71 -0
- data/vendor/bundle/gems/rspec-expectations-2.7.0/lib/rspec/matchers/matcher.rb +165 -0
- data/vendor/bundle/gems/rspec-expectations-2.7.0/lib/rspec/matchers/method_missing.rb +12 -0
- data/vendor/bundle/gems/rspec-expectations-2.7.0/lib/rspec/matchers/operator_matcher.rb +87 -0
- data/vendor/bundle/gems/rspec-expectations-2.7.0/lib/rspec/matchers/pretty.rb +37 -0
- data/vendor/bundle/gems/rspec-expectations-2.7.0/lib/rspec/matchers/raise_error.rb +130 -0
- data/vendor/bundle/gems/rspec-expectations-2.7.0/lib/rspec/matchers/respond_to.rb +85 -0
- data/vendor/bundle/gems/rspec-expectations-2.7.0/lib/rspec/matchers/satisfy.rb +51 -0
- data/vendor/bundle/gems/rspec-expectations-2.7.0/lib/rspec/matchers/throw_symbol.rb +121 -0
- data/vendor/bundle/gems/rspec-expectations-2.7.0/spec/rspec/expectations/differ_spec.rb +96 -0
- data/vendor/bundle/gems/rspec-expectations-2.7.0/spec/rspec/expectations/extensions/kernel_spec.rb +45 -0
- data/vendor/bundle/gems/rspec-expectations-2.7.0/spec/rspec/expectations/fail_with_spec.rb +70 -0
- data/vendor/bundle/gems/rspec-expectations-2.7.0/spec/rspec/expectations/handler_spec.rb +206 -0
- data/vendor/bundle/gems/rspec-expectations-2.7.0/spec/rspec/matchers/be_close_spec.rb +22 -0
- data/vendor/bundle/gems/rspec-expectations-2.7.0/spec/rspec/matchers/be_instance_of_spec.rb +36 -0
- data/vendor/bundle/gems/rspec-expectations-2.7.0/spec/rspec/matchers/be_kind_of_spec.rb +33 -0
- data/vendor/bundle/gems/rspec-expectations-2.7.0/spec/rspec/matchers/be_spec.rb +452 -0
- data/vendor/bundle/gems/rspec-expectations-2.7.0/spec/rspec/matchers/be_within_spec.rb +64 -0
- data/vendor/bundle/gems/rspec-expectations-2.7.0/spec/rspec/matchers/change_spec.rb +522 -0
- data/vendor/bundle/gems/rspec-expectations-2.7.0/spec/rspec/matchers/compatibility_spec.rb +28 -0
- data/vendor/bundle/gems/rspec-expectations-2.7.0/spec/rspec/matchers/cover_spec.rb +65 -0
- data/vendor/bundle/gems/rspec-expectations-2.7.0/spec/rspec/matchers/description_generation_spec.rb +176 -0
- data/vendor/bundle/gems/rspec-expectations-2.7.0/spec/rspec/matchers/dsl_spec.rb +25 -0
- data/vendor/bundle/gems/rspec-expectations-2.7.0/spec/rspec/matchers/eq_spec.rb +38 -0
- data/vendor/bundle/gems/rspec-expectations-2.7.0/spec/rspec/matchers/eql_spec.rb +37 -0
- data/vendor/bundle/gems/rspec-expectations-2.7.0/spec/rspec/matchers/equal_spec.rb +57 -0
- data/vendor/bundle/gems/rspec-expectations-2.7.0/spec/rspec/matchers/exist_spec.rb +104 -0
- data/vendor/bundle/gems/rspec-expectations-2.7.0/spec/rspec/matchers/has_spec.rb +113 -0
- data/vendor/bundle/gems/rspec-expectations-2.7.0/spec/rspec/matchers/have_spec.rb +458 -0
- data/vendor/bundle/gems/rspec-expectations-2.7.0/spec/rspec/matchers/include_spec.rb +341 -0
- data/vendor/bundle/gems/rspec-expectations-2.7.0/spec/rspec/matchers/match_array_spec.rb +108 -0
- data/vendor/bundle/gems/rspec-expectations-2.7.0/spec/rspec/matchers/match_spec.rb +57 -0
- data/vendor/bundle/gems/rspec-expectations-2.7.0/spec/rspec/matchers/matcher_spec.rb +420 -0
- data/vendor/bundle/gems/rspec-expectations-2.7.0/spec/rspec/matchers/matchers_spec.rb +31 -0
- data/vendor/bundle/gems/rspec-expectations-2.7.0/spec/rspec/matchers/method_missing_spec.rb +23 -0
- data/vendor/bundle/gems/rspec-expectations-2.7.0/spec/rspec/matchers/operator_matcher_spec.rb +221 -0
- data/vendor/bundle/gems/rspec-expectations-2.7.0/spec/rspec/matchers/raise_error_spec.rb +339 -0
- data/vendor/bundle/gems/rspec-expectations-2.7.0/spec/rspec/matchers/respond_to_spec.rb +292 -0
- data/vendor/bundle/gems/rspec-expectations-2.7.0/spec/rspec/matchers/satisfy_spec.rb +40 -0
- data/vendor/bundle/gems/rspec-expectations-2.7.0/spec/rspec/matchers/throw_symbol_spec.rb +113 -0
- data/vendor/bundle/gems/rspec-expectations-2.7.0/spec/spec_helper.rb +26 -0
- data/vendor/bundle/gems/rspec-expectations-2.7.0/spec/support/classes.rb +56 -0
- data/vendor/bundle/gems/rspec-expectations-2.7.0/spec/support/matchers.rb +22 -0
- data/vendor/bundle/gems/rspec-expectations-2.7.0/spec/support/ruby_version.rb +10 -0
- data/vendor/bundle/gems/rspec-mocks-2.7.0/README.md +40 -0
- data/vendor/bundle/gems/rspec-mocks-2.7.0/features/README.markdown +67 -0
- data/vendor/bundle/gems/rspec-mocks-2.7.0/features/Scope.md +17 -0
- data/vendor/bundle/gems/rspec-mocks-2.7.0/features/Upgrade.md +22 -0
- data/vendor/bundle/gems/rspec-mocks-2.7.0/features/argument_matchers/README.md +27 -0
- data/vendor/bundle/gems/rspec-mocks-2.7.0/features/argument_matchers/explicit.feature +60 -0
- data/vendor/bundle/gems/rspec-mocks-2.7.0/features/argument_matchers/general_matchers.feature +85 -0
- data/vendor/bundle/gems/rspec-mocks-2.7.0/features/argument_matchers/type_matchers.feature +25 -0
- data/vendor/bundle/gems/rspec-mocks-2.7.0/features/message_expectations/README.md +58 -0
- data/vendor/bundle/gems/rspec-mocks-2.7.0/features/message_expectations/any_instance.feature +21 -0
- data/vendor/bundle/gems/rspec-mocks-2.7.0/features/message_expectations/block_local_expectations.feature.pending +55 -0
- data/vendor/bundle/gems/rspec-mocks-2.7.0/features/message_expectations/expect_message.feature +94 -0
- data/vendor/bundle/gems/rspec-mocks-2.7.0/features/message_expectations/receive_counts.feature +209 -0
- data/vendor/bundle/gems/rspec-mocks-2.7.0/features/message_expectations/warn_when_expectation_is_set_on_nil.feature +50 -0
- data/vendor/bundle/gems/rspec-mocks-2.7.0/features/method_stubs/README.md +43 -0
- data/vendor/bundle/gems/rspec-mocks-2.7.0/features/method_stubs/any_instance.feature +133 -0
- data/vendor/bundle/gems/rspec-mocks-2.7.0/features/method_stubs/as_null_object.feature +36 -0
- data/vendor/bundle/gems/rspec-mocks-2.7.0/features/method_stubs/simple_return_value.feature +64 -0
- data/vendor/bundle/gems/rspec-mocks-2.7.0/features/method_stubs/stub_chain.feature +51 -0
- data/vendor/bundle/gems/rspec-mocks-2.7.0/features/method_stubs/stub_implementation.feature +26 -0
- data/vendor/bundle/gems/rspec-mocks-2.7.0/features/method_stubs/to_ary.feature +47 -0
- data/vendor/bundle/gems/rspec-mocks-2.7.0/features/outside_rspec/configuration.feature +82 -0
- data/vendor/bundle/gems/rspec-mocks-2.7.0/features/outside_rspec/standalone.feature +32 -0
- data/vendor/bundle/gems/rspec-mocks-2.7.0/features/step_definitions/additional_cli_steps.rb +4 -0
- data/vendor/bundle/gems/rspec-mocks-2.7.0/features/support/env.rb +6 -0
- data/vendor/bundle/gems/rspec-mocks-2.7.0/lib/rspec/mocks.rb +196 -0
- data/vendor/bundle/gems/rspec-mocks-2.7.0/lib/rspec/mocks/any_instance.rb +29 -0
- data/vendor/bundle/gems/rspec-mocks-2.7.0/lib/rspec/mocks/any_instance/chain.rb +49 -0
- data/vendor/bundle/gems/rspec-mocks-2.7.0/lib/rspec/mocks/any_instance/expectation_chain.rb +33 -0
- data/vendor/bundle/gems/rspec-mocks-2.7.0/lib/rspec/mocks/any_instance/message_chains.rb +48 -0
- data/vendor/bundle/gems/rspec-mocks-2.7.0/lib/rspec/mocks/any_instance/recorder.rb +168 -0
- data/vendor/bundle/gems/rspec-mocks-2.7.0/lib/rspec/mocks/any_instance/stub_chain.rb +35 -0
- data/vendor/bundle/gems/rspec-mocks-2.7.0/lib/rspec/mocks/any_instance/stub_chain_chain.rb +34 -0
- data/vendor/bundle/gems/rspec-mocks-2.7.0/lib/rspec/mocks/argument_expectation.rb +54 -0
- data/vendor/bundle/gems/rspec-mocks-2.7.0/lib/rspec/mocks/argument_matchers.rb +227 -0
- data/vendor/bundle/gems/rspec-mocks-2.7.0/lib/rspec/mocks/error_generator.rb +97 -0
- data/vendor/bundle/gems/rspec-mocks-2.7.0/lib/rspec/mocks/errors.rb +10 -0
- data/vendor/bundle/gems/rspec-mocks-2.7.0/lib/rspec/mocks/extensions/instance_exec.rb +31 -0
- data/vendor/bundle/gems/rspec-mocks-2.7.0/lib/rspec/mocks/extensions/marshal.rb +23 -0
- data/vendor/bundle/gems/rspec-mocks-2.7.0/lib/rspec/mocks/extensions/psych.rb +23 -0
- data/vendor/bundle/gems/rspec-mocks-2.7.0/lib/rspec/mocks/framework.rb +18 -0
- data/vendor/bundle/gems/rspec-mocks-2.7.0/lib/rspec/mocks/message_expectation.rb +357 -0
- data/vendor/bundle/gems/rspec-mocks-2.7.0/lib/rspec/mocks/method_double.rb +165 -0
- data/vendor/bundle/gems/rspec-mocks-2.7.0/lib/rspec/mocks/methods.rb +98 -0
- data/vendor/bundle/gems/rspec-mocks-2.7.0/lib/rspec/mocks/mock.rb +79 -0
- data/vendor/bundle/gems/rspec-mocks-2.7.0/lib/rspec/mocks/order_group.rb +29 -0
- data/vendor/bundle/gems/rspec-mocks-2.7.0/lib/rspec/mocks/proxy.rb +158 -0
- data/vendor/bundle/gems/rspec-mocks-2.7.0/lib/rspec/mocks/serialization.rb +28 -0
- data/vendor/bundle/gems/rspec-mocks-2.7.0/lib/rspec/mocks/space.rb +28 -0
- data/vendor/bundle/gems/rspec-mocks-2.7.0/lib/rspec/mocks/spec_methods.rb +53 -0
- data/vendor/bundle/gems/rspec-mocks-2.7.0/lib/rspec/mocks/standalone.rb +3 -0
- data/vendor/bundle/gems/rspec-mocks-2.7.0/lib/rspec/mocks/version.rb +7 -0
- data/vendor/bundle/gems/rspec-mocks-2.7.0/lib/spec/mocks.rb +2 -0
- data/vendor/bundle/gems/rspec-mocks-2.7.0/spec/rspec/mocks/and_yield_spec.rb +114 -0
- data/vendor/bundle/gems/rspec-mocks-2.7.0/spec/rspec/mocks/any_instance/message_chains_spec.rb +40 -0
- data/vendor/bundle/gems/rspec-mocks-2.7.0/spec/rspec/mocks/any_instance_spec.rb +785 -0
- data/vendor/bundle/gems/rspec-mocks-2.7.0/spec/rspec/mocks/any_number_of_times_spec.rb +30 -0
- data/vendor/bundle/gems/rspec-mocks-2.7.0/spec/rspec/mocks/argument_expectation_spec.rb +37 -0
- data/vendor/bundle/gems/rspec-mocks-2.7.0/spec/rspec/mocks/at_least_spec.rb +103 -0
- data/vendor/bundle/gems/rspec-mocks-2.7.0/spec/rspec/mocks/at_most_spec.rb +99 -0
- data/vendor/bundle/gems/rspec-mocks-2.7.0/spec/rspec/mocks/block_return_value_spec.rb +45 -0
- data/vendor/bundle/gems/rspec-mocks-2.7.0/spec/rspec/mocks/bug_report_10260_spec.rb +8 -0
- data/vendor/bundle/gems/rspec-mocks-2.7.0/spec/rspec/mocks/bug_report_10263_spec.rb +25 -0
- data/vendor/bundle/gems/rspec-mocks-2.7.0/spec/rspec/mocks/bug_report_11545_spec.rb +32 -0
- data/vendor/bundle/gems/rspec-mocks-2.7.0/spec/rspec/mocks/bug_report_496_spec.rb +17 -0
- data/vendor/bundle/gems/rspec-mocks-2.7.0/spec/rspec/mocks/bug_report_600_spec.rb +22 -0
- data/vendor/bundle/gems/rspec-mocks-2.7.0/spec/rspec/mocks/bug_report_7611_spec.rb +16 -0
- data/vendor/bundle/gems/rspec-mocks-2.7.0/spec/rspec/mocks/bug_report_8165_spec.rb +31 -0
- data/vendor/bundle/gems/rspec-mocks-2.7.0/spec/rspec/mocks/bug_report_830_spec.rb +21 -0
- data/vendor/bundle/gems/rspec-mocks-2.7.0/spec/rspec/mocks/bug_report_957_spec.rb +22 -0
- data/vendor/bundle/gems/rspec-mocks-2.7.0/spec/rspec/mocks/double_spec.rb +12 -0
- data/vendor/bundle/gems/rspec-mocks-2.7.0/spec/rspec/mocks/failing_argument_matchers_spec.rb +95 -0
- data/vendor/bundle/gems/rspec-mocks-2.7.0/spec/rspec/mocks/hash_including_matcher_spec.rb +90 -0
- data/vendor/bundle/gems/rspec-mocks-2.7.0/spec/rspec/mocks/hash_not_including_matcher_spec.rb +67 -0
- data/vendor/bundle/gems/rspec-mocks-2.7.0/spec/rspec/mocks/mock_ordering_spec.rb +94 -0
- data/vendor/bundle/gems/rspec-mocks-2.7.0/spec/rspec/mocks/mock_space_spec.rb +54 -0
- data/vendor/bundle/gems/rspec-mocks-2.7.0/spec/rspec/mocks/mock_spec.rb +702 -0
- data/vendor/bundle/gems/rspec-mocks-2.7.0/spec/rspec/mocks/multiple_return_value_spec.rb +191 -0
- data/vendor/bundle/gems/rspec-mocks-2.7.0/spec/rspec/mocks/nil_expectation_warning_spec.rb +62 -0
- data/vendor/bundle/gems/rspec-mocks-2.7.0/spec/rspec/mocks/null_object_mock_spec.rb +78 -0
- data/vendor/bundle/gems/rspec-mocks-2.7.0/spec/rspec/mocks/once_counts_spec.rb +53 -0
- data/vendor/bundle/gems/rspec-mocks-2.7.0/spec/rspec/mocks/options_hash_spec.rb +35 -0
- data/vendor/bundle/gems/rspec-mocks-2.7.0/spec/rspec/mocks/partial_mock_spec.rb +156 -0
- data/vendor/bundle/gems/rspec-mocks-2.7.0/spec/rspec/mocks/partial_mock_using_mocks_directly_spec.rb +95 -0
- data/vendor/bundle/gems/rspec-mocks-2.7.0/spec/rspec/mocks/passing_argument_matchers_spec.rb +142 -0
- data/vendor/bundle/gems/rspec-mocks-2.7.0/spec/rspec/mocks/precise_counts_spec.rb +58 -0
- data/vendor/bundle/gems/rspec-mocks-2.7.0/spec/rspec/mocks/record_messages_spec.rb +26 -0
- data/vendor/bundle/gems/rspec-mocks-2.7.0/spec/rspec/mocks/serialization_spec.rb +111 -0
- data/vendor/bundle/gems/rspec-mocks-2.7.0/spec/rspec/mocks/stash_spec.rb +27 -0
- data/vendor/bundle/gems/rspec-mocks-2.7.0/spec/rspec/mocks/stub_chain_spec.rb +149 -0
- data/vendor/bundle/gems/rspec-mocks-2.7.0/spec/rspec/mocks/stub_implementation_spec.rb +68 -0
- data/vendor/bundle/gems/rspec-mocks-2.7.0/spec/rspec/mocks/stub_spec.rb +235 -0
- data/vendor/bundle/gems/rspec-mocks-2.7.0/spec/rspec/mocks/stubbed_message_expectations_spec.rb +26 -0
- data/vendor/bundle/gems/rspec-mocks-2.7.0/spec/rspec/mocks/to_ary_spec.rb +40 -0
- data/vendor/bundle/gems/rspec-mocks-2.7.0/spec/rspec/mocks/twice_counts_spec.rb +67 -0
- data/vendor/bundle/gems/rspec-mocks-2.7.0/spec/rspec/mocks_spec.rb +51 -0
- data/vendor/bundle/gems/rspec-mocks-2.7.0/spec/spec_helper.rb +52 -0
- data/vendor/bundle/specifications/diff-lcs-1.1.3.gemspec +35 -0
- data/vendor/bundle/specifications/httparty-0.8.1.gemspec +34 -0
- data/vendor/bundle/specifications/json-1.6.3.gemspec +39 -0
- data/vendor/bundle/specifications/multi_json-1.0.4.gemspec +40 -0
- data/vendor/bundle/specifications/multi_xml-0.4.1.gemspec +49 -0
- data/vendor/bundle/specifications/rspec-2.7.0.gemspec +38 -0
- data/vendor/bundle/specifications/rspec-core-2.7.1.gemspec +31 -0
- data/vendor/bundle/specifications/rspec-expectations-2.7.0.gemspec +32 -0
- data/vendor/bundle/specifications/rspec-mocks-2.7.0.gemspec +29 -0
- metadata +771 -0
data/vendor/bundle/gems/rspec-expectations-2.7.0/features/built_in_matchers/respond_to.feature
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
Feature: respond_to matcher
|
|
2
|
+
|
|
3
|
+
Use the respond_to matcher to specify details of an object's interface. In
|
|
4
|
+
its most basic form:
|
|
5
|
+
|
|
6
|
+
obj.should respond_to(:foo) # pass if obj.respond_to?(:foo)
|
|
7
|
+
|
|
8
|
+
You can specify that an object responds to multiple messages in a single
|
|
9
|
+
statement with multiple arguments passed to the matcher:
|
|
10
|
+
|
|
11
|
+
obj.should respond_to(:foo, :bar) # passes if obj.respond_to?(:foo) && obj.respond_to?(:bar)
|
|
12
|
+
|
|
13
|
+
If the number of arguments accepted by the method is important to you,
|
|
14
|
+
you can specify that as well:
|
|
15
|
+
|
|
16
|
+
obj.should respond_to(:foo).with(1).argument
|
|
17
|
+
obj.should respond_to(:bar).with(2).arguments
|
|
18
|
+
|
|
19
|
+
Note that this matcher relies entirely upon #respond_to?. If an object
|
|
20
|
+
dynamically responds to a message via #method_missing, but does not indicate
|
|
21
|
+
this via #respond_to?, then this matcher will give you false results.
|
|
22
|
+
|
|
23
|
+
Scenario: basic usage
|
|
24
|
+
Given a file named "respond_to_matcher_spec.rb" with:
|
|
25
|
+
"""
|
|
26
|
+
describe "a string" do
|
|
27
|
+
it { should respond_to(:length) }
|
|
28
|
+
it { should respond_to(:hash, :class, :to_s) }
|
|
29
|
+
it { should_not respond_to(:to_model) }
|
|
30
|
+
it { should_not respond_to(:compact, :flatten) }
|
|
31
|
+
|
|
32
|
+
# deliberate failures
|
|
33
|
+
it { should respond_to(:to_model) }
|
|
34
|
+
it { should respond_to(:compact, :flatten) }
|
|
35
|
+
it { should_not respond_to(:length) }
|
|
36
|
+
it { should_not respond_to(:hash, :class, :to_s) }
|
|
37
|
+
|
|
38
|
+
# mixed examples--String responds to :length but not :flatten
|
|
39
|
+
# both specs should fail
|
|
40
|
+
it { should respond_to(:length, :flatten) }
|
|
41
|
+
it { should_not respond_to(:length, :flatten) }
|
|
42
|
+
end
|
|
43
|
+
"""
|
|
44
|
+
When I run `rspec respond_to_matcher_spec.rb`
|
|
45
|
+
Then the output should contain all of these:
|
|
46
|
+
| 10 examples, 6 failures |
|
|
47
|
+
| expected "a string" to respond to :to_model |
|
|
48
|
+
| expected "a string" to respond to :compact, :flatten |
|
|
49
|
+
| expected "a string" not to respond to :length |
|
|
50
|
+
| expected "a string" not to respond to :hash, :class, :to_s |
|
|
51
|
+
| expected "a string" to respond to :flatten |
|
|
52
|
+
| expected "a string" not to respond to :length |
|
|
53
|
+
|
|
54
|
+
Scenario: specify arguments
|
|
55
|
+
Given a file named "respond_to_matcher_argument_checking_spec.rb" with:
|
|
56
|
+
"""
|
|
57
|
+
describe 7 do
|
|
58
|
+
it { should respond_to(:zero?).with(0).arguments }
|
|
59
|
+
it { should_not respond_to(:zero?).with(1).argument }
|
|
60
|
+
|
|
61
|
+
it { should respond_to(:between?).with(2).arguments }
|
|
62
|
+
it { should_not respond_to(:between?).with(7).arguments }
|
|
63
|
+
|
|
64
|
+
# deliberate failures
|
|
65
|
+
it { should respond_to(:zero?).with(1).argument }
|
|
66
|
+
it { should_not respond_to(:zero?).with(0).arguments }
|
|
67
|
+
|
|
68
|
+
it { should respond_to(:between?).with(7).arguments }
|
|
69
|
+
it { should_not respond_to(:between?).with(2).arguments }
|
|
70
|
+
end
|
|
71
|
+
"""
|
|
72
|
+
When I run `rspec respond_to_matcher_argument_checking_spec.rb`
|
|
73
|
+
Then the output should contain all of these:
|
|
74
|
+
| 8 examples, 4 failures |
|
|
75
|
+
| expected 7 to respond to :zero? with 1 argument |
|
|
76
|
+
| expected 7 not to respond to :zero? with 0 arguments |
|
|
77
|
+
| expected 7 to respond to :between? with 7 arguments |
|
|
78
|
+
| expected 7 not to respond to :between? with 2 arguments |
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
Feature: satisfy matcher
|
|
2
|
+
|
|
3
|
+
The satisfy matcher is extremely flexible and can handle almost anything
|
|
4
|
+
you want to specify. It passes if the block you provide returns true:
|
|
5
|
+
|
|
6
|
+
10.should satisfy { |v| v % 5 == 0 }
|
|
7
|
+
7.should_not satisfy { |v| v % 5 == 0 }
|
|
8
|
+
|
|
9
|
+
This flexibility comes at a cost, however: the failure message
|
|
10
|
+
("expected [actual] to satisfy block") is not very descriptive
|
|
11
|
+
or helpful. You will usually be better served by using one of
|
|
12
|
+
the other built-in matchers, or writing a custom matcher.
|
|
13
|
+
|
|
14
|
+
Scenario: basic usage
|
|
15
|
+
Given a file named "satisfy_matcher_spec.rb" with:
|
|
16
|
+
"""
|
|
17
|
+
describe 10 do
|
|
18
|
+
it { should satisfy { |v| v > 5 } }
|
|
19
|
+
it { should_not satisfy { |v| v > 15 } }
|
|
20
|
+
|
|
21
|
+
# deliberate failures
|
|
22
|
+
it { should_not satisfy { |v| v > 5 } }
|
|
23
|
+
it { should satisfy { |v| v > 15 } }
|
|
24
|
+
end
|
|
25
|
+
"""
|
|
26
|
+
When I run `rspec satisfy_matcher_spec.rb`
|
|
27
|
+
Then the output should contain all of these:
|
|
28
|
+
| 4 examples, 2 failures |
|
|
29
|
+
| expected 10 not to satisfy block |
|
|
30
|
+
| expected 10 to satisfy block |
|
|
31
|
+
|
data/vendor/bundle/gems/rspec-expectations-2.7.0/features/built_in_matchers/throw_symbol.feature
ADDED
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
Feature: throw_symbol matcher
|
|
2
|
+
|
|
3
|
+
The throw_symbol matcher is used to specify that a block of code
|
|
4
|
+
throws a symbol. The most basic form passes if any symbol is thrown:
|
|
5
|
+
|
|
6
|
+
expect { throw :foo }.to throw_symbol
|
|
7
|
+
|
|
8
|
+
You'll often want to specify that a particular symbol is thrown:
|
|
9
|
+
|
|
10
|
+
expect { throw :foo }.to throw_symbol(:foo)
|
|
11
|
+
|
|
12
|
+
If you care about the additional argument given to throw, you can
|
|
13
|
+
specify that as well:
|
|
14
|
+
|
|
15
|
+
expect { throw :foo, 7 }.to throw_symbol(:foo, 7)
|
|
16
|
+
|
|
17
|
+
Scenario: basic usage
|
|
18
|
+
Given a file named "throw_symbol_matcher_spec.rb" with:
|
|
19
|
+
"""
|
|
20
|
+
describe "throw" do
|
|
21
|
+
specify { expect { throw :foo }.to throw_symbol }
|
|
22
|
+
specify { expect { throw :bar, 7 }.to throw_symbol }
|
|
23
|
+
specify { expect { 5 + 5 }.to_not throw_symbol }
|
|
24
|
+
|
|
25
|
+
# deliberate failures
|
|
26
|
+
specify { expect { throw :foo }.to_not throw_symbol }
|
|
27
|
+
specify { expect { throw :bar, 7 }.to_not throw_symbol }
|
|
28
|
+
specify { expect { 5 + 5 }.to throw_symbol }
|
|
29
|
+
end
|
|
30
|
+
"""
|
|
31
|
+
When I run `rspec throw_symbol_matcher_spec.rb`
|
|
32
|
+
Then the output should contain all of these:
|
|
33
|
+
| 6 examples, 3 failures |
|
|
34
|
+
| expected no Symbol to be thrown, got :foo |
|
|
35
|
+
| expected no Symbol to be thrown, got :bar |
|
|
36
|
+
| expected a Symbol to be thrown, got nothing |
|
|
37
|
+
|
|
38
|
+
Scenario: specify thrown symbol
|
|
39
|
+
Given a file named "throw_symbol_matcher_spec.rb" with:
|
|
40
|
+
"""
|
|
41
|
+
describe "throw symbol" do
|
|
42
|
+
specify { expect { throw :foo }.to throw_symbol(:foo) }
|
|
43
|
+
specify { expect { throw :foo, 7 }.to throw_symbol(:foo) }
|
|
44
|
+
specify { expect { 5 + 5 }.to_not throw_symbol(:foo) }
|
|
45
|
+
specify { expect { throw :bar }.to_not throw_symbol(:foo) }
|
|
46
|
+
|
|
47
|
+
# deliberate failures
|
|
48
|
+
specify { expect { throw :foo }.to_not throw_symbol(:foo) }
|
|
49
|
+
specify { expect { throw :foo, 7 }.to_not throw_symbol(:foo) }
|
|
50
|
+
specify { expect { 5 + 5 }.to throw_symbol(:foo) }
|
|
51
|
+
specify { expect { throw :bar }.to throw_symbol(:foo) }
|
|
52
|
+
end
|
|
53
|
+
"""
|
|
54
|
+
When I run `rspec throw_symbol_matcher_spec.rb`
|
|
55
|
+
Then the output should contain all of these:
|
|
56
|
+
| 8 examples, 4 failures |
|
|
57
|
+
| expected :foo not to be thrown, got :foo |
|
|
58
|
+
| expected :foo not to be thrown, got :foo with 7 |
|
|
59
|
+
| expected :foo to be thrown, got nothing |
|
|
60
|
+
| expected :foo to be thrown, got :bar |
|
|
61
|
+
|
|
62
|
+
Scenario: specify thrown symbol and argument
|
|
63
|
+
Given a file named "throw_symbol_argument_matcher_spec.rb" with:
|
|
64
|
+
"""
|
|
65
|
+
describe "throw symbol with argument" do
|
|
66
|
+
specify { expect { throw :foo, 7 }.to throw_symbol(:foo, 7) }
|
|
67
|
+
specify { expect { throw :foo, 8 }.to_not throw_symbol(:foo, 7) }
|
|
68
|
+
specify { expect { throw :bar, 7 }.to_not throw_symbol(:foo, 7) }
|
|
69
|
+
specify { expect { throw :foo }.to_not throw_symbol(:foo, 7) }
|
|
70
|
+
|
|
71
|
+
# deliberate failures
|
|
72
|
+
specify { expect { throw :foo, 7 }.to_not throw_symbol(:foo, 7) }
|
|
73
|
+
specify { expect { throw :foo, 8 }.to throw_symbol(:foo, 7) }
|
|
74
|
+
specify { expect { throw :bar, 7 }.to throw_symbol(:foo, 7) }
|
|
75
|
+
specify { expect { throw :foo }.to throw_symbol(:foo, 7) }
|
|
76
|
+
end
|
|
77
|
+
"""
|
|
78
|
+
When I run `rspec throw_symbol_argument_matcher_spec.rb`
|
|
79
|
+
Then the output should contain all of these:
|
|
80
|
+
| 8 examples, 4 failures |
|
|
81
|
+
| expected :foo with 7 not to be thrown, got :foo with 7 |
|
|
82
|
+
| expected :foo with 7 to be thrown, got :foo with 8 |
|
|
83
|
+
| expected :foo with 7 to be thrown, got :bar |
|
|
84
|
+
| expected :foo with 7 to be thrown, got :foo with no argument |
|
|
85
|
+
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
Feature: specify types of objects
|
|
2
|
+
|
|
3
|
+
rspec-expectations includes two matchers to specify types of objects:
|
|
4
|
+
|
|
5
|
+
* obj.should be_kind_of(type): calls obj.kind_of?(type), which returns
|
|
6
|
+
true if type is in obj's class hierarchy or is a module and is
|
|
7
|
+
included in a class in obj's class hierarchy.
|
|
8
|
+
* obj.should be_instance_of(type): calls obj.instance_of?(type), which
|
|
9
|
+
returns true if and only if type if obj's class.
|
|
10
|
+
|
|
11
|
+
Both of these matchers have aliases:
|
|
12
|
+
|
|
13
|
+
* obj.should be_a_kind_of(type) # same as obj.should be_kind_of(type)
|
|
14
|
+
* obj.should be_a(type) # same as obj.should be_kind_of(type)
|
|
15
|
+
* obj.should be_an(type) # same as obj.should be_kind_of(type)
|
|
16
|
+
* obj.should be_an_instance_of(type) # same as obj.should be_instance_of(type)
|
|
17
|
+
|
|
18
|
+
Scenario: be_(a_)kind_of matcher
|
|
19
|
+
Given a file named "be_kind_of_matcher_spec.rb" with:
|
|
20
|
+
"""
|
|
21
|
+
module MyModule; end
|
|
22
|
+
|
|
23
|
+
class Fixnum
|
|
24
|
+
include MyModule
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
describe 17 do
|
|
28
|
+
# the actual class
|
|
29
|
+
it { should be_kind_of(Fixnum) }
|
|
30
|
+
it { should be_a_kind_of(Fixnum) }
|
|
31
|
+
it { should be_a(Fixnum) }
|
|
32
|
+
|
|
33
|
+
# the superclass
|
|
34
|
+
it { should be_kind_of(Integer) }
|
|
35
|
+
it { should be_a_kind_of(Integer) }
|
|
36
|
+
it { should be_an(Integer) }
|
|
37
|
+
|
|
38
|
+
# an included module
|
|
39
|
+
it { should be_kind_of(MyModule) }
|
|
40
|
+
it { should be_a_kind_of(MyModule) }
|
|
41
|
+
it { should be_a(MyModule) }
|
|
42
|
+
|
|
43
|
+
# negative passing case
|
|
44
|
+
it { should_not be_kind_of(String) }
|
|
45
|
+
it { should_not be_a_kind_of(String) }
|
|
46
|
+
it { should_not be_a(String) }
|
|
47
|
+
|
|
48
|
+
# deliberate failures
|
|
49
|
+
it { should_not be_kind_of(Fixnum) }
|
|
50
|
+
it { should_not be_a_kind_of(Fixnum) }
|
|
51
|
+
it { should_not be_a(Fixnum) }
|
|
52
|
+
it { should_not be_kind_of(Integer) }
|
|
53
|
+
it { should_not be_a_kind_of(Integer) }
|
|
54
|
+
it { should_not be_an(Integer) }
|
|
55
|
+
it { should_not be_kind_of(MyModule) }
|
|
56
|
+
it { should_not be_a_kind_of(MyModule) }
|
|
57
|
+
it { should_not be_a(MyModule) }
|
|
58
|
+
it { should be_kind_of(String) }
|
|
59
|
+
it { should be_a_kind_of(String) }
|
|
60
|
+
it { should be_a(String) }
|
|
61
|
+
end
|
|
62
|
+
"""
|
|
63
|
+
When I run `rspec be_kind_of_matcher_spec.rb`
|
|
64
|
+
Then the output should contain all of these:
|
|
65
|
+
| 24 examples, 12 failures |
|
|
66
|
+
| expected 17 not to be a kind of Fixnum |
|
|
67
|
+
| expected 17 not to be a kind of Integer |
|
|
68
|
+
| expected 17 not to be a kind of MyModule |
|
|
69
|
+
| expected 17 to be a kind of String |
|
|
70
|
+
|
|
71
|
+
Scenario: be_(an_)instance_of matcher
|
|
72
|
+
Given a file named "be_instance_of_matcher_spec.rb" with:
|
|
73
|
+
"""
|
|
74
|
+
module MyModule; end
|
|
75
|
+
|
|
76
|
+
class Fixnum
|
|
77
|
+
include MyModule
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
describe 17 do
|
|
81
|
+
# the actual class
|
|
82
|
+
it { should be_instance_of(Fixnum) }
|
|
83
|
+
it { should be_an_instance_of(Fixnum) }
|
|
84
|
+
|
|
85
|
+
# the superclass
|
|
86
|
+
it { should_not be_instance_of(Integer) }
|
|
87
|
+
it { should_not be_an_instance_of(Integer) }
|
|
88
|
+
|
|
89
|
+
# an included module
|
|
90
|
+
it { should_not be_instance_of(MyModule) }
|
|
91
|
+
it { should_not be_an_instance_of(MyModule) }
|
|
92
|
+
|
|
93
|
+
# another class with no relation to the subject's hierarchy
|
|
94
|
+
it { should_not be_instance_of(String) }
|
|
95
|
+
it { should_not be_an_instance_of(String) }
|
|
96
|
+
|
|
97
|
+
# deliberate failures
|
|
98
|
+
it { should_not be_instance_of(Fixnum) }
|
|
99
|
+
it { should_not be_an_instance_of(Fixnum) }
|
|
100
|
+
it { should be_instance_of(Integer) }
|
|
101
|
+
it { should be_an_instance_of(Integer) }
|
|
102
|
+
it { should be_instance_of(MyModule) }
|
|
103
|
+
it { should be_an_instance_of(MyModule) }
|
|
104
|
+
it { should be_instance_of(String) }
|
|
105
|
+
it { should be_an_instance_of(String) }
|
|
106
|
+
end
|
|
107
|
+
"""
|
|
108
|
+
When I run `rspec be_instance_of_matcher_spec.rb`
|
|
109
|
+
Then the output should contain all of these:
|
|
110
|
+
| 16 examples, 8 failures |
|
|
111
|
+
| expected 17 not to be an instance of Fixnum |
|
|
112
|
+
| expected 17 to be an instance of Integer |
|
|
113
|
+
| expected 17 to be an instance of MyModule |
|
|
114
|
+
| expected 17 to be an instance of String |
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
Feature: access running example
|
|
2
|
+
|
|
3
|
+
In order to take advantage of services that are available
|
|
4
|
+
in my examples when I'm writing matchers
|
|
5
|
+
As a spec author
|
|
6
|
+
I want to call methods on the running example
|
|
7
|
+
|
|
8
|
+
If the method exists in the context of the example, it gets
|
|
9
|
+
called. If not, a NoMethodError is raised on the Matcher itself
|
|
10
|
+
(not the example).
|
|
11
|
+
|
|
12
|
+
Scenario: call method defined on example from matcher
|
|
13
|
+
Given a file named "example_spec.rb" with:
|
|
14
|
+
"""
|
|
15
|
+
RSpec::Matchers.define :bar do
|
|
16
|
+
match do |_|
|
|
17
|
+
foo == "foo"
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
describe "something" do
|
|
22
|
+
def foo
|
|
23
|
+
"foo"
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
it "does something" do
|
|
27
|
+
"foo".should bar
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
"""
|
|
31
|
+
When I run `rspec ./example_spec.rb`
|
|
32
|
+
Then the output should contain "1 example, 0 failures"
|
|
33
|
+
|
|
34
|
+
Scenario: call method _not_ defined on example from matcher
|
|
35
|
+
Given a file named "example_spec.rb" with:
|
|
36
|
+
"""
|
|
37
|
+
RSpec::Matchers.define :bar do
|
|
38
|
+
match do |_|
|
|
39
|
+
foo == "foo"
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
describe "something" do
|
|
44
|
+
it "does something" do
|
|
45
|
+
"foo".should bar
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
"""
|
|
49
|
+
When I run `rspec ./example_spec.rb`
|
|
50
|
+
Then the output should contain "1 example, 1 failure"
|
|
51
|
+
And the output should contain "undefined local variable"
|
|
52
|
+
And the output should contain "RSpec::Matchers::Matcher"
|
|
53
|
+
And the output should not contain "ExampleGroup"
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
Feature: define diffable matcher
|
|
2
|
+
|
|
3
|
+
When a matcher is defined as diffable, and the --diff
|
|
4
|
+
flag is set, the output will include a diff of the submitted
|
|
5
|
+
objects.
|
|
6
|
+
|
|
7
|
+
@wip
|
|
8
|
+
Scenario: define a diffable matcher
|
|
9
|
+
Given a file named "diffable_matcher_spec.rb" with:
|
|
10
|
+
"""
|
|
11
|
+
RSpec::Matchers.define :be_just_like do |expected|
|
|
12
|
+
match do |actual|
|
|
13
|
+
actual == expected
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
diffable
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
describe "this" do
|
|
20
|
+
it {should be_just_like("that")}
|
|
21
|
+
end
|
|
22
|
+
"""
|
|
23
|
+
When I run `rspec ./diffable_matcher_spec.rb --diff`
|
|
24
|
+
Then the exit status should not be 0
|
|
25
|
+
|
|
26
|
+
And the output should contain "should be just like that"
|
|
27
|
+
And the output should contain "Diff:\n@@ -1,2 +1,2 @@\n-that\n+this"
|
data/vendor/bundle/gems/rspec-expectations-2.7.0/features/custom_matchers/define_matcher.feature
ADDED
|
@@ -0,0 +1,340 @@
|
|
|
1
|
+
Feature: define matcher
|
|
2
|
+
|
|
3
|
+
In order to express my domain clearly in my code examples
|
|
4
|
+
As an RSpec user
|
|
5
|
+
I want a shortcut to define custom matchers
|
|
6
|
+
|
|
7
|
+
Scenario: define a matcher with default messages
|
|
8
|
+
Given a file named "matcher_with_default_message_spec.rb" with:
|
|
9
|
+
"""
|
|
10
|
+
require 'rspec/expectations'
|
|
11
|
+
|
|
12
|
+
RSpec::Matchers.define :be_a_multiple_of do |expected|
|
|
13
|
+
match do |actual|
|
|
14
|
+
actual % expected == 0
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
describe 9 do
|
|
19
|
+
it {should be_a_multiple_of(3)}
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
describe 9 do
|
|
23
|
+
it {should_not be_a_multiple_of(4)}
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
# fail intentionally to generate expected output
|
|
27
|
+
describe 9 do
|
|
28
|
+
it {should be_a_multiple_of(4)}
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
# fail intentionally to generate expected output
|
|
32
|
+
describe 9 do
|
|
33
|
+
it {should_not be_a_multiple_of(3)}
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
"""
|
|
37
|
+
When I run `rspec ./matcher_with_default_message_spec.rb --format documentation`
|
|
38
|
+
Then the exit status should not be 0
|
|
39
|
+
|
|
40
|
+
And the output should contain "should be a multiple of 3"
|
|
41
|
+
And the output should contain "should not be a multiple of 4"
|
|
42
|
+
And the output should contain "Failure/Error: it {should be_a_multiple_of(4)}"
|
|
43
|
+
And the output should contain "Failure/Error: it {should_not be_a_multiple_of(3)}"
|
|
44
|
+
|
|
45
|
+
And the output should contain "4 examples, 2 failures"
|
|
46
|
+
And the output should contain "expected 9 to be a multiple of 4"
|
|
47
|
+
And the output should contain "expected 9 not to be a multiple of 3"
|
|
48
|
+
|
|
49
|
+
Scenario: overriding the failure_message_for_should
|
|
50
|
+
Given a file named "matcher_with_failure_message_spec.rb" with:
|
|
51
|
+
"""
|
|
52
|
+
require 'rspec/expectations'
|
|
53
|
+
|
|
54
|
+
RSpec::Matchers.define :be_a_multiple_of do |expected|
|
|
55
|
+
match do |actual|
|
|
56
|
+
actual % expected == 0
|
|
57
|
+
end
|
|
58
|
+
failure_message_for_should do |actual|
|
|
59
|
+
"expected that #{actual} would be a multiple of #{expected}"
|
|
60
|
+
end
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
# fail intentionally to generate expected output
|
|
64
|
+
describe 9 do
|
|
65
|
+
it {should be_a_multiple_of(4)}
|
|
66
|
+
end
|
|
67
|
+
"""
|
|
68
|
+
When I run `rspec ./matcher_with_failure_message_spec.rb`
|
|
69
|
+
Then the exit status should not be 0
|
|
70
|
+
And the stdout should contain "1 example, 1 failure"
|
|
71
|
+
And the stdout should contain "expected that 9 would be a multiple of 4"
|
|
72
|
+
|
|
73
|
+
Scenario: overriding the failure_message_for_should_not
|
|
74
|
+
Given a file named "matcher_with_failure_for_message_spec.rb" with:
|
|
75
|
+
"""
|
|
76
|
+
require 'rspec/expectations'
|
|
77
|
+
|
|
78
|
+
RSpec::Matchers.define :be_a_multiple_of do |expected|
|
|
79
|
+
match do |actual|
|
|
80
|
+
actual % expected == 0
|
|
81
|
+
end
|
|
82
|
+
failure_message_for_should_not do |actual|
|
|
83
|
+
"expected that #{actual} would not be a multiple of #{expected}"
|
|
84
|
+
end
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
# fail intentionally to generate expected output
|
|
88
|
+
describe 9 do
|
|
89
|
+
it {should_not be_a_multiple_of(3)}
|
|
90
|
+
end
|
|
91
|
+
"""
|
|
92
|
+
When I run `rspec ./matcher_with_failure_for_message_spec.rb`
|
|
93
|
+
Then the exit status should not be 0
|
|
94
|
+
And the stdout should contain "1 example, 1 failure"
|
|
95
|
+
And the stdout should contain "expected that 9 would not be a multiple of 3"
|
|
96
|
+
|
|
97
|
+
Scenario: overriding the description
|
|
98
|
+
Given a file named "matcher_overriding_description_spec.rb" with:
|
|
99
|
+
"""
|
|
100
|
+
require 'rspec/expectations'
|
|
101
|
+
|
|
102
|
+
RSpec::Matchers.define :be_a_multiple_of do |expected|
|
|
103
|
+
match do |actual|
|
|
104
|
+
actual % expected == 0
|
|
105
|
+
end
|
|
106
|
+
description do
|
|
107
|
+
"be multiple of #{expected}"
|
|
108
|
+
end
|
|
109
|
+
end
|
|
110
|
+
|
|
111
|
+
describe 9 do
|
|
112
|
+
it {should be_a_multiple_of(3)}
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
describe 9 do
|
|
116
|
+
it {should_not be_a_multiple_of(4)}
|
|
117
|
+
end
|
|
118
|
+
"""
|
|
119
|
+
When I run `rspec ./matcher_overriding_description_spec.rb --format documentation`
|
|
120
|
+
Then the exit status should be 0
|
|
121
|
+
And the stdout should contain "2 examples, 0 failures"
|
|
122
|
+
And the stdout should contain "should be multiple of 3"
|
|
123
|
+
And the stdout should contain "should not be multiple of 4"
|
|
124
|
+
|
|
125
|
+
Scenario: with no args
|
|
126
|
+
Given a file named "matcher_with_no_args_spec.rb" with:
|
|
127
|
+
"""
|
|
128
|
+
require 'rspec/expectations'
|
|
129
|
+
|
|
130
|
+
RSpec::Matchers.define :have_7_fingers do
|
|
131
|
+
match do |thing|
|
|
132
|
+
thing.fingers.length == 7
|
|
133
|
+
end
|
|
134
|
+
end
|
|
135
|
+
|
|
136
|
+
class Thing
|
|
137
|
+
def fingers; (1..7).collect {"finger"}; end
|
|
138
|
+
end
|
|
139
|
+
|
|
140
|
+
describe Thing do
|
|
141
|
+
it {should have_7_fingers}
|
|
142
|
+
end
|
|
143
|
+
"""
|
|
144
|
+
When I run `rspec ./matcher_with_no_args_spec.rb --format documentation`
|
|
145
|
+
Then the exit status should be 0
|
|
146
|
+
And the stdout should contain "1 example, 0 failures"
|
|
147
|
+
And the stdout should contain "should have 7 fingers"
|
|
148
|
+
|
|
149
|
+
Scenario: with multiple args
|
|
150
|
+
Given a file named "matcher_with_multiple_args_spec.rb" with:
|
|
151
|
+
"""
|
|
152
|
+
require 'rspec/expectations'
|
|
153
|
+
|
|
154
|
+
RSpec::Matchers.define :be_the_sum_of do |a,b,c,d|
|
|
155
|
+
match do |sum|
|
|
156
|
+
a + b + c + d == sum
|
|
157
|
+
end
|
|
158
|
+
end
|
|
159
|
+
|
|
160
|
+
describe 10 do
|
|
161
|
+
it {should be_the_sum_of(1,2,3,4)}
|
|
162
|
+
end
|
|
163
|
+
"""
|
|
164
|
+
When I run `rspec ./matcher_with_multiple_args_spec.rb --format documentation`
|
|
165
|
+
Then the exit status should be 0
|
|
166
|
+
And the stdout should contain "1 example, 0 failures"
|
|
167
|
+
And the stdout should contain "should be the sum of 1, 2, 3, and 4"
|
|
168
|
+
|
|
169
|
+
Scenario: with helper methods
|
|
170
|
+
Given a file named "matcher_with_internal_helper_spec.rb" with:
|
|
171
|
+
"""
|
|
172
|
+
require 'rspec/expectations'
|
|
173
|
+
|
|
174
|
+
RSpec::Matchers.define :have_same_elements_as do |sample|
|
|
175
|
+
match do |actual|
|
|
176
|
+
similar?(sample, actual)
|
|
177
|
+
end
|
|
178
|
+
|
|
179
|
+
def similar?(a, b)
|
|
180
|
+
a.sort == b.sort
|
|
181
|
+
end
|
|
182
|
+
end
|
|
183
|
+
|
|
184
|
+
describe "these two arrays" do
|
|
185
|
+
specify "should be similar" do
|
|
186
|
+
[1,2,3].should have_same_elements_as([2,3,1])
|
|
187
|
+
end
|
|
188
|
+
end
|
|
189
|
+
"""
|
|
190
|
+
When I run `rspec ./matcher_with_internal_helper_spec.rb`
|
|
191
|
+
Then the exit status should be 0
|
|
192
|
+
And the stdout should contain "1 example, 0 failures"
|
|
193
|
+
|
|
194
|
+
Scenario: scoped in a module
|
|
195
|
+
Given a file named "scoped_matcher_spec.rb" with:
|
|
196
|
+
"""
|
|
197
|
+
require 'rspec/expectations'
|
|
198
|
+
|
|
199
|
+
module MyHelpers
|
|
200
|
+
extend RSpec::Matchers::DSL
|
|
201
|
+
|
|
202
|
+
matcher :be_just_like do |expected|
|
|
203
|
+
match {|actual| actual == expected}
|
|
204
|
+
end
|
|
205
|
+
end
|
|
206
|
+
|
|
207
|
+
describe "group with MyHelpers" do
|
|
208
|
+
include MyHelpers
|
|
209
|
+
it "has access to the defined matcher" do
|
|
210
|
+
5.should be_just_like(5)
|
|
211
|
+
end
|
|
212
|
+
end
|
|
213
|
+
|
|
214
|
+
describe "group without MyHelpers" do
|
|
215
|
+
it "does not have access to the defined matcher" do
|
|
216
|
+
expect do
|
|
217
|
+
5.should be_just_like(5)
|
|
218
|
+
end.to raise_exception
|
|
219
|
+
end
|
|
220
|
+
end
|
|
221
|
+
"""
|
|
222
|
+
|
|
223
|
+
When I run `rspec ./scoped_matcher_spec.rb`
|
|
224
|
+
Then the stdout should contain "2 examples, 0 failures"
|
|
225
|
+
|
|
226
|
+
Scenario: scoped in an example group
|
|
227
|
+
Given a file named "scoped_matcher_spec.rb" with:
|
|
228
|
+
"""
|
|
229
|
+
require 'rspec/expectations'
|
|
230
|
+
|
|
231
|
+
describe "group with matcher" do
|
|
232
|
+
matcher :be_just_like do |expected|
|
|
233
|
+
match {|actual| actual == expected}
|
|
234
|
+
end
|
|
235
|
+
|
|
236
|
+
it "has access to the defined matcher" do
|
|
237
|
+
5.should be_just_like(5)
|
|
238
|
+
end
|
|
239
|
+
|
|
240
|
+
describe "nested group" do
|
|
241
|
+
it "has access to the defined matcher" do
|
|
242
|
+
5.should be_just_like(5)
|
|
243
|
+
end
|
|
244
|
+
end
|
|
245
|
+
|
|
246
|
+
end
|
|
247
|
+
|
|
248
|
+
describe "group without matcher" do
|
|
249
|
+
it "does not have access to the defined matcher" do
|
|
250
|
+
expect do
|
|
251
|
+
5.should be_just_like(5)
|
|
252
|
+
end.to raise_exception
|
|
253
|
+
end
|
|
254
|
+
end
|
|
255
|
+
"""
|
|
256
|
+
|
|
257
|
+
When I run `rspec scoped_matcher_spec.rb`
|
|
258
|
+
Then the output should contain "3 examples, 0 failures"
|
|
259
|
+
|
|
260
|
+
Scenario: matcher with separate logic for should and should_not
|
|
261
|
+
Given a file named "matcher_with_separate_should_not_logic_spec.rb" with:
|
|
262
|
+
"""
|
|
263
|
+
RSpec::Matchers.define :contain do |*expected|
|
|
264
|
+
match_for_should do |actual|
|
|
265
|
+
expected.all? { |e| actual.include?(e) }
|
|
266
|
+
end
|
|
267
|
+
|
|
268
|
+
match_for_should_not do |actual|
|
|
269
|
+
expected.none? { |e| actual.include?(e) }
|
|
270
|
+
end
|
|
271
|
+
end
|
|
272
|
+
|
|
273
|
+
describe [1, 2, 3] do
|
|
274
|
+
it { should contain(1, 2) }
|
|
275
|
+
it { should_not contain(4, 5, 6) }
|
|
276
|
+
|
|
277
|
+
# deliberate failures
|
|
278
|
+
it { should contain(1, 4) }
|
|
279
|
+
it { should_not contain(1, 4) }
|
|
280
|
+
end
|
|
281
|
+
"""
|
|
282
|
+
When I run `rspec matcher_with_separate_should_not_logic_spec.rb`
|
|
283
|
+
Then the output should contain all of these:
|
|
284
|
+
| 4 examples, 2 failures |
|
|
285
|
+
| expected [1, 2, 3] to contain 1 and 4 |
|
|
286
|
+
| expected [1, 2, 3] not to contain 1 and 4 |
|
|
287
|
+
|
|
288
|
+
Scenario: use define_method to create a helper method with access to matcher params
|
|
289
|
+
Given a file named "define_method_spec.rb" with:
|
|
290
|
+
"""
|
|
291
|
+
RSpec::Matchers.define :be_a_multiple_of do |expected|
|
|
292
|
+
define_method :is_multiple? do |actual|
|
|
293
|
+
actual % expected == 0
|
|
294
|
+
end
|
|
295
|
+
match { |actual| is_multiple?(actual) }
|
|
296
|
+
end
|
|
297
|
+
|
|
298
|
+
describe 9 do
|
|
299
|
+
it { should be_a_multiple_of(3) }
|
|
300
|
+
it { should_not be_a_multiple_of(4) }
|
|
301
|
+
|
|
302
|
+
# deliberate failures
|
|
303
|
+
it { should be_a_multiple_of(2) }
|
|
304
|
+
it { should_not be_a_multiple_of(3) }
|
|
305
|
+
end
|
|
306
|
+
"""
|
|
307
|
+
When I run `rspec define_method_spec.rb`
|
|
308
|
+
Then the output should contain all of these:
|
|
309
|
+
| 4 examples, 2 failures |
|
|
310
|
+
| expected 9 to be a multiple of 2 |
|
|
311
|
+
| expected 9 not to be a multiple of 3 |
|
|
312
|
+
|
|
313
|
+
Scenario: include a module with helper methods in the matcher
|
|
314
|
+
Given a file named "include_module_spec.rb" with:
|
|
315
|
+
"""
|
|
316
|
+
module MatcherHelpers
|
|
317
|
+
def is_multiple?(actual, expected)
|
|
318
|
+
actual % expected == 0
|
|
319
|
+
end
|
|
320
|
+
end
|
|
321
|
+
|
|
322
|
+
RSpec::Matchers.define :be_a_multiple_of do |expected|
|
|
323
|
+
include MatcherHelpers
|
|
324
|
+
match { |actual| is_multiple?(actual, expected) }
|
|
325
|
+
end
|
|
326
|
+
|
|
327
|
+
describe 9 do
|
|
328
|
+
it { should be_a_multiple_of(3) }
|
|
329
|
+
it { should_not be_a_multiple_of(4) }
|
|
330
|
+
|
|
331
|
+
# deliberate failures
|
|
332
|
+
it { should be_a_multiple_of(2) }
|
|
333
|
+
it { should_not be_a_multiple_of(3) }
|
|
334
|
+
end
|
|
335
|
+
"""
|
|
336
|
+
When I run `rspec include_module_spec.rb`
|
|
337
|
+
Then the output should contain all of these:
|
|
338
|
+
| 4 examples, 2 failures |
|
|
339
|
+
| expected 9 to be a multiple of 2 |
|
|
340
|
+
| expected 9 not to be a multiple of 3 |
|