nutshell-crm 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- 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
@@ -0,0 +1,66 @@
|
|
1
|
+
require "spec_helper"
|
2
|
+
|
3
|
+
describe "deprecations" do
|
4
|
+
describe "Spec" do
|
5
|
+
it "is deprecated" do
|
6
|
+
RSpec.should_receive(:warn_deprecation).with(/Spec .* RSpec/i)
|
7
|
+
Spec
|
8
|
+
end
|
9
|
+
|
10
|
+
it "returns RSpec" do
|
11
|
+
RSpec.stub(:warn_deprecation)
|
12
|
+
Spec.should eq(RSpec)
|
13
|
+
end
|
14
|
+
|
15
|
+
it "doesn't include backward compatibility in const_missing backtrace" do
|
16
|
+
RSpec.stub(:warn_deprecation)
|
17
|
+
exception = nil
|
18
|
+
begin
|
19
|
+
ConstantThatDoesNotExist
|
20
|
+
rescue Exception => exception
|
21
|
+
end
|
22
|
+
exception.backtrace.find { |l| l =~ /lib\/rspec\/core\/backward_compatibility/ }.should be_nil
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
describe RSpec::Core::ExampleGroup do
|
27
|
+
describe 'running_example' do
|
28
|
+
it 'is deprecated' do
|
29
|
+
RSpec.should_receive(:warn_deprecation)
|
30
|
+
self.running_example
|
31
|
+
end
|
32
|
+
|
33
|
+
it "delegates to example" do
|
34
|
+
RSpec.stub(:warn_deprecation)
|
35
|
+
running_example.should eq(example)
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
describe "Spec::Runner.configure" do
|
41
|
+
it "is deprecated" do
|
42
|
+
RSpec.stub(:warn_deprecation)
|
43
|
+
RSpec.should_receive(:deprecate)
|
44
|
+
Spec::Runner.configure
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
describe "Spec::Rake::SpecTask" do
|
49
|
+
it "is deprecated" do
|
50
|
+
RSpec.stub(:warn_deprecation)
|
51
|
+
RSpec.should_receive(:deprecate)
|
52
|
+
Spec::Rake::SpecTask
|
53
|
+
end
|
54
|
+
|
55
|
+
it "doesn't include backward compatibility in const_missing backtrace" do
|
56
|
+
RSpec.stub(:warn_deprecation)
|
57
|
+
exception = nil
|
58
|
+
begin
|
59
|
+
Spec::Rake::ConstantThatDoesNotExist
|
60
|
+
rescue Exception => exception
|
61
|
+
end
|
62
|
+
exception.backtrace.find { |l| l =~ /lib\/rspec\/core\/backward_compatibility/ }.should be_nil
|
63
|
+
end
|
64
|
+
end
|
65
|
+
|
66
|
+
end
|
@@ -0,0 +1,124 @@
|
|
1
|
+
require "spec_helper"
|
2
|
+
|
3
|
+
describe "::DRbCommandLine", :type => :drb, :unless => RUBY_PLATFORM == 'java' do
|
4
|
+
let(:config) { RSpec::Core::Configuration.new }
|
5
|
+
let(:out) { StringIO.new }
|
6
|
+
let(:err) { StringIO.new }
|
7
|
+
|
8
|
+
include_context "spec files"
|
9
|
+
|
10
|
+
def command_line(args)
|
11
|
+
RSpec::Core::DRbCommandLine.new(config_options(args))
|
12
|
+
end
|
13
|
+
|
14
|
+
def config_options(argv=[])
|
15
|
+
options = RSpec::Core::ConfigurationOptions.new(argv)
|
16
|
+
options.parse_options
|
17
|
+
options
|
18
|
+
end
|
19
|
+
|
20
|
+
def run_with(args)
|
21
|
+
command_line(args).run(err, out)
|
22
|
+
end
|
23
|
+
|
24
|
+
context "without server running" do
|
25
|
+
it "raises an error" do
|
26
|
+
lambda { run_with [] }.should raise_error(DRb::DRbConnError)
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
describe "--drb-port" do
|
31
|
+
def with_RSPEC_DRB_set_to(val)
|
32
|
+
original = ENV['RSPEC_DRB']
|
33
|
+
ENV['RSPEC_DRB'] = val
|
34
|
+
begin
|
35
|
+
yield
|
36
|
+
ensure
|
37
|
+
ENV['RSPEC_DRB'] = original
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
context "without RSPEC_DRB environment variable set" do
|
42
|
+
it "defaults to 8989" do
|
43
|
+
with_RSPEC_DRB_set_to(nil) do
|
44
|
+
command_line([]).drb_port.should eq(8989)
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
it "sets the DRb port" do
|
49
|
+
with_RSPEC_DRB_set_to(nil) do
|
50
|
+
command_line(["--drb-port", "1234"]).drb_port.should eq(1234)
|
51
|
+
command_line(["--drb-port", "5678"]).drb_port.should eq(5678)
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
56
|
+
context "with RSPEC_DRB environment variable set" do
|
57
|
+
|
58
|
+
context "without config variable set" do
|
59
|
+
it "uses RSPEC_DRB value" do
|
60
|
+
with_RSPEC_DRB_set_to('9000') do
|
61
|
+
command_line([]).drb_port.should eq("9000")
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|
65
|
+
|
66
|
+
context "and config variable set" do
|
67
|
+
it "uses configured value" do
|
68
|
+
with_RSPEC_DRB_set_to('9000') do
|
69
|
+
command_line(%w[--drb-port 5678]).drb_port.should eq(5678)
|
70
|
+
end
|
71
|
+
end
|
72
|
+
end
|
73
|
+
end
|
74
|
+
end
|
75
|
+
|
76
|
+
context "with server running" do
|
77
|
+
class ::FakeDrbSpecServer
|
78
|
+
def self.run(argv, err, out)
|
79
|
+
options = RSpec::Core::ConfigurationOptions.new(argv)
|
80
|
+
options.parse_options
|
81
|
+
RSpec::Core::CommandLine.new(options, RSpec::Core::Configuration.new).run(err, out)
|
82
|
+
end
|
83
|
+
end
|
84
|
+
|
85
|
+
before(:all) do
|
86
|
+
@drb_port = 8990
|
87
|
+
@drb_example_file_counter = 0
|
88
|
+
DRb::start_service("druby://127.0.0.1:#{@drb_port}", ::FakeDrbSpecServer)
|
89
|
+
end
|
90
|
+
|
91
|
+
after(:all) do
|
92
|
+
DRb::stop_service
|
93
|
+
end
|
94
|
+
|
95
|
+
it "returns 0 if spec passes" do
|
96
|
+
err, out = StringIO.new, StringIO.new
|
97
|
+
result = command_line(["--drb-port", @drb_port.to_s, passing_spec_filename]).run(err, out)
|
98
|
+
result.should be(0)
|
99
|
+
end
|
100
|
+
|
101
|
+
it "returns 1 if spec passes" do
|
102
|
+
err, out = StringIO.new, StringIO.new
|
103
|
+
result = command_line(["--drb-port", @drb_port.to_s, failing_spec_filename]).run(err, out)
|
104
|
+
result.should be(1)
|
105
|
+
end
|
106
|
+
|
107
|
+
def run_spec_via_druby
|
108
|
+
run_with([failing_spec_filename, "--colour", "--drb-port", @drb_port.to_s])
|
109
|
+
out.rewind
|
110
|
+
out.read
|
111
|
+
end
|
112
|
+
|
113
|
+
it "outputs green colorized text when running with --colour option" do
|
114
|
+
pending "figure out a way to properly sandbox this"
|
115
|
+
run_spec_via_druby.should =~ /\e\[32m/m
|
116
|
+
end
|
117
|
+
|
118
|
+
it "outputs red colorized text when running with -c option" do
|
119
|
+
pending "figure out a way to properly sandbox this"
|
120
|
+
run_spec_via_druby.should =~ /\e\[31m/m
|
121
|
+
end
|
122
|
+
end
|
123
|
+
|
124
|
+
end
|
@@ -0,0 +1,1046 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
class SelfObserver
|
4
|
+
def self.cache
|
5
|
+
@cache ||= []
|
6
|
+
end
|
7
|
+
|
8
|
+
def initialize
|
9
|
+
self.class.cache << self
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
module RSpec::Core
|
14
|
+
|
15
|
+
describe ExampleGroup do
|
16
|
+
it_behaves_like "metadata hash builder" do
|
17
|
+
def metadata_hash(*args)
|
18
|
+
group = ExampleGroup.describe('example description', *args)
|
19
|
+
group.metadata
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
context 'when RSpec.configuration.treat_symbols_as_metadata_keys_with_true_values is set to false' do
|
24
|
+
before(:each) do
|
25
|
+
RSpec.configure { |c| c.treat_symbols_as_metadata_keys_with_true_values = false }
|
26
|
+
Kernel.stub(:warn)
|
27
|
+
end
|
28
|
+
|
29
|
+
it 'processes string args as part of the description' do
|
30
|
+
group = ExampleGroup.describe("some", "separate", "strings")
|
31
|
+
group.description.should eq("some separate strings")
|
32
|
+
end
|
33
|
+
|
34
|
+
it 'processes symbol args as part of the description' do
|
35
|
+
group = ExampleGroup.describe(:some, :separate, :symbols)
|
36
|
+
group.description.should eq("some separate symbols")
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
context 'when RSpec.configuration.treat_symbols_as_metadata_keys_with_true_values is set to true' do
|
41
|
+
let(:group) { ExampleGroup.describe(:symbol) }
|
42
|
+
before(:each) do
|
43
|
+
RSpec.configure { |c| c.treat_symbols_as_metadata_keys_with_true_values = true }
|
44
|
+
end
|
45
|
+
|
46
|
+
it 'does not treat the first argument as a metadata key even if it is a symbol' do
|
47
|
+
group.metadata.should_not include(:symbol)
|
48
|
+
end
|
49
|
+
|
50
|
+
it 'treats the first argument as part of the description when it is a symbol' do
|
51
|
+
group.description.should eq("symbol")
|
52
|
+
end
|
53
|
+
end
|
54
|
+
|
55
|
+
describe "top level group" do
|
56
|
+
it "runs its children" do
|
57
|
+
examples_run = []
|
58
|
+
group = ExampleGroup.describe("parent") do
|
59
|
+
describe("child") do
|
60
|
+
it "does something" do
|
61
|
+
examples_run << example
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|
65
|
+
|
66
|
+
group.run
|
67
|
+
examples_run.should have(1).example
|
68
|
+
end
|
69
|
+
|
70
|
+
context "with a failure in the top level group" do
|
71
|
+
it "runs its children " do
|
72
|
+
examples_run = []
|
73
|
+
group = ExampleGroup.describe("parent") do
|
74
|
+
it "fails" do
|
75
|
+
examples_run << example
|
76
|
+
raise "fail"
|
77
|
+
end
|
78
|
+
describe("child") do
|
79
|
+
it "does something" do
|
80
|
+
examples_run << example
|
81
|
+
end
|
82
|
+
end
|
83
|
+
end
|
84
|
+
|
85
|
+
group.run
|
86
|
+
examples_run.should have(2).examples
|
87
|
+
end
|
88
|
+
end
|
89
|
+
|
90
|
+
describe "descendants" do
|
91
|
+
it "returns self + all descendants" do
|
92
|
+
group = ExampleGroup.describe("parent") do
|
93
|
+
describe("child") do
|
94
|
+
describe("grandchild 1") {}
|
95
|
+
describe("grandchild 2") {}
|
96
|
+
end
|
97
|
+
end
|
98
|
+
group.descendants.size.should eq(4)
|
99
|
+
end
|
100
|
+
end
|
101
|
+
end
|
102
|
+
|
103
|
+
describe "child" do
|
104
|
+
it "is known by parent" do
|
105
|
+
parent = ExampleGroup.describe
|
106
|
+
child = parent.describe
|
107
|
+
parent.children.should eq([child])
|
108
|
+
end
|
109
|
+
|
110
|
+
it "is not registered in world" do
|
111
|
+
world = RSpec::Core::World.new
|
112
|
+
parent = ExampleGroup.describe
|
113
|
+
world.register(parent)
|
114
|
+
child = parent.describe
|
115
|
+
world.example_groups.should eq([parent])
|
116
|
+
end
|
117
|
+
end
|
118
|
+
|
119
|
+
describe "filtering" do
|
120
|
+
let(:world) { World.new }
|
121
|
+
|
122
|
+
shared_examples "matching filters" do
|
123
|
+
context "inclusion" do
|
124
|
+
before { world.stub(:inclusion_filter).and_return(filter_metadata) }
|
125
|
+
|
126
|
+
it "includes examples in groups matching filter" do
|
127
|
+
group = ExampleGroup.describe("does something", spec_metadata)
|
128
|
+
group.stub(:world) { world }
|
129
|
+
all_examples = [ group.example("first"), group.example("second") ]
|
130
|
+
|
131
|
+
group.filtered_examples.should eq(all_examples)
|
132
|
+
end
|
133
|
+
|
134
|
+
it "includes examples directly matching filter" do
|
135
|
+
group = ExampleGroup.describe("does something")
|
136
|
+
group.stub(:world) { world }
|
137
|
+
filtered_examples = [
|
138
|
+
group.example("first", spec_metadata),
|
139
|
+
group.example("second", spec_metadata)
|
140
|
+
]
|
141
|
+
group.example("third (not-filtered)")
|
142
|
+
|
143
|
+
group.filtered_examples.should eq(filtered_examples)
|
144
|
+
end
|
145
|
+
end
|
146
|
+
|
147
|
+
context "exclusion" do
|
148
|
+
before { world.stub(:exclusion_filter).and_return(filter_metadata) }
|
149
|
+
it "excludes examples in groups matching filter" do
|
150
|
+
group = ExampleGroup.describe("does something", spec_metadata)
|
151
|
+
group.stub(:world) { world }
|
152
|
+
all_examples = [ group.example("first"), group.example("second") ]
|
153
|
+
|
154
|
+
group.filtered_examples.should be_empty
|
155
|
+
end
|
156
|
+
|
157
|
+
it "excludes examples directly matching filter" do
|
158
|
+
group = ExampleGroup.describe("does something")
|
159
|
+
group.stub(:world) { world }
|
160
|
+
filtered_examples = [
|
161
|
+
group.example("first", spec_metadata),
|
162
|
+
group.example("second", spec_metadata)
|
163
|
+
]
|
164
|
+
unfiltered_example = group.example("third (not-filtered)")
|
165
|
+
|
166
|
+
group.filtered_examples.should eq([unfiltered_example])
|
167
|
+
end
|
168
|
+
end
|
169
|
+
end
|
170
|
+
|
171
|
+
context "matching false" do
|
172
|
+
let(:spec_metadata) { { :awesome => false }}
|
173
|
+
|
174
|
+
context "against false" do
|
175
|
+
let(:filter_metadata) { { :awesome => false }}
|
176
|
+
include_examples "matching filters"
|
177
|
+
end
|
178
|
+
|
179
|
+
context "against 'false'" do
|
180
|
+
let(:filter_metadata) { { :awesome => 'false' }}
|
181
|
+
include_examples "matching filters"
|
182
|
+
end
|
183
|
+
|
184
|
+
context "against :false" do
|
185
|
+
let(:filter_metadata) { { :awesome => :false }}
|
186
|
+
include_examples "matching filters"
|
187
|
+
end
|
188
|
+
end
|
189
|
+
|
190
|
+
context "matching true" do
|
191
|
+
let(:spec_metadata) { { :awesome => true }}
|
192
|
+
|
193
|
+
context "against true" do
|
194
|
+
let(:filter_metadata) { { :awesome => true }}
|
195
|
+
include_examples "matching filters"
|
196
|
+
end
|
197
|
+
|
198
|
+
context "against 'true'" do
|
199
|
+
let(:filter_metadata) { { :awesome => 'true' }}
|
200
|
+
include_examples "matching filters"
|
201
|
+
end
|
202
|
+
|
203
|
+
context "against :true" do
|
204
|
+
let(:filter_metadata) { { :awesome => :true }}
|
205
|
+
include_examples "matching filters"
|
206
|
+
end
|
207
|
+
end
|
208
|
+
|
209
|
+
context "matching a string" do
|
210
|
+
let(:spec_metadata) { { :type => 'special' }}
|
211
|
+
|
212
|
+
context "against a string" do
|
213
|
+
let(:filter_metadata) { { :type => 'special' }}
|
214
|
+
include_examples "matching filters"
|
215
|
+
end
|
216
|
+
|
217
|
+
context "against a symbol" do
|
218
|
+
let(:filter_metadata) { { :type => :special }}
|
219
|
+
include_examples "matching filters"
|
220
|
+
end
|
221
|
+
end
|
222
|
+
|
223
|
+
context "matching a symbol" do
|
224
|
+
let(:spec_metadata) { { :type => :special }}
|
225
|
+
|
226
|
+
context "against a string" do
|
227
|
+
let(:filter_metadata) { { :type => 'special' }}
|
228
|
+
include_examples "matching filters"
|
229
|
+
end
|
230
|
+
|
231
|
+
context "against a symbol" do
|
232
|
+
let(:filter_metadata) { { :type => :special }}
|
233
|
+
include_examples "matching filters"
|
234
|
+
end
|
235
|
+
end
|
236
|
+
|
237
|
+
context "with no filters" do
|
238
|
+
it "returns all" do
|
239
|
+
group = ExampleGroup.describe
|
240
|
+
group.stub(:world) { world }
|
241
|
+
example = group.example("does something")
|
242
|
+
group.filtered_examples.should eq([example])
|
243
|
+
end
|
244
|
+
end
|
245
|
+
|
246
|
+
context "with no examples or groups that match filters" do
|
247
|
+
it "returns none" do
|
248
|
+
world.stub(:inclusion_filter).and_return({ :awesome => false })
|
249
|
+
group = ExampleGroup.describe
|
250
|
+
group.stub(:world) { world }
|
251
|
+
example = group.example("does something")
|
252
|
+
group.filtered_examples.should eq([])
|
253
|
+
end
|
254
|
+
end
|
255
|
+
end
|
256
|
+
|
257
|
+
describe '#describes' do
|
258
|
+
|
259
|
+
context "with a constant as the first parameter" do
|
260
|
+
it "is that constant" do
|
261
|
+
ExampleGroup.describe(Object) { }.describes.should eq(Object)
|
262
|
+
end
|
263
|
+
end
|
264
|
+
|
265
|
+
context "with a string as the first parameter" do
|
266
|
+
it "is nil" do
|
267
|
+
ExampleGroup.describe("i'm a computer") { }.describes.should be_nil
|
268
|
+
end
|
269
|
+
end
|
270
|
+
|
271
|
+
context "with a constant in an outer group" do
|
272
|
+
context "and a string in an inner group" do
|
273
|
+
it "is the top level constant" do
|
274
|
+
group = ExampleGroup.describe(String) do
|
275
|
+
describe :symbol do
|
276
|
+
example "describes is String" do
|
277
|
+
described_class.should eq(String)
|
278
|
+
end
|
279
|
+
end
|
280
|
+
end
|
281
|
+
|
282
|
+
group.run.should be_true
|
283
|
+
end
|
284
|
+
end
|
285
|
+
end
|
286
|
+
|
287
|
+
context "in a nested group" do
|
288
|
+
it "inherits the described class/module from the outer group" do
|
289
|
+
group = ExampleGroup.describe(String) do
|
290
|
+
describe Array do
|
291
|
+
example "desribes is String" do
|
292
|
+
described_class.should eq(String)
|
293
|
+
end
|
294
|
+
end
|
295
|
+
end
|
296
|
+
|
297
|
+
group.run.should be_true, "expected examples in group to pass"
|
298
|
+
end
|
299
|
+
end
|
300
|
+
end
|
301
|
+
|
302
|
+
describe '#described_class' do
|
303
|
+
it "is the same as describes" do
|
304
|
+
self.class.described_class.should eq(self.class.describes)
|
305
|
+
end
|
306
|
+
end
|
307
|
+
|
308
|
+
describe '#description' do
|
309
|
+
it "grabs the description from the metadata" do
|
310
|
+
group = ExampleGroup.describe(Object, "my desc") { }
|
311
|
+
group.description.should eq(group.metadata[:example_group][:description])
|
312
|
+
end
|
313
|
+
end
|
314
|
+
|
315
|
+
describe '#metadata' do
|
316
|
+
it "adds the third parameter to the metadata" do
|
317
|
+
ExampleGroup.describe(Object, nil, 'foo' => 'bar') { }.metadata.should include({ "foo" => 'bar' })
|
318
|
+
end
|
319
|
+
|
320
|
+
it "adds the the file_path to metadata" do
|
321
|
+
ExampleGroup.describe(Object) { }.metadata[:example_group][:file_path].should eq(__FILE__)
|
322
|
+
end
|
323
|
+
|
324
|
+
it "has a reader for file_path" do
|
325
|
+
ExampleGroup.describe(Object) { }.file_path.should eq(__FILE__)
|
326
|
+
end
|
327
|
+
|
328
|
+
it "adds the line_number to metadata" do
|
329
|
+
ExampleGroup.describe(Object) { }.metadata[:example_group][:line_number].should eq(__LINE__)
|
330
|
+
end
|
331
|
+
end
|
332
|
+
|
333
|
+
[:focus, :focused].each do |example_alias|
|
334
|
+
describe "##{example_alias}" do
|
335
|
+
let(:group) { ExampleGroup.describe }
|
336
|
+
subject { group.send example_alias, "a focused example" }
|
337
|
+
|
338
|
+
it 'defines an example that can be filtered with :focused => true' do
|
339
|
+
subject.metadata.should include(:focused => true)
|
340
|
+
end
|
341
|
+
|
342
|
+
it 'defines an example that can be filtered with :focus => true' do
|
343
|
+
subject.metadata.should include(:focus => true)
|
344
|
+
end
|
345
|
+
end
|
346
|
+
end
|
347
|
+
|
348
|
+
describe "#before, after, and around hooks" do
|
349
|
+
it "runs the before alls in order" do
|
350
|
+
group = ExampleGroup.describe
|
351
|
+
order = []
|
352
|
+
group.before(:all) { order << 1 }
|
353
|
+
group.before(:all) { order << 2 }
|
354
|
+
group.before(:all) { order << 3 }
|
355
|
+
group.example("example") {}
|
356
|
+
|
357
|
+
group.run
|
358
|
+
|
359
|
+
order.should eq([1,2,3])
|
360
|
+
end
|
361
|
+
|
362
|
+
it "runs the before eachs in order" do
|
363
|
+
group = ExampleGroup.describe
|
364
|
+
order = []
|
365
|
+
group.before(:each) { order << 1 }
|
366
|
+
group.before(:each) { order << 2 }
|
367
|
+
group.before(:each) { order << 3 }
|
368
|
+
group.example("example") {}
|
369
|
+
|
370
|
+
group.run
|
371
|
+
|
372
|
+
order.should eq([1,2,3])
|
373
|
+
end
|
374
|
+
|
375
|
+
it "runs the after eachs in reverse order" do
|
376
|
+
group = ExampleGroup.describe
|
377
|
+
order = []
|
378
|
+
group.after(:each) { order << 1 }
|
379
|
+
group.after(:each) { order << 2 }
|
380
|
+
group.after(:each) { order << 3 }
|
381
|
+
group.example("example") {}
|
382
|
+
|
383
|
+
group.run
|
384
|
+
|
385
|
+
order.should eq([3,2,1])
|
386
|
+
end
|
387
|
+
|
388
|
+
it "runs the after alls in reverse order" do
|
389
|
+
group = ExampleGroup.describe
|
390
|
+
order = []
|
391
|
+
group.after(:all) { order << 1 }
|
392
|
+
group.after(:all) { order << 2 }
|
393
|
+
group.after(:all) { order << 3 }
|
394
|
+
group.example("example") {}
|
395
|
+
|
396
|
+
group.run
|
397
|
+
|
398
|
+
order.should eq([3,2,1])
|
399
|
+
end
|
400
|
+
|
401
|
+
it "only runs before/after(:all) hooks from example groups that have specs that run" do
|
402
|
+
hooks_run = []
|
403
|
+
|
404
|
+
RSpec.configure do |c|
|
405
|
+
c.filter_run :focus => true
|
406
|
+
end
|
407
|
+
|
408
|
+
unfiltered_group = ExampleGroup.describe "unfiltered" do
|
409
|
+
before(:all) { hooks_run << :unfiltered_before_all }
|
410
|
+
after(:all) { hooks_run << :unfiltered_after_all }
|
411
|
+
|
412
|
+
context "a subcontext" do
|
413
|
+
it("has an example") { }
|
414
|
+
end
|
415
|
+
end
|
416
|
+
|
417
|
+
filtered_group = ExampleGroup.describe "filtered", :focus => true do
|
418
|
+
before(:all) { hooks_run << :filtered_before_all }
|
419
|
+
after(:all) { hooks_run << :filtered_after_all }
|
420
|
+
|
421
|
+
context "a subcontext" do
|
422
|
+
it("has an example") { }
|
423
|
+
end
|
424
|
+
end
|
425
|
+
|
426
|
+
unfiltered_group.run
|
427
|
+
filtered_group.run
|
428
|
+
|
429
|
+
hooks_run.should eq([:filtered_before_all, :filtered_after_all])
|
430
|
+
end
|
431
|
+
|
432
|
+
it "runs before_all_defined_in_config, before all, before each, example, after each, after all, after_all_defined_in_config in that order" do
|
433
|
+
order = []
|
434
|
+
|
435
|
+
RSpec.configure do |c|
|
436
|
+
c.before(:all) { order << :before_all_defined_in_config }
|
437
|
+
c.after(:all) { order << :after_all_defined_in_config }
|
438
|
+
end
|
439
|
+
|
440
|
+
group = ExampleGroup.describe
|
441
|
+
group.before(:all) { order << :top_level_before_all }
|
442
|
+
group.before(:each) { order << :before_each }
|
443
|
+
group.after(:each) { order << :after_each }
|
444
|
+
group.after(:all) { order << :top_level_after_all }
|
445
|
+
group.example("top level example") { order << :top_level_example }
|
446
|
+
|
447
|
+
context1 = group.describe("context 1")
|
448
|
+
context1.before(:all) { order << :nested_before_all }
|
449
|
+
context1.example("nested example 1") { order << :nested_example_1 }
|
450
|
+
|
451
|
+
context2 = group.describe("context 2")
|
452
|
+
context2.after(:all) { order << :nested_after_all }
|
453
|
+
context2.example("nested example 2") { order << :nested_example_2 }
|
454
|
+
|
455
|
+
group.run
|
456
|
+
|
457
|
+
order.should eq([
|
458
|
+
:before_all_defined_in_config,
|
459
|
+
:top_level_before_all,
|
460
|
+
:before_each,
|
461
|
+
:top_level_example,
|
462
|
+
:after_each,
|
463
|
+
:nested_before_all,
|
464
|
+
:before_each,
|
465
|
+
:nested_example_1,
|
466
|
+
:after_each,
|
467
|
+
:before_each,
|
468
|
+
:nested_example_2,
|
469
|
+
:after_each,
|
470
|
+
:nested_after_all,
|
471
|
+
:top_level_after_all,
|
472
|
+
:after_all_defined_in_config
|
473
|
+
])
|
474
|
+
end
|
475
|
+
|
476
|
+
context "after(:all)" do
|
477
|
+
let(:outer) { ExampleGroup.describe }
|
478
|
+
let(:inner) { outer.describe }
|
479
|
+
|
480
|
+
it "has access to state defined before(:all)" do
|
481
|
+
outer.before(:all) { @outer = "outer" }
|
482
|
+
inner.before(:all) { @inner = "inner" }
|
483
|
+
|
484
|
+
outer.after(:all) do
|
485
|
+
@outer.should eq("outer")
|
486
|
+
@inner.should eq("inner")
|
487
|
+
end
|
488
|
+
inner.after(:all) do
|
489
|
+
@inner.should eq("inner")
|
490
|
+
@outer.should eq("outer")
|
491
|
+
end
|
492
|
+
|
493
|
+
outer.run
|
494
|
+
end
|
495
|
+
|
496
|
+
it "cleans up ivars in after(:all)" do
|
497
|
+
outer.before(:all) { @outer = "outer" }
|
498
|
+
inner.before(:all) { @inner = "inner" }
|
499
|
+
|
500
|
+
outer.run
|
501
|
+
|
502
|
+
inner.before_all_ivars[:@inner].should be_nil
|
503
|
+
inner.before_all_ivars[:@outer].should be_nil
|
504
|
+
outer.before_all_ivars[:@inner].should be_nil
|
505
|
+
outer.before_all_ivars[:@outer].should be_nil
|
506
|
+
end
|
507
|
+
end
|
508
|
+
|
509
|
+
it "treats an error in before(:each) as a failure" do
|
510
|
+
group = ExampleGroup.describe
|
511
|
+
group.before(:each) { raise "error in before each" }
|
512
|
+
example = group.example("equality") { 1.should eq(2) }
|
513
|
+
group.run.should be(false)
|
514
|
+
|
515
|
+
example.metadata[:execution_result][:exception].message.should eq("error in before each")
|
516
|
+
end
|
517
|
+
|
518
|
+
it "treats an error in before(:all) as a failure" do
|
519
|
+
group = ExampleGroup.describe
|
520
|
+
group.before(:all) { raise "error in before all" }
|
521
|
+
example = group.example("equality") { 1.should eq(2) }
|
522
|
+
group.run.should be_false
|
523
|
+
|
524
|
+
example.metadata.should_not be_nil
|
525
|
+
example.metadata[:execution_result].should_not be_nil
|
526
|
+
example.metadata[:execution_result][:exception].should_not be_nil
|
527
|
+
example.metadata[:execution_result][:exception].message.should eq("error in before all")
|
528
|
+
end
|
529
|
+
|
530
|
+
it "treats an error in before(:all) as a failure for a spec in a nested group" do
|
531
|
+
example = nil
|
532
|
+
group = ExampleGroup.describe do
|
533
|
+
before(:all) { raise "error in before all" }
|
534
|
+
|
535
|
+
describe "nested" do
|
536
|
+
example = it("equality") { 1.should eq(2) }
|
537
|
+
end
|
538
|
+
end
|
539
|
+
group.run
|
540
|
+
|
541
|
+
example.metadata.should_not be_nil
|
542
|
+
example.metadata[:execution_result].should_not be_nil
|
543
|
+
example.metadata[:execution_result][:exception].should_not be_nil
|
544
|
+
example.metadata[:execution_result][:exception].message.should eq("error in before all")
|
545
|
+
end
|
546
|
+
|
547
|
+
context "when an error occurs in an after(:all) hook" do
|
548
|
+
before(:each) do
|
549
|
+
RSpec.configuration.reporter.stub(:message)
|
550
|
+
end
|
551
|
+
|
552
|
+
let(:group) do
|
553
|
+
ExampleGroup.describe do
|
554
|
+
after(:all) { raise "error in after all" }
|
555
|
+
it("equality") { 1.should eq(1) }
|
556
|
+
end
|
557
|
+
end
|
558
|
+
|
559
|
+
it "allows the example to pass" do
|
560
|
+
group.run
|
561
|
+
example = group.examples.first
|
562
|
+
example.metadata.should_not be_nil
|
563
|
+
example.metadata[:execution_result].should_not be_nil
|
564
|
+
example.metadata[:execution_result][:status].should eq("passed")
|
565
|
+
end
|
566
|
+
|
567
|
+
it "rescues the error and prints it out" do
|
568
|
+
RSpec.configuration.reporter.should_receive(:message).with(/error in after all/)
|
569
|
+
group.run
|
570
|
+
end
|
571
|
+
end
|
572
|
+
|
573
|
+
it "has no 'running example' within before(:all)" do
|
574
|
+
group = ExampleGroup.describe
|
575
|
+
running_example = :none
|
576
|
+
group.before(:all) { running_example = example }
|
577
|
+
group.example("no-op") { }
|
578
|
+
group.run
|
579
|
+
running_example.should be(nil)
|
580
|
+
end
|
581
|
+
|
582
|
+
it "has access to example options within before(:each)" do
|
583
|
+
group = ExampleGroup.describe
|
584
|
+
option = nil
|
585
|
+
group.before(:each) { option = example.options[:data] }
|
586
|
+
group.example("no-op", :data => :sample) { }
|
587
|
+
group.run
|
588
|
+
option.should eq(:sample)
|
589
|
+
end
|
590
|
+
|
591
|
+
it "has access to example options within after(:each)" do
|
592
|
+
group = ExampleGroup.describe
|
593
|
+
option = nil
|
594
|
+
group.after(:each) { option = example.options[:data] }
|
595
|
+
group.example("no-op", :data => :sample) { }
|
596
|
+
group.run
|
597
|
+
option.should eq(:sample)
|
598
|
+
end
|
599
|
+
|
600
|
+
it "has no 'running example' within after(:all)" do
|
601
|
+
group = ExampleGroup.describe
|
602
|
+
running_example = :none
|
603
|
+
group.after(:all) { running_example = example }
|
604
|
+
group.example("no-op") { }
|
605
|
+
group.run
|
606
|
+
running_example.should be(nil)
|
607
|
+
end
|
608
|
+
end
|
609
|
+
|
610
|
+
matcher :add_a_pending_example_with do |method_name|
|
611
|
+
match do |group|
|
612
|
+
group = ExampleGroup.describe
|
613
|
+
group.send(method_name, "is pending") { }
|
614
|
+
group.run
|
615
|
+
group.examples.first.should be_pending
|
616
|
+
end
|
617
|
+
end
|
618
|
+
|
619
|
+
%w[pending xit xspecify xexample].each do |method_name|
|
620
|
+
describe "##{method_name}" do
|
621
|
+
it "generates a pending example" do
|
622
|
+
ExampleGroup.describe.should add_a_pending_example_with(method_name)
|
623
|
+
end
|
624
|
+
end
|
625
|
+
end
|
626
|
+
|
627
|
+
describe "adding examples" do
|
628
|
+
|
629
|
+
it "allows adding an example using 'it'" do
|
630
|
+
group = ExampleGroup.describe
|
631
|
+
group.it("should do something") { }
|
632
|
+
group.examples.size.should eq(1)
|
633
|
+
end
|
634
|
+
|
635
|
+
it "exposes all examples at examples" do
|
636
|
+
group = ExampleGroup.describe
|
637
|
+
group.it("should do something 1") { }
|
638
|
+
group.it("should do something 2") { }
|
639
|
+
group.it("should do something 3") { }
|
640
|
+
group.should have(3).examples
|
641
|
+
end
|
642
|
+
|
643
|
+
it "maintains the example order" do
|
644
|
+
group = ExampleGroup.describe
|
645
|
+
group.it("should 1") { }
|
646
|
+
group.it("should 2") { }
|
647
|
+
group.it("should 3") { }
|
648
|
+
group.examples[0].description.should eq('should 1')
|
649
|
+
group.examples[1].description.should eq('should 2')
|
650
|
+
group.examples[2].description.should eq('should 3')
|
651
|
+
end
|
652
|
+
|
653
|
+
end
|
654
|
+
|
655
|
+
describe Object, "describing nested example_groups", :little_less_nested => 'yep' do
|
656
|
+
|
657
|
+
describe "A sample nested group", :nested_describe => "yep" do
|
658
|
+
it "sets the described class to the described class of the outer most group" do
|
659
|
+
example.example_group.describes.should eq(ExampleGroup)
|
660
|
+
end
|
661
|
+
|
662
|
+
it "sets the description to 'A sample nested describe'" do
|
663
|
+
example.example_group.description.should eq('A sample nested group')
|
664
|
+
end
|
665
|
+
|
666
|
+
it "has top level metadata from the example_group and its ancestors" do
|
667
|
+
example.example_group.metadata.should include(:little_less_nested => 'yep', :nested_describe => 'yep')
|
668
|
+
end
|
669
|
+
|
670
|
+
it "exposes the parent metadata to the contained examples" do
|
671
|
+
example.metadata.should include(:little_less_nested => 'yep', :nested_describe => 'yep')
|
672
|
+
end
|
673
|
+
end
|
674
|
+
|
675
|
+
end
|
676
|
+
|
677
|
+
describe "#run_examples" do
|
678
|
+
|
679
|
+
let(:reporter) { double("reporter").as_null_object }
|
680
|
+
|
681
|
+
it "returns true if all examples pass" do
|
682
|
+
group = ExampleGroup.describe('group') do
|
683
|
+
example('ex 1') { 1.should eq(1) }
|
684
|
+
example('ex 2') { 1.should eq(1) }
|
685
|
+
end
|
686
|
+
group.stub(:filtered_examples) { group.examples }
|
687
|
+
group.run(reporter).should be_true
|
688
|
+
end
|
689
|
+
|
690
|
+
it "returns false if any of the examples fail" do
|
691
|
+
group = ExampleGroup.describe('group') do
|
692
|
+
example('ex 1') { 1.should eq(1) }
|
693
|
+
example('ex 2') { 1.should eq(2) }
|
694
|
+
end
|
695
|
+
group.stub(:filtered_examples) { group.examples }
|
696
|
+
group.run(reporter).should be_false
|
697
|
+
end
|
698
|
+
|
699
|
+
it "runs all examples, regardless of any of them failing" do
|
700
|
+
group = ExampleGroup.describe('group') do
|
701
|
+
example('ex 1') { 1.should eq(2) }
|
702
|
+
example('ex 2') { 1.should eq(1) }
|
703
|
+
end
|
704
|
+
group.stub(:filtered_examples) { group.examples }
|
705
|
+
group.filtered_examples.each do |example|
|
706
|
+
example.should_receive(:run)
|
707
|
+
end
|
708
|
+
group.run(reporter).should be_false
|
709
|
+
end
|
710
|
+
end
|
711
|
+
|
712
|
+
describe "how instance variables are inherited" do
|
713
|
+
before(:all) do
|
714
|
+
@before_all_top_level = 'before_all_top_level'
|
715
|
+
end
|
716
|
+
|
717
|
+
before(:each) do
|
718
|
+
@before_each_top_level = 'before_each_top_level'
|
719
|
+
end
|
720
|
+
|
721
|
+
it "can access a before each ivar at the same level" do
|
722
|
+
@before_each_top_level.should eq('before_each_top_level')
|
723
|
+
end
|
724
|
+
|
725
|
+
it "can access a before all ivar at the same level" do
|
726
|
+
@before_all_top_level.should eq('before_all_top_level')
|
727
|
+
end
|
728
|
+
|
729
|
+
it "can access the before all ivars in the before_all_ivars hash", :ruby => 1.8 do
|
730
|
+
example.example_group.before_all_ivars.should include('@before_all_top_level' => 'before_all_top_level')
|
731
|
+
end
|
732
|
+
|
733
|
+
it "can access the before all ivars in the before_all_ivars hash", :ruby => 1.9 do
|
734
|
+
example.example_group.before_all_ivars.should include(:@before_all_top_level => 'before_all_top_level')
|
735
|
+
end
|
736
|
+
|
737
|
+
describe "but now I am nested" do
|
738
|
+
it "can access a parent example groups before each ivar at a nested level" do
|
739
|
+
@before_each_top_level.should eq('before_each_top_level')
|
740
|
+
end
|
741
|
+
|
742
|
+
it "can access a parent example groups before all ivar at a nested level" do
|
743
|
+
@before_all_top_level.should eq("before_all_top_level")
|
744
|
+
end
|
745
|
+
|
746
|
+
it "changes to before all ivars from within an example do not persist outside the current describe" do
|
747
|
+
@before_all_top_level = "ive been changed"
|
748
|
+
end
|
749
|
+
|
750
|
+
describe "accessing a before_all ivar that was changed in a parent example_group" do
|
751
|
+
it "does not have access to the modified version" do
|
752
|
+
@before_all_top_level.should eq('before_all_top_level')
|
753
|
+
end
|
754
|
+
end
|
755
|
+
end
|
756
|
+
|
757
|
+
end
|
758
|
+
|
759
|
+
describe "ivars are not shared across examples" do
|
760
|
+
it "(first example)" do
|
761
|
+
@a = 1
|
762
|
+
defined?(@b).should be_false
|
763
|
+
end
|
764
|
+
|
765
|
+
it "(second example)" do
|
766
|
+
@b = 2
|
767
|
+
defined?(@a).should be_false
|
768
|
+
end
|
769
|
+
end
|
770
|
+
|
771
|
+
|
772
|
+
describe "#top_level_description" do
|
773
|
+
it "returns the description from the outermost example group" do
|
774
|
+
group = nil
|
775
|
+
ExampleGroup.describe("top") do
|
776
|
+
context "middle" do
|
777
|
+
group = describe "bottom" do
|
778
|
+
end
|
779
|
+
end
|
780
|
+
end
|
781
|
+
|
782
|
+
group.top_level_description.should eq("top")
|
783
|
+
end
|
784
|
+
end
|
785
|
+
|
786
|
+
describe "#run" do
|
787
|
+
let(:reporter) { double("reporter").as_null_object }
|
788
|
+
|
789
|
+
context "with fail_fast? => true" do
|
790
|
+
it "does not run examples after the failed example" do
|
791
|
+
group = RSpec::Core::ExampleGroup.describe
|
792
|
+
group.stub(:fail_fast?) { true }
|
793
|
+
examples_run = []
|
794
|
+
group.example('example 1') { examples_run << self }
|
795
|
+
group.example('example 2') { examples_run << self; fail; }
|
796
|
+
group.example('example 3') { examples_run << self }
|
797
|
+
|
798
|
+
group.run
|
799
|
+
|
800
|
+
examples_run.length.should eq(2)
|
801
|
+
end
|
802
|
+
end
|
803
|
+
|
804
|
+
context "with RSpec.wants_to_quit=true" do
|
805
|
+
let(:group) { RSpec::Core::ExampleGroup.describe }
|
806
|
+
|
807
|
+
before do
|
808
|
+
RSpec.stub(:wants_to_quit) { true }
|
809
|
+
RSpec.stub(:clear_remaining_example_groups)
|
810
|
+
end
|
811
|
+
|
812
|
+
it "returns without starting the group" do
|
813
|
+
reporter.should_not_receive(:example_group_started)
|
814
|
+
group.run(reporter)
|
815
|
+
end
|
816
|
+
|
817
|
+
context "at top level" do
|
818
|
+
it "purges remaining groups" do
|
819
|
+
RSpec.should_receive(:clear_remaining_example_groups)
|
820
|
+
group.run(reporter)
|
821
|
+
end
|
822
|
+
end
|
823
|
+
|
824
|
+
context "in a nested group" do
|
825
|
+
it "does not purge remaining groups" do
|
826
|
+
nested_group = group.describe
|
827
|
+
RSpec.should_not_receive(:clear_remaining_example_groups)
|
828
|
+
nested_group.run(reporter)
|
829
|
+
end
|
830
|
+
end
|
831
|
+
end
|
832
|
+
|
833
|
+
context "with all examples passing" do
|
834
|
+
it "returns true" do
|
835
|
+
group = describe("something") do
|
836
|
+
it "does something" do
|
837
|
+
# pass
|
838
|
+
end
|
839
|
+
describe "nested" do
|
840
|
+
it "does something else" do
|
841
|
+
# pass
|
842
|
+
end
|
843
|
+
end
|
844
|
+
end
|
845
|
+
|
846
|
+
group.run(reporter).should be_true
|
847
|
+
end
|
848
|
+
end
|
849
|
+
|
850
|
+
context "with top level example failing" do
|
851
|
+
it "returns false" do
|
852
|
+
group = describe("something") do
|
853
|
+
it "does something (wrong - fail)" do
|
854
|
+
raise "fail"
|
855
|
+
end
|
856
|
+
describe "nested" do
|
857
|
+
it "does something else" do
|
858
|
+
# pass
|
859
|
+
end
|
860
|
+
end
|
861
|
+
end
|
862
|
+
|
863
|
+
group.run(reporter).should be_false
|
864
|
+
end
|
865
|
+
end
|
866
|
+
|
867
|
+
context "with nested example failing" do
|
868
|
+
it "returns true" do
|
869
|
+
group = describe("something") do
|
870
|
+
it "does something" do
|
871
|
+
# pass
|
872
|
+
end
|
873
|
+
describe "nested" do
|
874
|
+
it "does something else (wrong -fail)" do
|
875
|
+
raise "fail"
|
876
|
+
end
|
877
|
+
end
|
878
|
+
end
|
879
|
+
|
880
|
+
group.run(reporter).should be_false
|
881
|
+
end
|
882
|
+
end
|
883
|
+
end
|
884
|
+
|
885
|
+
describe "#include_context" do
|
886
|
+
before do
|
887
|
+
shared_context "named this" do
|
888
|
+
def foo; 'foo'; end
|
889
|
+
end
|
890
|
+
end
|
891
|
+
|
892
|
+
it "includes the named context" do
|
893
|
+
group = ExampleGroup.describe do
|
894
|
+
include_context "named this"
|
895
|
+
it "accesses foo" do
|
896
|
+
foo.should eq('foo')
|
897
|
+
end
|
898
|
+
end
|
899
|
+
group.run.should be_true
|
900
|
+
end
|
901
|
+
|
902
|
+
it "raises a helpful error message when shared context is not found" do
|
903
|
+
expect do
|
904
|
+
ExampleGroup.describe do
|
905
|
+
include_context "shared stuff"
|
906
|
+
end
|
907
|
+
end.to raise_error(ArgumentError,%q|Could not find shared context "shared stuff"|)
|
908
|
+
end
|
909
|
+
|
910
|
+
end
|
911
|
+
|
912
|
+
describe "#include_examples" do
|
913
|
+
before do
|
914
|
+
shared_examples "named this" do
|
915
|
+
example("does something") do
|
916
|
+
end
|
917
|
+
end
|
918
|
+
end
|
919
|
+
|
920
|
+
it "includes the named examples" do
|
921
|
+
group = ExampleGroup.describe do
|
922
|
+
include_examples "named this"
|
923
|
+
end
|
924
|
+
group.examples.first.description.should eq("does something")
|
925
|
+
end
|
926
|
+
|
927
|
+
it "raises a helpful error message when shared context is not found" do
|
928
|
+
expect do
|
929
|
+
ExampleGroup.describe do
|
930
|
+
include_examples "shared stuff"
|
931
|
+
end
|
932
|
+
end.to raise_error(ArgumentError,%q|Could not find shared examples "shared stuff"|)
|
933
|
+
end
|
934
|
+
end
|
935
|
+
|
936
|
+
describe "#it_should_behave_like" do
|
937
|
+
it "creates a nested group" do
|
938
|
+
shared_examples_for("thing") {}
|
939
|
+
group = ExampleGroup.describe('fake group')
|
940
|
+
group.it_should_behave_like("thing")
|
941
|
+
group.should have(1).children
|
942
|
+
end
|
943
|
+
|
944
|
+
it "creates a nested group for a class" do
|
945
|
+
klass = Class.new
|
946
|
+
shared_examples_for(klass) {}
|
947
|
+
group = ExampleGroup.describe('fake group')
|
948
|
+
group.it_should_behave_like(klass)
|
949
|
+
group.should have(1).children
|
950
|
+
end
|
951
|
+
|
952
|
+
it "adds shared examples to nested group" do
|
953
|
+
shared_examples_for("thing") do
|
954
|
+
it("does something")
|
955
|
+
end
|
956
|
+
group = ExampleGroup.describe('fake group')
|
957
|
+
shared_group = group.it_should_behave_like("thing")
|
958
|
+
shared_group.should have(1).examples
|
959
|
+
end
|
960
|
+
|
961
|
+
it "adds shared instance methods to nested group" do
|
962
|
+
shared_examples_for("thing") do
|
963
|
+
def foo; end
|
964
|
+
end
|
965
|
+
group = ExampleGroup.describe('fake group')
|
966
|
+
shared_group = group.it_should_behave_like("thing")
|
967
|
+
shared_group.public_instance_methods.map{|m| m.to_s}.should include("foo")
|
968
|
+
end
|
969
|
+
|
970
|
+
it "adds shared class methods to nested group" do
|
971
|
+
shared_examples_for("thing") do
|
972
|
+
def self.foo; end
|
973
|
+
end
|
974
|
+
group = ExampleGroup.describe('fake group')
|
975
|
+
shared_group = group.it_should_behave_like("thing")
|
976
|
+
shared_group.methods.map{|m| m.to_s}.should include("foo")
|
977
|
+
end
|
978
|
+
|
979
|
+
context "given some parameters" do
|
980
|
+
it "passes the parameters to the shared example group" do
|
981
|
+
passed_params = {}
|
982
|
+
|
983
|
+
shared_examples_for("thing") do |param1, param2|
|
984
|
+
it("has access to the given parameters") do
|
985
|
+
passed_params[:param1] = param1
|
986
|
+
passed_params[:param2] = param2
|
987
|
+
end
|
988
|
+
end
|
989
|
+
|
990
|
+
group = ExampleGroup.describe("group") do
|
991
|
+
it_should_behave_like "thing", :value1, :value2
|
992
|
+
end
|
993
|
+
group.run
|
994
|
+
|
995
|
+
passed_params.should eq({ :param1 => :value1, :param2 => :value2 })
|
996
|
+
end
|
997
|
+
|
998
|
+
it "adds shared instance methods to nested group" do
|
999
|
+
shared_examples_for("thing") do |param1|
|
1000
|
+
def foo; end
|
1001
|
+
end
|
1002
|
+
group = ExampleGroup.describe('fake group')
|
1003
|
+
shared_group = group.it_should_behave_like("thing", :a)
|
1004
|
+
shared_group.public_instance_methods.map{|m| m.to_s}.should include("foo")
|
1005
|
+
end
|
1006
|
+
|
1007
|
+
it "evals the shared example group only once" do
|
1008
|
+
eval_count = 0
|
1009
|
+
shared_examples_for("thing") { |p| eval_count += 1 }
|
1010
|
+
group = ExampleGroup.describe('fake group')
|
1011
|
+
shared_group = group.it_should_behave_like("thing", :a)
|
1012
|
+
eval_count.should eq(1)
|
1013
|
+
end
|
1014
|
+
end
|
1015
|
+
|
1016
|
+
context "given a block" do
|
1017
|
+
it "evaluates the block in nested group" do
|
1018
|
+
scopes = []
|
1019
|
+
shared_examples_for("thing") do
|
1020
|
+
it("gets run in the nested group") do
|
1021
|
+
scopes << self.class
|
1022
|
+
end
|
1023
|
+
end
|
1024
|
+
group = ExampleGroup.describe("group") do
|
1025
|
+
it_should_behave_like "thing" do
|
1026
|
+
it("gets run in the same nested group") do
|
1027
|
+
scopes << self.class
|
1028
|
+
end
|
1029
|
+
end
|
1030
|
+
end
|
1031
|
+
group.run
|
1032
|
+
|
1033
|
+
scopes[0].should be(scopes[1])
|
1034
|
+
end
|
1035
|
+
end
|
1036
|
+
|
1037
|
+
it "raises a helpful error message when shared context is not found" do
|
1038
|
+
expect do
|
1039
|
+
ExampleGroup.describe do
|
1040
|
+
it_should_behave_like "shared stuff"
|
1041
|
+
end
|
1042
|
+
end.to raise_error(ArgumentError,%q|Could not find shared examples "shared stuff"|)
|
1043
|
+
end
|
1044
|
+
end
|
1045
|
+
end
|
1046
|
+
end
|