horseman 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +12 -12
- data/Manifest +894 -0
- data/Rakefile +1 -1
- data/horseman.gemspec +4 -4
- data/lib/horseman/action.rb +20 -0
- data/lib/horseman/browser.rb +71 -20
- data/lib/horseman/connection.rb +3 -1
- data/lib/horseman/response.rb +14 -10
- data/lib/horseman/version.rb +1 -1
- data/lib/horseman.rb +1 -0
- data/spec/horseman/action_spec.rb +29 -0
- data/spec/horseman/browser_spec.rb +138 -14
- data/spec/horseman/response_spec.rb +25 -2
- data/spec/mocks.rb +21 -7
- data/vendor/ruby/1.9.1/cache/gemcutter-0.7.1.gem +0 -0
- data/vendor/ruby/1.9.1/cache/json-1.6.4.gem +0 -0
- data/vendor/ruby/1.9.1/cache/json_pure-1.6.4.gem +0 -0
- data/vendor/ruby/1.9.1/cache/rdoc-3.12.gem +0 -0
- data/vendor/ruby/1.9.1/cache/rspec-2.8.0.gem +0 -0
- data/vendor/ruby/1.9.1/cache/rspec-core-2.8.0.gem +0 -0
- data/vendor/ruby/1.9.1/cache/rspec-expectations-2.8.0.gem +0 -0
- data/vendor/ruby/1.9.1/cache/rspec-mocks-2.8.0.gem +0 -0
- data/vendor/ruby/1.9.1/gems/gemcutter-0.7.1/Gemfile +7 -0
- data/vendor/ruby/1.9.1/gems/gemcutter-0.7.1/MIT-LICENSE +22 -0
- data/vendor/ruby/1.9.1/gems/gemcutter-0.7.1/README.md +99 -0
- data/vendor/ruby/1.9.1/gems/gemcutter-0.7.1/Rakefile +13 -0
- data/vendor/ruby/1.9.1/gems/gemcutter-0.7.1/lib/gemcutter/version.rb +3 -0
- data/vendor/ruby/1.9.1/gems/gemcutter-0.7.1/lib/rubygems/commands/migrate_command.rb +14 -0
- data/vendor/ruby/1.9.1/gems/gemcutter-0.7.1/lib/rubygems/commands/tumble_command.rb +13 -0
- data/vendor/ruby/1.9.1/gems/gemcutter-0.7.1/lib/rubygems/commands/webhook_command.rb +117 -0
- data/vendor/ruby/1.9.1/gems/gemcutter-0.7.1/lib/rubygems/commands/yank_command.rb +86 -0
- data/vendor/ruby/1.9.1/gems/gemcutter-0.7.1/lib/rubygems_plugin.rb +7 -0
- data/vendor/ruby/1.9.1/gems/gemcutter-0.7.1/test/helper.rb +41 -0
- data/vendor/ruby/1.9.1/gems/gemcutter-0.7.1/test/webhook_command_test.rb +240 -0
- data/vendor/ruby/1.9.1/gems/gemcutter-0.7.1/test/yank_command_test.rb +157 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/CHANGES +227 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/COPYING +58 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/COPYING-json-jruby +57 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/GPL +340 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/Gemfile +11 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/README-json-jruby.markdown +33 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/README.rdoc +358 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/Rakefile +408 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/TODO +1 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/VERSION +1 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_fast-autocorrelation.dat +1000 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_fast.dat +1001 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_pretty-autocorrelation.dat +900 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_pretty.dat +901 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_safe-autocorrelation.dat +1000 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_safe.dat +1001 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_fast-autocorrelation.dat +1000 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_fast.dat +1001 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_pretty-autocorrelation.dat +1000 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_pretty.dat +1001 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_safe-autocorrelation.dat +1000 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_safe.dat +1001 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkRails#generator-autocorrelation.dat +1000 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkRails#generator.dat +1001 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkExt#parser-autocorrelation.dat +900 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkExt#parser.dat +901 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkPure#parser-autocorrelation.dat +1000 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkPure#parser.dat +1001 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkRails#parser-autocorrelation.dat +1000 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkRails#parser.dat +1001 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkYAML#parser-autocorrelation.dat +1000 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkYAML#parser.dat +1001 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/benchmarks/generator2_benchmark.rb +222 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/benchmarks/generator_benchmark.rb +224 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/benchmarks/ohai.json +1216 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/benchmarks/ohai.ruby +1 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/benchmarks/parser2_benchmark.rb +251 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/benchmarks/parser_benchmark.rb +259 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/data/example.json +1 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/data/index.html +38 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/data/prototype.js +4184 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/ext/json/ext/fbuffer/fbuffer.h +156 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/ext/json/ext/generator/Makefile +213 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/ext/json/ext/generator/extconf.rb +13 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/ext/json/ext/generator/generator.bundle +0 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/ext/json/ext/generator/generator.c +1384 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/ext/json/ext/generator/generator.h +161 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/ext/json/ext/json/ext/generator.bundle +0 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/ext/json/ext/json/ext/parser.bundle +0 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/ext/json/ext/parser/Makefile +213 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/ext/json/ext/parser/extconf.rb +13 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/ext/json/ext/parser/parser.bundle +0 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/ext/json/ext/parser/parser.c +2203 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/ext/json/ext/parser/parser.h +77 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/ext/json/ext/parser/parser.rl +926 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/install.rb +19 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/java/src/json/ext/ByteListTranscoder.java +167 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/java/src/json/ext/Generator.java +437 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/java/src/json/ext/GeneratorMethods.java +232 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/java/src/json/ext/GeneratorService.java +43 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/java/src/json/ext/GeneratorState.java +522 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/java/src/json/ext/OptionsReader.java +113 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/java/src/json/ext/Parser.java +2640 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/java/src/json/ext/Parser.rl +964 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/java/src/json/ext/ParserService.java +35 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/java/src/json/ext/RuntimeInfo.java +121 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/java/src/json/ext/StringDecoder.java +166 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/java/src/json/ext/StringEncoder.java +106 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/java/src/json/ext/Utils.java +89 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/json-java.gemspec +22 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/json.gemspec +40 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/json_pure.gemspec +42 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/lib/json/add/bigdecimal.rb +21 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/lib/json/add/complex.rb +22 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/lib/json/add/core.rb +11 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/lib/json/add/date.rb +34 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/lib/json/add/date_time.rb +50 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/lib/json/add/exception.rb +31 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/lib/json/add/ostruct.rb +31 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/lib/json/add/range.rb +29 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/lib/json/add/rational.rb +22 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/lib/json/add/regexp.rb +30 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/lib/json/add/struct.rb +30 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/lib/json/add/symbol.rb +25 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/lib/json/add/time.rb +35 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/lib/json/common.rb +470 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/lib/json/ext.rb +21 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/lib/json/pure/generator.rb +468 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/lib/json/pure/parser.rb +359 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/lib/json/pure.rb +21 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/lib/json/version.rb +8 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/lib/json.rb +62 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/tests/fixtures/fail1.json +1 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/tests/fixtures/fail10.json +1 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/tests/fixtures/fail11.json +1 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/tests/fixtures/fail12.json +1 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/tests/fixtures/fail13.json +1 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/tests/fixtures/fail14.json +1 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/tests/fixtures/fail18.json +1 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/tests/fixtures/fail19.json +1 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/tests/fixtures/fail2.json +1 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/tests/fixtures/fail20.json +1 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/tests/fixtures/fail21.json +1 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/tests/fixtures/fail22.json +1 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/tests/fixtures/fail23.json +1 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/tests/fixtures/fail24.json +1 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/tests/fixtures/fail25.json +1 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/tests/fixtures/fail27.json +2 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/tests/fixtures/fail28.json +2 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/tests/fixtures/fail3.json +1 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/tests/fixtures/fail4.json +1 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/tests/fixtures/fail5.json +1 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/tests/fixtures/fail6.json +1 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/tests/fixtures/fail7.json +1 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/tests/fixtures/fail8.json +1 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/tests/fixtures/fail9.json +1 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/tests/fixtures/pass1.json +56 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/tests/fixtures/pass15.json +1 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/tests/fixtures/pass16.json +1 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/tests/fixtures/pass17.json +1 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/tests/fixtures/pass2.json +1 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/tests/fixtures/pass26.json +1 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/tests/fixtures/pass3.json +6 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/tests/setup_variant.rb +11 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/tests/test_json.rb +527 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/tests/test_json_addition.rb +188 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/tests/test_json_encoding.rb +65 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/tests/test_json_fixtures.rb +35 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/tests/test_json_generate.rb +249 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/tests/test_json_string_matching.rb +40 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/tests/test_json_unicode.rb +72 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/tools/fuzz.rb +139 -0
- data/vendor/ruby/1.9.1/gems/json-1.6.4/tools/server.rb +62 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/CHANGES +227 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/COPYING +58 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/COPYING-json-jruby +57 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/GPL +340 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/Gemfile +11 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/README-json-jruby.markdown +33 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/README.rdoc +358 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/Rakefile +408 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/TODO +1 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/VERSION +1 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_fast-autocorrelation.dat +1000 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_fast.dat +1001 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_pretty-autocorrelation.dat +900 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_pretty.dat +901 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_safe-autocorrelation.dat +1000 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_safe.dat +1001 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_fast-autocorrelation.dat +1000 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_fast.dat +1001 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_pretty-autocorrelation.dat +1000 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_pretty.dat +1001 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_safe-autocorrelation.dat +1000 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_safe.dat +1001 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkRails#generator-autocorrelation.dat +1000 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkRails#generator.dat +1001 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkExt#parser-autocorrelation.dat +900 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkExt#parser.dat +901 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkPure#parser-autocorrelation.dat +1000 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkPure#parser.dat +1001 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkRails#parser-autocorrelation.dat +1000 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkRails#parser.dat +1001 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkYAML#parser-autocorrelation.dat +1000 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkYAML#parser.dat +1001 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/benchmarks/generator2_benchmark.rb +222 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/benchmarks/generator_benchmark.rb +224 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/benchmarks/ohai.json +1216 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/benchmarks/ohai.ruby +1 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/benchmarks/parser2_benchmark.rb +251 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/benchmarks/parser_benchmark.rb +259 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/data/example.json +1 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/data/index.html +38 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/data/prototype.js +4184 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/ext/json/ext/fbuffer/fbuffer.h +156 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/ext/json/ext/generator/extconf.rb +13 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/ext/json/ext/generator/generator.c +1384 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/ext/json/ext/generator/generator.h +161 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/ext/json/ext/parser/extconf.rb +13 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/ext/json/ext/parser/parser.c +2203 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/ext/json/ext/parser/parser.h +77 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/ext/json/ext/parser/parser.rl +926 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/install.rb +19 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/java/src/json/ext/ByteListTranscoder.java +167 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/java/src/json/ext/Generator.java +437 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/java/src/json/ext/GeneratorMethods.java +232 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/java/src/json/ext/GeneratorService.java +43 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/java/src/json/ext/GeneratorState.java +522 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/java/src/json/ext/OptionsReader.java +113 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/java/src/json/ext/Parser.java +2640 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/java/src/json/ext/Parser.rl +964 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/java/src/json/ext/ParserService.java +35 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/java/src/json/ext/RuntimeInfo.java +121 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/java/src/json/ext/StringDecoder.java +166 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/java/src/json/ext/StringEncoder.java +106 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/java/src/json/ext/Utils.java +89 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/json-java.gemspec +22 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/json.gemspec +40 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/json_pure.gemspec +42 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/lib/json/add/bigdecimal.rb +21 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/lib/json/add/complex.rb +22 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/lib/json/add/core.rb +11 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/lib/json/add/date.rb +34 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/lib/json/add/date_time.rb +50 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/lib/json/add/exception.rb +31 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/lib/json/add/ostruct.rb +31 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/lib/json/add/range.rb +29 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/lib/json/add/rational.rb +22 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/lib/json/add/regexp.rb +30 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/lib/json/add/struct.rb +30 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/lib/json/add/symbol.rb +25 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/lib/json/add/time.rb +35 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/lib/json/common.rb +470 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/lib/json/ext.rb +21 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/lib/json/pure/generator.rb +468 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/lib/json/pure/parser.rb +359 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/lib/json/pure.rb +21 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/lib/json/version.rb +8 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/lib/json.rb +62 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/tests/fixtures/fail1.json +1 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/tests/fixtures/fail10.json +1 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/tests/fixtures/fail11.json +1 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/tests/fixtures/fail12.json +1 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/tests/fixtures/fail13.json +1 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/tests/fixtures/fail14.json +1 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/tests/fixtures/fail18.json +1 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/tests/fixtures/fail19.json +1 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/tests/fixtures/fail2.json +1 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/tests/fixtures/fail20.json +1 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/tests/fixtures/fail21.json +1 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/tests/fixtures/fail22.json +1 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/tests/fixtures/fail23.json +1 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/tests/fixtures/fail24.json +1 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/tests/fixtures/fail25.json +1 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/tests/fixtures/fail27.json +2 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/tests/fixtures/fail28.json +2 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/tests/fixtures/fail3.json +1 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/tests/fixtures/fail4.json +1 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/tests/fixtures/fail5.json +1 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/tests/fixtures/fail6.json +1 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/tests/fixtures/fail7.json +1 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/tests/fixtures/fail8.json +1 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/tests/fixtures/fail9.json +1 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/tests/fixtures/pass1.json +56 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/tests/fixtures/pass15.json +1 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/tests/fixtures/pass16.json +1 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/tests/fixtures/pass17.json +1 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/tests/fixtures/pass2.json +1 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/tests/fixtures/pass26.json +1 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/tests/fixtures/pass3.json +6 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/tests/setup_variant.rb +11 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/tests/test_json.rb +527 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/tests/test_json_addition.rb +188 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/tests/test_json_encoding.rb +65 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/tests/test_json_fixtures.rb +35 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/tests/test_json_generate.rb +249 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/tests/test_json_string_matching.rb +40 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/tests/test_json_unicode.rb +72 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/tools/fuzz.rb +139 -0
- data/vendor/ruby/1.9.1/gems/json_pure-1.6.4/tools/server.rb +62 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/DEVELOPERS.rdoc +141 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/History.rdoc +962 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/LEGAL.rdoc +27 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/LICENSE.rdoc +57 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/Manifest.txt +228 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/README.rdoc +61 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/RI.rdoc +57 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/Rakefile +135 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/TODO.rdoc +40 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/bin/rdoc +40 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/bin/ri +12 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/gauntlet_rdoc.rb +84 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/alias.rb +111 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/anon_class.rb +10 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/any_method.rb +208 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/attr.rb +134 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/class_module.rb +619 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/code_object.rb +305 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/code_objects.rb +5 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/comment.rb +225 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/constant.rb +84 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/context/section.rb +123 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/context.rb +1136 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/cross_reference.rb +175 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/encoding.rb +90 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/erbio.rb +37 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/generator/darkfish.rb +532 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/generator/json_index.rb +240 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/generator/markup.rb +171 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/generator/ri.rb +83 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/_footer.rhtml +5 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/_head.rhtml +16 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/_sidebar_VCS_info.rhtml +18 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/_sidebar_classes.rhtml +9 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/_sidebar_in_files.rhtml +8 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/_sidebar_includes.rhtml +16 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/_sidebar_methods.rhtml +12 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/_sidebar_navigation.rhtml +7 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/_sidebar_pages.rhtml +12 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/_sidebar_parent.rhtml +10 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/_sidebar_search.rhtml +10 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/_sidebar_sections.rhtml +10 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/class.rhtml +165 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/images/add.png +0 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/images/brick.png +0 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/images/brick_link.png +0 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/images/bug.png +0 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/images/bullet_black.png +0 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/images/bullet_toggle_minus.png +0 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/images/bullet_toggle_plus.png +0 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/images/date.png +0 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/images/delete.png +0 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/images/find.png +0 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/images/loadingAnimation.gif +0 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/images/macFFBgHack.png +0 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/images/package.png +0 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/images/page_green.png +0 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/images/page_white_text.png +0 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/images/page_white_width.png +0 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/images/plugin.png +0 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/images/ruby.png +0 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/images/tag_blue.png +0 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/images/tag_green.png +0 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/images/transparent.png +0 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/images/wrench.png +0 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/images/wrench_orange.png +0 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/images/zoom.png +0 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/index.rhtml +19 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/js/darkfish.js +153 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/js/jquery.js +18 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/js/search.js +94 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/page.rhtml +16 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/rdoc.css +543 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/table_of_contents.rhtml +55 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/generator/template/json_index/js/navigation.js +142 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/generator/template/json_index/js/searcher.js +228 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/generator.rb +45 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/ghost_method.rb +6 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/include.rb +110 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/known_classes.rb +72 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/markup/attr_changer.rb +25 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/markup/attr_span.rb +29 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/markup/attribute.rb +51 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/markup/attribute_manager.rb +335 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/markup/blank_line.rb +27 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/markup/document.rb +148 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/markup/formatter.rb +173 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/markup/formatter_test_case.rb +698 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/markup/heading.rb +64 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/markup/include.rb +42 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/markup/indented_paragraph.rb +33 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/markup/inline.rb +1 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/markup/list.rb +82 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/markup/list_item.rb +86 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/markup/paragraph.rb +14 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/markup/parser.rb +504 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/markup/pre_process.rb +293 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/markup/raw.rb +69 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/markup/rule.rb +20 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/markup/special.rb +40 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/markup/text_formatter_test_case.rb +114 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/markup/to_ansi.rb +87 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/markup/to_bs.rb +78 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/markup/to_html.rb +394 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/markup/to_html_crossref.rb +156 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/markup/to_html_snippet.rb +268 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/markup/to_label.rb +55 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/markup/to_rdoc.rb +302 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/markup/to_table_of_contents.rb +56 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/markup/to_test.rb +69 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/markup/to_tt_only.rb +111 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/markup/verbatim.rb +64 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/markup.rb +813 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/meta_method.rb +6 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/method_attr.rb +384 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/normal_class.rb +69 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/normal_module.rb +64 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/options.rb +1040 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/parser/c.rb +1024 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/parser/rd.rb +22 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/parser/ruby.rb +1816 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/parser/ruby_tools.rb +162 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/parser/simple.rb +61 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/parser/text.rb +11 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/parser.rb +242 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/rd/block_parser.ry +638 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/rd/inline.rb +71 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/rd/inline_parser.ry +593 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/rd.rb +95 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/rdoc.rb +532 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/require.rb +51 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/ri/driver.rb +1174 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/ri/formatter.rb +5 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/ri/paths.rb +128 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/ri/store.rb +357 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/ri.rb +20 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/ruby_lex.rb +1334 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/ruby_token.rb +458 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/rubygems_hook.rb +220 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/single_class.rb +21 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/stats/normal.rb +48 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/stats/quiet.rb +59 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/stats/verbose.rb +45 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/stats.rb +436 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/task.rb +329 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/test_case.rb +76 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/text.rb +314 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/token_stream.rb +95 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/tom_doc.rb +232 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/top_level.rb +523 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc.rb +221 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/README +1 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/binary.dat +0 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/hidden.zip.txt +1 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test.ja.large.rdoc +3 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test.ja.rdoc +10 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test.ja.txt +8 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test.txt +1 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_attribute_manager.rb +117 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_alias.rb +13 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_any_method.rb +248 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_attr.rb +136 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_class_module.rb +814 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_code_object.rb +297 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_comment.rb +504 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_constant.rb +15 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_context.rb +791 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_context_section.rb +53 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_cross_reference.rb +176 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_encoding.rb +188 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_generator_darkfish.rb +151 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_generator_json_index.rb +255 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_generator_markup.rb +56 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_generator_ri.rb +84 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_include.rb +96 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_markup.rb +95 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_markup_attribute_manager.rb +237 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_markup_document.rb +180 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_markup_formatter.rb +55 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_markup_heading.rb +20 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_markup_include.rb +19 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_markup_indented_paragraph.rb +39 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_markup_paragraph.rb +18 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_markup_parser.rb +1624 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_markup_pre_process.rb +461 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_markup_raw.rb +29 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_markup_to_ansi.rb +348 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_markup_to_bs.rb +342 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_markup_to_html.rb +515 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_markup_to_html_crossref.rb +200 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_markup_to_html_snippet.rb +668 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_markup_to_label.rb +50 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_markup_to_rdoc.rb +357 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_markup_to_table_of_contents.rb +90 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_markup_to_tt_only.rb +226 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_markup_verbatim.rb +16 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_method_attr.rb +150 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_normal_class.rb +23 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_normal_module.rb +37 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_options.rb +579 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_parser.rb +162 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_parser_c.rb +1438 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_parser_rd.rb +52 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_parser_ruby.rb +2490 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_parser_simple.rb +115 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_rd.rb +30 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_rd_block_parser.rb +527 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_rd_inline.rb +63 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_rd_inline_parser.rb +173 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_rdoc.rb +280 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_require.rb +25 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_ri_driver.rb +1059 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_ri_paths.rb +46 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_ri_store.rb +466 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_ruby_lex.rb +137 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_rubygems_hook.rb +202 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_single_class.rb +12 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_stats.rb +588 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_task.rb +120 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_text.rb +542 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_token_stream.rb +42 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_tom_doc.rb +458 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/test_rdoc_top_level.rb +313 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/xref_data.rb +76 -0
- data/vendor/ruby/1.9.1/gems/rdoc-3.12/test/xref_test_case.rb +67 -0
- data/vendor/ruby/1.9.1/gems/rspec-2.8.0/License.txt +24 -0
- data/vendor/ruby/1.9.1/gems/rspec-2.8.0/README.markdown +47 -0
- data/vendor/ruby/1.9.1/gems/rspec-2.8.0/lib/rspec/version.rb +5 -0
- data/vendor/ruby/1.9.1/gems/rspec-2.8.0/lib/rspec.rb +4 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/License.txt +24 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/README.md +228 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/exe/autospec +13 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/exe/rspec +25 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/features/Autotest.md +38 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/features/README.md +17 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/features/Upgrade.md +364 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/features/command_line/README.md +28 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/features/command_line/example_name_option.feature +86 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/features/command_line/exit_status.feature +83 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/features/command_line/format_option.feature +81 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/features/command_line/init.feature +18 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/features/command_line/line_number_appended_to_path.feature +140 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/features/command_line/line_number_option.feature +58 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/features/command_line/order.feature +29 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/features/command_line/pattern_option.feature +31 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/features/command_line/rake_task.feature +68 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/features/command_line/ruby.feature +22 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/features/command_line/tag.feature +91 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/features/configuration/alias_example_to.feature +48 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/features/configuration/custom_settings.feature +84 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/features/configuration/default_path.feature +38 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/features/configuration/fail_fast.feature +77 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/features/configuration/read_options_from_file.feature +87 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/features/example_groups/basic_structure.feature +55 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/features/example_groups/shared_context.feature +74 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/features/example_groups/shared_examples.feature +204 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/features/expectation_framework_integration/configure_expectation_framework.feature +73 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/features/filtering/exclusion_filters.feature +139 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/features/filtering/if_and_unless.feature +168 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/features/filtering/inclusion_filters.feature +105 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/features/filtering/run_all_when_everything_filtered.feature +46 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/features/formatters/custom_formatter.feature +36 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/features/formatters/text_formatter.feature +46 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/features/helper_methods/arbitrary_methods.feature +40 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/features/helper_methods/let.feature +50 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/features/helper_methods/modules.feature +149 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/features/hooks/around_hooks.feature +343 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/features/hooks/before_and_after_hooks.feature +423 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/features/hooks/filtering.feature +234 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/features/metadata/current_example.feature +17 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/features/metadata/described_class.feature +17 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/features/metadata/user_defined.feature +113 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/features/mock_framework_integration/use_any_framework.feature +106 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/features/mock_framework_integration/use_flexmock.feature +96 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/features/mock_framework_integration/use_mocha.feature +97 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/features/mock_framework_integration/use_rr.feature +98 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/features/mock_framework_integration/use_rspec.feature +97 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/features/pending/pending_examples.feature +229 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/features/spec_files/arbitrary_file_suffix.feature +13 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/features/step_definitions/additional_cli_steps.rb +30 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/features/subject/attribute_of_subject.feature +122 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/features/subject/explicit_subject.feature +78 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/features/subject/implicit_receiver.feature +29 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/features/subject/implicit_subject.feature +30 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/features/support/env.rb +12 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/lib/autotest/discover.rb +1 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/lib/autotest/rspec2.rb +73 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/lib/rspec/autorun.rb +2 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/lib/rspec/core/backward_compatibility.rb +65 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/lib/rspec/core/command_line.rb +36 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/lib/rspec/core/configuration.rb +861 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/lib/rspec/core/configuration_options.rb +121 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/lib/rspec/core/deprecation.rb +51 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/lib/rspec/core/drb_command_line.rb +23 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/lib/rspec/core/drb_options.rb +83 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/lib/rspec/core/dsl.rb +24 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/lib/rspec/core/example.rb +247 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/lib/rspec/core/example_group.rb +443 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/lib/rspec/core/extensions/instance_eval_with_args.rb +44 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/lib/rspec/core/extensions/kernel.rb +9 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/lib/rspec/core/extensions/module_eval_with_args.rb +38 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/lib/rspec/core/extensions/ordered.rb +21 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/lib/rspec/core/extensions.rb +4 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/lib/rspec/core/filter_manager.rb +203 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/lib/rspec/core/formatters/base_formatter.rb +174 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/lib/rspec/core/formatters/base_text_formatter.rb +198 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/lib/rspec/core/formatters/documentation_formatter.rb +71 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/lib/rspec/core/formatters/helpers.rb +24 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/lib/rspec/core/formatters/html_formatter.rb +464 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/lib/rspec/core/formatters/progress_formatter.rb +32 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/lib/rspec/core/formatters/snippet_extractor.rb +58 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/lib/rspec/core/formatters/text_mate_formatter.rb +34 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/lib/rspec/core/hooks.rb +415 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/lib/rspec/core/let.rb +103 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/lib/rspec/core/load_path.rb +3 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/lib/rspec/core/metadata.rb +273 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/lib/rspec/core/metadata_hash_builder.rb +97 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/lib/rspec/core/mocking/with_absolutely_nothing.rb +11 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/lib/rspec/core/mocking/with_flexmock.rb +27 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/lib/rspec/core/mocking/with_mocha.rb +23 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/lib/rspec/core/mocking/with_rr.rb +27 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/lib/rspec/core/mocking/with_rspec.rb +23 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/lib/rspec/core/option_parser.rb +180 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/lib/rspec/core/pending.rb +101 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/lib/rspec/core/project_initializer.rb +81 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/lib/rspec/core/rake_task.rb +179 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/lib/rspec/core/reporter.rb +102 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/lib/rspec/core/ruby_project.rb +44 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/lib/rspec/core/runner.rb +86 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/lib/rspec/core/shared_context.rb +49 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/lib/rspec/core/shared_example_group.rb +72 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/lib/rspec/core/subject.rb +175 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/lib/rspec/core/version.rb +7 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/lib/rspec/core/world.rb +132 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/lib/rspec/core.rb +107 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/lib/rspec/monkey/spork/test_framework/rspec.rb +10 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/lib/rspec/monkey.rb +1 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/spec/autotest/discover_spec.rb +19 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/spec/autotest/failed_results_re_spec.rb +45 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/spec/autotest/rspec_spec.rb +123 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/spec/command_line/order_spec.rb +137 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/spec/rspec/core/command_line_spec.rb +166 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/spec/rspec/core/command_line_spec_output.txt +0 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/spec/rspec/core/configuration_options_spec.rb +352 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/spec/rspec/core/configuration_spec.rb +1128 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/spec/rspec/core/deprecations_spec.rb +66 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/spec/rspec/core/drb_command_line_spec.rb +107 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/spec/rspec/core/drb_options_spec.rb +179 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/spec/rspec/core/example_group_spec.rb +1074 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/spec/rspec/core/example_spec.rb +302 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/spec/rspec/core/filter_manager_spec.rb +256 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/spec/rspec/core/formatters/base_formatter_spec.rb +80 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/spec/rspec/core/formatters/base_text_formatter_spec.rb +344 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/spec/rspec/core/formatters/documentation_formatter_spec.rb +66 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/spec/rspec/core/formatters/helpers_spec.rb +46 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/spec/rspec/core/formatters/html_formatted-1.8.7-jruby.html +410 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/spec/rspec/core/formatters/html_formatted-1.8.7.html +409 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/spec/rspec/core/formatters/html_formatted-1.9.2.html +416 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/spec/rspec/core/formatters/html_formatted-1.9.3.html +416 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/spec/rspec/core/formatters/html_formatter_spec.rb +82 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/spec/rspec/core/formatters/progress_formatter_spec.rb +30 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/spec/rspec/core/formatters/snippet_extractor_spec.rb +18 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/spec/rspec/core/formatters/text_mate_formatted-1.8.7-jruby.html +410 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/spec/rspec/core/formatters/text_mate_formatted-1.8.7.html +409 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/spec/rspec/core/formatters/text_mate_formatted-1.9.2.html +416 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/spec/rspec/core/formatters/text_mate_formatted-1.9.3.html +416 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/spec/rspec/core/formatters/text_mate_formatter_spec.rb +83 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/spec/rspec/core/hooks_filtering_spec.rb +227 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/spec/rspec/core/hooks_spec.rb +143 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/spec/rspec/core/kernel_extensions_spec.rb +9 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/spec/rspec/core/let_spec.rb +55 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/spec/rspec/core/metadata_spec.rb +438 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/spec/rspec/core/option_parser_spec.rb +165 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/spec/rspec/core/pending_example_spec.rb +219 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/spec/rspec/core/project_initializer_spec.rb +130 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/spec/rspec/core/rake_task_spec.rb +138 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/spec/rspec/core/reporter_spec.rb +103 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/spec/rspec/core/resources/a_bar.rb +0 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/spec/rspec/core/resources/a_foo.rb +0 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/spec/rspec/core/resources/a_spec.rb +1 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/spec/rspec/core/resources/custom_example_group_runner.rb +14 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/spec/rspec/core/resources/formatter_specs.rb +60 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/spec/rspec/core/resources/utf8_encoded.rb +8 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/spec/rspec/core/rspec_matchers_spec.rb +45 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/spec/rspec/core/ruby_project_spec.rb +24 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/spec/rspec/core/runner_spec.rb +82 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/spec/rspec/core/shared_context_spec.rb +67 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/spec/rspec/core/shared_example_group_spec.rb +84 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/spec/rspec/core/subject_spec.rb +199 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/spec/rspec/core/world_spec.rb +134 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/spec/rspec/core_spec.rb +25 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/spec/spec_helper.rb +98 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/spec/support/config_options_helper.rb +27 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/spec/support/matchers.rb +65 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/spec/support/shared_example_groups.rb +41 -0
- data/vendor/ruby/1.9.1/gems/rspec-core-2.8.0/spec/support/spec_files.rb +44 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/License.txt +23 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/README.md +158 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/features/README.markdown +49 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/features/Upgrade.md +53 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/features/built_in_matchers/README.md +90 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/features/built_in_matchers/be.feature +135 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/features/built_in_matchers/be_within.feature +43 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/features/built_in_matchers/cover.feature +45 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/features/built_in_matchers/equality.feature +145 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/features/built_in_matchers/exist.feature +43 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/features/built_in_matchers/expect_change.feature +59 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/features/built_in_matchers/expect_error.feature +138 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/features/built_in_matchers/have.feature +103 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/features/built_in_matchers/include.feature +121 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/features/built_in_matchers/match.feature +50 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/features/built_in_matchers/operators.feature +221 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/features/built_in_matchers/predicates.feature +128 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/features/built_in_matchers/respond_to.feature +78 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/features/built_in_matchers/satisfy.feature +31 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/features/built_in_matchers/throw_symbol.feature +85 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/features/built_in_matchers/types.feature +114 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/features/custom_matchers/access_running_example.feature +53 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/features/custom_matchers/define_diffable_matcher.feature +27 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/features/custom_matchers/define_matcher.feature +340 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/features/custom_matchers/define_matcher_outside_rspec.feature +38 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/features/custom_matchers/define_matcher_with_fluent_interface.feature +24 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/features/customized_message.feature +22 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/features/diffing.feature +85 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/features/implicit_docstrings.feature +52 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/features/step_definitions/additional_cli_steps.rb +22 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/features/support/env.rb +5 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/features/test_frameworks/test_unit.feature +46 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/lib/rspec/expectations/deprecation.rb +38 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/lib/rspec/expectations/differ.rb +76 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/lib/rspec/expectations/errors.rb +9 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/lib/rspec/expectations/extensions/array.rb +9 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/lib/rspec/expectations/extensions/kernel.rb +26 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/lib/rspec/expectations/extensions/object.rb +39 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/lib/rspec/expectations/extensions.rb +3 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/lib/rspec/expectations/fail_with.rb +54 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/lib/rspec/expectations/handler.rb +50 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/lib/rspec/expectations/version.rb +8 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/lib/rspec/expectations.rb +45 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/lib/rspec/matchers/base_matcher.rb +56 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/lib/rspec/matchers/be.rb +232 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/lib/rspec/matchers/be_close.rb +9 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/lib/rspec/matchers/be_instance_of.rb +24 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/lib/rspec/matchers/be_kind_of.rb +24 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/lib/rspec/matchers/be_within.rb +47 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/lib/rspec/matchers/block_aliases.rb +20 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/lib/rspec/matchers/change.rb +197 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/lib/rspec/matchers/compatibility.rb +14 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/lib/rspec/matchers/cover.rb +36 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/lib/rspec/matchers/dsl.rb +23 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/lib/rspec/matchers/eq.rb +36 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/lib/rspec/matchers/eql.rb +35 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/lib/rspec/matchers/equal.rb +58 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/lib/rspec/matchers/errors.rb +5 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/lib/rspec/matchers/exist.rb +34 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/lib/rspec/matchers/extensions/instance_eval_with_args.rb +39 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/lib/rspec/matchers/generated_descriptions.rb +36 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/lib/rspec/matchers/has.rb +44 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/lib/rspec/matchers/have.rb +162 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/lib/rspec/matchers/include.rb +66 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/lib/rspec/matchers/match.rb +21 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/lib/rspec/matchers/match_array.rb +65 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/lib/rspec/matchers/matcher.rb +268 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/lib/rspec/matchers/method_missing.rb +12 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/lib/rspec/matchers/operator_matcher.rb +85 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/lib/rspec/matchers/pretty.rb +60 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/lib/rspec/matchers/raise_error.rb +116 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/lib/rspec/matchers/respond_to.rb +80 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/lib/rspec/matchers/satisfy.rb +46 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/lib/rspec/matchers/throw_symbol.rb +112 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/lib/rspec/matchers.rb +206 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/lib/rspec-expectations.rb +1 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/spec/rspec/expectations/differ_spec.rb +144 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/spec/rspec/expectations/extensions/kernel_spec.rb +45 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/spec/rspec/expectations/fail_with_spec.rb +70 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/spec/rspec/expectations/handler_spec.rb +206 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/spec/rspec/matchers/base_matcher_spec.rb +53 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/spec/rspec/matchers/be_close_spec.rb +22 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/spec/rspec/matchers/be_instance_of_spec.rb +36 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/spec/rspec/matchers/be_kind_of_spec.rb +33 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/spec/rspec/matchers/be_spec.rb +452 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/spec/rspec/matchers/be_within_spec.rb +64 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/spec/rspec/matchers/change_spec.rb +522 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/spec/rspec/matchers/compatibility_spec.rb +28 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/spec/rspec/matchers/cover_spec.rb +65 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/spec/rspec/matchers/description_generation_spec.rb +176 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/spec/rspec/matchers/dsl_spec.rb +8 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/spec/rspec/matchers/eq_spec.rb +38 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/spec/rspec/matchers/eql_spec.rb +37 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/spec/rspec/matchers/equal_spec.rb +57 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/spec/rspec/matchers/exist_spec.rb +104 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/spec/rspec/matchers/has_spec.rb +113 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/spec/rspec/matchers/have_spec.rb +458 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/spec/rspec/matchers/include_spec.rb +351 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/spec/rspec/matchers/match_array_spec.rb +108 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/spec/rspec/matchers/match_spec.rb +57 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/spec/rspec/matchers/matcher_spec.rb +420 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/spec/rspec/matchers/matchers_spec.rb +31 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/spec/rspec/matchers/method_missing_spec.rb +23 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/spec/rspec/matchers/operator_matcher_spec.rb +221 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/spec/rspec/matchers/raise_error_spec.rb +339 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/spec/rspec/matchers/respond_to_spec.rb +292 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/spec/rspec/matchers/satisfy_spec.rb +40 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/spec/rspec/matchers/throw_symbol_spec.rb +113 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/spec/spec_helper.rb +27 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/spec/support/classes.rb +56 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/spec/support/matchers.rb +22 -0
- data/vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/spec/support/ruby_version.rb +10 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/License.txt +23 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/README.md +257 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/features/README.markdown +67 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/features/Scope.md +17 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/features/Upgrade.md +22 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/features/argument_matchers/README.md +27 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/features/argument_matchers/explicit.feature +60 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/features/argument_matchers/general_matchers.feature +85 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/features/argument_matchers/type_matchers.feature +25 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/features/message_expectations/README.md +58 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/features/message_expectations/any_instance.feature +21 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/features/message_expectations/block_local_expectations.feature.pending +55 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/features/message_expectations/expect_message.feature +94 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/features/message_expectations/receive_counts.feature +209 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/features/message_expectations/warn_when_expectation_is_set_on_nil.feature +50 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/features/method_stubs/README.md +43 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/features/method_stubs/any_instance.feature +133 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/features/method_stubs/as_null_object.feature +36 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/features/method_stubs/simple_return_value.feature +64 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/features/method_stubs/stub_chain.feature +51 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/features/method_stubs/stub_implementation.feature +26 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/features/method_stubs/to_ary.feature +47 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/features/outside_rspec/configuration.feature +82 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/features/outside_rspec/standalone.feature +32 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/features/step_definitions/additional_cli_steps.rb +4 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/features/support/env.rb +6 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/lib/rspec/mocks/any_instance/chain.rb +158 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/lib/rspec/mocks/any_instance/message_chains.rb +60 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/lib/rspec/mocks/any_instance/recorder.rb +192 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/lib/rspec/mocks/any_instance.rb +45 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/lib/rspec/mocks/argument_expectation.rb +55 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/lib/rspec/mocks/argument_matchers.rb +230 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/lib/rspec/mocks/error_generator.rb +107 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/lib/rspec/mocks/errors.rb +12 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/lib/rspec/mocks/example_methods.rb +54 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/lib/rspec/mocks/extensions/instance_exec.rb +34 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/lib/rspec/mocks/extensions/marshal.rb +23 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/lib/rspec/mocks/extensions/psych.rb +23 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/lib/rspec/mocks/framework.rb +18 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/lib/rspec/mocks/message_expectation.rb +501 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/lib/rspec/mocks/method_double.rb +190 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/lib/rspec/mocks/methods.rb +150 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/lib/rspec/mocks/mock.rb +81 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/lib/rspec/mocks/order_group.rb +33 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/lib/rspec/mocks/proxy.rb +179 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/lib/rspec/mocks/serialization.rb +32 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/lib/rspec/mocks/space.rb +29 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/lib/rspec/mocks/standalone.rb +3 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/lib/rspec/mocks/version.rb +7 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/lib/rspec/mocks.rb +39 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/lib/spec/mocks.rb +2 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/spec/rspec/mocks/and_yield_spec.rb +114 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/spec/rspec/mocks/any_instance/message_chains_spec.rb +40 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/spec/rspec/mocks/any_instance_spec.rb +785 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/spec/rspec/mocks/any_number_of_times_spec.rb +30 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/spec/rspec/mocks/argument_expectation_spec.rb +37 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/spec/rspec/mocks/at_least_spec.rb +103 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/spec/rspec/mocks/at_most_spec.rb +99 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/spec/rspec/mocks/block_return_value_spec.rb +45 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/spec/rspec/mocks/bug_report_10260_spec.rb +8 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/spec/rspec/mocks/bug_report_10263_spec.rb +25 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/spec/rspec/mocks/bug_report_11545_spec.rb +32 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/spec/rspec/mocks/bug_report_496_spec.rb +17 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/spec/rspec/mocks/bug_report_600_spec.rb +22 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/spec/rspec/mocks/bug_report_7611_spec.rb +16 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/spec/rspec/mocks/bug_report_8165_spec.rb +31 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/spec/rspec/mocks/bug_report_830_spec.rb +21 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/spec/rspec/mocks/bug_report_957_spec.rb +22 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/spec/rspec/mocks/double_spec.rb +12 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/spec/rspec/mocks/failing_argument_matchers_spec.rb +95 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/spec/rspec/mocks/hash_excluding_matcher_spec.rb +67 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/spec/rspec/mocks/hash_including_matcher_spec.rb +90 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/spec/rspec/mocks/mock_ordering_spec.rb +94 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/spec/rspec/mocks/mock_space_spec.rb +54 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/spec/rspec/mocks/mock_spec.rb +702 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/spec/rspec/mocks/multiple_return_value_spec.rb +188 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/spec/rspec/mocks/nil_expectation_warning_spec.rb +62 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/spec/rspec/mocks/null_object_mock_spec.rb +78 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/spec/rspec/mocks/once_counts_spec.rb +53 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/spec/rspec/mocks/options_hash_spec.rb +35 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/spec/rspec/mocks/partial_mock_spec.rb +156 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/spec/rspec/mocks/partial_mock_using_mocks_directly_spec.rb +95 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/spec/rspec/mocks/passing_argument_matchers_spec.rb +142 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/spec/rspec/mocks/precise_counts_spec.rb +58 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/spec/rspec/mocks/record_messages_spec.rb +26 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/spec/rspec/mocks/serialization_spec.rb +111 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/spec/rspec/mocks/stash_spec.rb +27 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/spec/rspec/mocks/stub_chain_spec.rb +149 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/spec/rspec/mocks/stub_implementation_spec.rb +68 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/spec/rspec/mocks/stub_spec.rb +238 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/spec/rspec/mocks/stubbed_message_expectations_spec.rb +26 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/spec/rspec/mocks/to_ary_spec.rb +40 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/spec/rspec/mocks/twice_counts_spec.rb +67 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/spec/rspec/mocks_spec.rb +51 -0
- data/vendor/ruby/1.9.1/gems/rspec-mocks-2.8.0/spec/spec_helper.rb +53 -0
- data/vendor/ruby/1.9.1/specifications/gemcutter-0.7.1.gemspec +44 -0
- data/vendor/ruby/1.9.1/specifications/json-1.6.4.gemspec +39 -0
- data/vendor/ruby/1.9.1/specifications/json_pure-1.6.4.gemspec +41 -0
- data/vendor/ruby/1.9.1/specifications/rdoc-3.12.gemspec +51 -0
- data/vendor/ruby/1.9.1/specifications/rspec-2.8.0.gemspec +39 -0
- data/vendor/ruby/1.9.1/specifications/rspec-core-2.8.0.gemspec +32 -0
- data/vendor/ruby/1.9.1/specifications/rspec-expectations-2.8.0.gemspec +33 -0
- data/vendor/ruby/1.9.1/specifications/rspec-mocks-2.8.0.gemspec +30 -0
- metadata +899 -4
@@ -0,0 +1,702 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
module RSpec
|
4
|
+
module Mocks
|
5
|
+
describe Mock do
|
6
|
+
before(:each) do
|
7
|
+
@mock = double("test double")
|
8
|
+
end
|
9
|
+
|
10
|
+
treats_method_missing_as_private :subject => RSpec::Mocks::Mock.new, :noop => false
|
11
|
+
|
12
|
+
after(:each) do
|
13
|
+
@mock.rspec_reset
|
14
|
+
end
|
15
|
+
|
16
|
+
it "reports line number of expectation of unreceived message" do
|
17
|
+
expected_error_line = __LINE__; @mock.should_receive(:wont_happen).with("x", 3)
|
18
|
+
begin
|
19
|
+
@mock.rspec_verify
|
20
|
+
violated
|
21
|
+
rescue RSpec::Mocks::MockExpectationError => e
|
22
|
+
# NOTE - this regexp ended w/ $, but jruby adds extra info at the end of the line
|
23
|
+
e.backtrace[0].should match(/#{File.basename(__FILE__)}:#{expected_error_line}/)
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
it "reports line number of expectation of unreceived message after #should_receive after similar stub" do
|
28
|
+
@mock.stub(:wont_happen)
|
29
|
+
expected_error_line = __LINE__; @mock.should_receive(:wont_happen).with("x", 3)
|
30
|
+
begin
|
31
|
+
@mock.rspec_verify
|
32
|
+
violated
|
33
|
+
rescue RSpec::Mocks::MockExpectationError => e
|
34
|
+
# NOTE - this regexp ended w/ $, but jruby adds extra info at the end of the line
|
35
|
+
e.backtrace[0].should match(/#{File.basename(__FILE__)}:#{expected_error_line}/)
|
36
|
+
end
|
37
|
+
end
|
38
|
+
|
39
|
+
it "passes when not receiving message specified as not to be received" do
|
40
|
+
@mock.should_not_receive(:not_expected)
|
41
|
+
@mock.rspec_verify
|
42
|
+
end
|
43
|
+
|
44
|
+
it "passes when receiving message specified as not to be received with different args" do
|
45
|
+
@mock.should_not_receive(:message).with("unwanted text")
|
46
|
+
@mock.should_receive(:message).with("other text")
|
47
|
+
@mock.message "other text"
|
48
|
+
@mock.rspec_verify
|
49
|
+
end
|
50
|
+
|
51
|
+
it "fails when receiving message specified as not to be received" do
|
52
|
+
@mock.should_not_receive(:not_expected)
|
53
|
+
expect {
|
54
|
+
@mock.not_expected
|
55
|
+
violated
|
56
|
+
}.to raise_error(
|
57
|
+
RSpec::Mocks::MockExpectationError,
|
58
|
+
%Q|(Double "test double").not_expected(no args)\n expected: 0 times\n received: 1 time|
|
59
|
+
)
|
60
|
+
end
|
61
|
+
|
62
|
+
it "fails when receiving message specified as not to be received with args" do
|
63
|
+
@mock.should_not_receive(:not_expected).with("unexpected text")
|
64
|
+
expect {
|
65
|
+
@mock.not_expected("unexpected text")
|
66
|
+
violated
|
67
|
+
}.to raise_error(
|
68
|
+
RSpec::Mocks::MockExpectationError,
|
69
|
+
%Q|(Double "test double").not_expected("unexpected text")\n expected: 0 times\n received: 1 time|
|
70
|
+
)
|
71
|
+
end
|
72
|
+
|
73
|
+
it "passes when receiving message specified as not to be received with wrong args" do
|
74
|
+
@mock.should_not_receive(:not_expected).with("unexpected text")
|
75
|
+
@mock.not_expected "really unexpected text"
|
76
|
+
@mock.rspec_verify
|
77
|
+
end
|
78
|
+
|
79
|
+
it "allows block to calculate return values" do
|
80
|
+
@mock.should_receive(:something).with("a","b","c").and_return { |a,b,c| c+b+a }
|
81
|
+
@mock.something("a","b","c").should eq "cba"
|
82
|
+
@mock.rspec_verify
|
83
|
+
end
|
84
|
+
|
85
|
+
it "allows parameter as return value" do
|
86
|
+
@mock.should_receive(:something).with("a","b","c").and_return("booh")
|
87
|
+
@mock.something("a","b","c").should eq "booh"
|
88
|
+
@mock.rspec_verify
|
89
|
+
end
|
90
|
+
|
91
|
+
it "returns the previously stubbed value if no return value is set" do
|
92
|
+
@mock.stub(:something).with("a","b","c").and_return(:stubbed_value)
|
93
|
+
@mock.should_receive(:something).with("a","b","c")
|
94
|
+
@mock.something("a","b","c").should eq :stubbed_value
|
95
|
+
@mock.rspec_verify
|
96
|
+
end
|
97
|
+
|
98
|
+
it "returns nil if no return value is set and there is no previously stubbed value" do
|
99
|
+
@mock.should_receive(:something).with("a","b","c")
|
100
|
+
@mock.something("a","b","c").should be_nil
|
101
|
+
@mock.rspec_verify
|
102
|
+
end
|
103
|
+
|
104
|
+
it "raises exception if args don't match when method called" do
|
105
|
+
@mock.should_receive(:something).with("a","b","c").and_return("booh")
|
106
|
+
lambda {
|
107
|
+
@mock.something("a","d","c")
|
108
|
+
violated
|
109
|
+
}.should raise_error(RSpec::Mocks::MockExpectationError, "Double \"test double\" received :something with unexpected arguments\n expected: (\"a\", \"b\", \"c\")\n got: (\"a\", \"d\", \"c\")")
|
110
|
+
end
|
111
|
+
|
112
|
+
describe "even when a similar expectation with different arguments exist" do
|
113
|
+
it "raises exception if args don't match when method called, correctly reporting the offending arguments" do
|
114
|
+
@mock.should_receive(:something).with("a","b","c").once
|
115
|
+
@mock.should_receive(:something).with("z","x","c").once
|
116
|
+
lambda {
|
117
|
+
@mock.something("a","b","c")
|
118
|
+
@mock.something("z","x","g")
|
119
|
+
}.should raise_error(RSpec::Mocks::MockExpectationError, "Double \"test double\" received :something with unexpected arguments\n expected: (\"z\", \"x\", \"c\")\n got: (\"z\", \"x\", \"g\")")
|
120
|
+
end
|
121
|
+
end
|
122
|
+
|
123
|
+
it "raises exception if args don't match when method called even when the method is stubbed" do
|
124
|
+
@mock.stub(:something)
|
125
|
+
@mock.should_receive(:something).with("a","b","c")
|
126
|
+
lambda {
|
127
|
+
@mock.something("a","d","c")
|
128
|
+
@mock.rspec_verify
|
129
|
+
}.should raise_error(RSpec::Mocks::MockExpectationError, "Double \"test double\" received :something with unexpected arguments\n expected: (\"a\", \"b\", \"c\")\n got: (\"a\", \"d\", \"c\")")
|
130
|
+
end
|
131
|
+
|
132
|
+
it "raises exception if args don't match when method called even when using null_object" do
|
133
|
+
@mock = double("test double").as_null_object
|
134
|
+
@mock.should_receive(:something).with("a","b","c")
|
135
|
+
lambda {
|
136
|
+
@mock.something("a","d","c")
|
137
|
+
@mock.rspec_verify
|
138
|
+
}.should raise_error(RSpec::Mocks::MockExpectationError, "Double \"test double\" received :something with unexpected arguments\n expected: (\"a\", \"b\", \"c\")\n got: (\"a\", \"d\", \"c\")")
|
139
|
+
end
|
140
|
+
|
141
|
+
describe 'with a method that has a default argument' do
|
142
|
+
it "raises an exception if the arguments don't match when the method is called, correctly reporting the offending arguments" do
|
143
|
+
def @mock.method_with_default_argument(arg={}); end
|
144
|
+
@mock.should_receive(:method_with_default_argument).with({})
|
145
|
+
|
146
|
+
expect {
|
147
|
+
@mock.method_with_default_argument(nil)
|
148
|
+
@mock.rspec_verify
|
149
|
+
}.to raise_error(RSpec::Mocks::MockExpectationError, "Double \"test double\" received :method_with_default_argument with unexpected arguments\n expected: ({})\n got: (nil)")
|
150
|
+
end
|
151
|
+
end
|
152
|
+
|
153
|
+
it "fails if unexpected method called" do
|
154
|
+
lambda {
|
155
|
+
@mock.something("a","b","c")
|
156
|
+
violated
|
157
|
+
}.should raise_error(RSpec::Mocks::MockExpectationError, "Double \"test double\" received unexpected message :something with (\"a\", \"b\", \"c\")")
|
158
|
+
end
|
159
|
+
|
160
|
+
it "uses block for expectation if provided" do
|
161
|
+
@mock.should_receive(:something) do | a, b |
|
162
|
+
a.should eq "a"
|
163
|
+
b.should eq "b"
|
164
|
+
"booh"
|
165
|
+
end
|
166
|
+
@mock.something("a", "b").should eq "booh"
|
167
|
+
@mock.rspec_verify
|
168
|
+
end
|
169
|
+
|
170
|
+
it "fails if expectation block fails" do
|
171
|
+
@mock.should_receive(:something) {| bool | bool.should be_true}
|
172
|
+
expect {
|
173
|
+
@mock.something false
|
174
|
+
}.to raise_error(RSpec::Mocks::MockExpectationError, /Double \"test double\" received :something but passed block failed with: expected false to be true/)
|
175
|
+
end
|
176
|
+
|
177
|
+
it "passes block to expectation block", :ruby => '> 1.8.6' do
|
178
|
+
a = nil
|
179
|
+
# We eval this because Ruby 1.8.6's syntax parser barfs on { |&block| ... }
|
180
|
+
# and prevents the entire spec suite from running.
|
181
|
+
eval("@mock.should_receive(:something) { |&block| a = block }")
|
182
|
+
b = lambda { }
|
183
|
+
@mock.something(&b)
|
184
|
+
a.should eq b
|
185
|
+
@mock.rspec_verify
|
186
|
+
end
|
187
|
+
|
188
|
+
it "fails right away when method defined as never is received" do
|
189
|
+
@mock.should_receive(:not_expected).never
|
190
|
+
expect { @mock.not_expected }.to raise_error(
|
191
|
+
RSpec::Mocks::MockExpectationError,
|
192
|
+
%Q|(Double "test double").not_expected(no args)\n expected: 0 times\n received: 1 time|
|
193
|
+
)
|
194
|
+
end
|
195
|
+
|
196
|
+
it "eventually fails when method defined as never is received" do
|
197
|
+
@mock.should_receive(:not_expected).never
|
198
|
+
expect { @mock.not_expected }.to raise_error(
|
199
|
+
RSpec::Mocks::MockExpectationError,
|
200
|
+
%Q|(Double "test double").not_expected(no args)\n expected: 0 times\n received: 1 time|
|
201
|
+
)
|
202
|
+
end
|
203
|
+
|
204
|
+
it "raises when told to" do
|
205
|
+
@mock.should_receive(:something).and_raise(RuntimeError)
|
206
|
+
lambda do
|
207
|
+
@mock.something
|
208
|
+
end.should raise_error(RuntimeError)
|
209
|
+
end
|
210
|
+
|
211
|
+
it "raises passed an Exception instance" do
|
212
|
+
error = RuntimeError.new("error message")
|
213
|
+
@mock.should_receive(:something).and_raise(error)
|
214
|
+
lambda {
|
215
|
+
@mock.something
|
216
|
+
}.should raise_error(RuntimeError, "error message")
|
217
|
+
end
|
218
|
+
|
219
|
+
it "raises RuntimeError with passed message" do
|
220
|
+
@mock.should_receive(:something).and_raise("error message")
|
221
|
+
lambda {
|
222
|
+
@mock.something
|
223
|
+
}.should raise_error(RuntimeError, "error message")
|
224
|
+
end
|
225
|
+
|
226
|
+
it "does not raise when told to if args dont match" do
|
227
|
+
@mock.should_receive(:something).with(2).and_raise(RuntimeError)
|
228
|
+
lambda {
|
229
|
+
@mock.something 1
|
230
|
+
}.should raise_error(RSpec::Mocks::MockExpectationError)
|
231
|
+
end
|
232
|
+
|
233
|
+
it "throws when told to" do
|
234
|
+
@mock.should_receive(:something).and_throw(:blech)
|
235
|
+
lambda {
|
236
|
+
@mock.something
|
237
|
+
}.should throw_symbol(:blech)
|
238
|
+
end
|
239
|
+
|
240
|
+
it "raises when explicit return and block constrained" do
|
241
|
+
lambda {
|
242
|
+
@mock.should_receive(:fruit) do |colour|
|
243
|
+
:strawberry
|
244
|
+
end.and_return :apple
|
245
|
+
}.should raise_error(RSpec::Mocks::AmbiguousReturnError)
|
246
|
+
end
|
247
|
+
|
248
|
+
it "ignores args on any args" do
|
249
|
+
@mock.should_receive(:something).at_least(:once).with(any_args)
|
250
|
+
@mock.something
|
251
|
+
@mock.something 1
|
252
|
+
@mock.something "a", 2
|
253
|
+
@mock.something [], {}, "joe", 7
|
254
|
+
@mock.rspec_verify
|
255
|
+
end
|
256
|
+
|
257
|
+
it "fails on no args if any args received" do
|
258
|
+
@mock.should_receive(:something).with(no_args())
|
259
|
+
lambda {
|
260
|
+
@mock.something 1
|
261
|
+
}.should raise_error(RSpec::Mocks::MockExpectationError, "Double \"test double\" received :something with unexpected arguments\n expected: (no args)\n got: (1)")
|
262
|
+
end
|
263
|
+
|
264
|
+
it "fails when args are expected but none are received" do
|
265
|
+
@mock.should_receive(:something).with(1)
|
266
|
+
lambda {
|
267
|
+
@mock.something
|
268
|
+
}.should raise_error(RSpec::Mocks::MockExpectationError, "Double \"test double\" received :something with unexpected arguments\n expected: (1)\n got: (no args)")
|
269
|
+
end
|
270
|
+
|
271
|
+
it "returns value from block by default" do
|
272
|
+
@mock.stub(:method_that_yields).and_yield
|
273
|
+
@mock.method_that_yields { :returned_obj }.should eq :returned_obj
|
274
|
+
@mock.rspec_verify
|
275
|
+
end
|
276
|
+
|
277
|
+
it "yields 0 args to blocks that take a variable number of arguments" do
|
278
|
+
@mock.should_receive(:yield_back).with(no_args()).once.and_yield
|
279
|
+
a = nil
|
280
|
+
@mock.yield_back {|*x| a = x}
|
281
|
+
a.should eq []
|
282
|
+
@mock.rspec_verify
|
283
|
+
end
|
284
|
+
|
285
|
+
it "yields 0 args multiple times to blocks that take a variable number of arguments" do
|
286
|
+
@mock.should_receive(:yield_back).once.with(no_args()).once.and_yield.
|
287
|
+
and_yield
|
288
|
+
b = []
|
289
|
+
@mock.yield_back {|*a| b << a}
|
290
|
+
b.should eq [ [], [] ]
|
291
|
+
@mock.rspec_verify
|
292
|
+
end
|
293
|
+
|
294
|
+
it "yields one arg to blocks that take a variable number of arguments" do
|
295
|
+
@mock.should_receive(:yield_back).with(no_args()).once.and_yield(99)
|
296
|
+
a = nil
|
297
|
+
@mock.yield_back {|*x| a = x}
|
298
|
+
a.should eq [99]
|
299
|
+
@mock.rspec_verify
|
300
|
+
end
|
301
|
+
|
302
|
+
it "yields one arg 3 times consecutively to blocks that take a variable number of arguments" do
|
303
|
+
@mock.should_receive(:yield_back).once.with(no_args()).once.and_yield(99).
|
304
|
+
and_yield(43).
|
305
|
+
and_yield("something fruity")
|
306
|
+
b = []
|
307
|
+
@mock.yield_back {|*a| b << a}
|
308
|
+
b.should eq [[99], [43], ["something fruity"]]
|
309
|
+
@mock.rspec_verify
|
310
|
+
end
|
311
|
+
|
312
|
+
it "yields many args to blocks that take a variable number of arguments" do
|
313
|
+
@mock.should_receive(:yield_back).with(no_args()).once.and_yield(99, 27, "go")
|
314
|
+
a = nil
|
315
|
+
@mock.yield_back {|*x| a = x}
|
316
|
+
a.should eq [99, 27, "go"]
|
317
|
+
@mock.rspec_verify
|
318
|
+
end
|
319
|
+
|
320
|
+
it "yields many args 3 times consecutively to blocks that take a variable number of arguments" do
|
321
|
+
@mock.should_receive(:yield_back).once.with(no_args()).once.and_yield(99, :green, "go").
|
322
|
+
and_yield("wait", :amber).
|
323
|
+
and_yield("stop", 12, :red)
|
324
|
+
b = []
|
325
|
+
@mock.yield_back {|*a| b << a}
|
326
|
+
b.should eq [[99, :green, "go"], ["wait", :amber], ["stop", 12, :red]]
|
327
|
+
@mock.rspec_verify
|
328
|
+
end
|
329
|
+
|
330
|
+
it "yields single value" do
|
331
|
+
@mock.should_receive(:yield_back).with(no_args()).once.and_yield(99)
|
332
|
+
a = nil
|
333
|
+
@mock.yield_back {|x| a = x}
|
334
|
+
a.should eq 99
|
335
|
+
@mock.rspec_verify
|
336
|
+
end
|
337
|
+
|
338
|
+
it "yields single value 3 times consecutively" do
|
339
|
+
@mock.should_receive(:yield_back).once.with(no_args()).once.and_yield(99).
|
340
|
+
and_yield(43).
|
341
|
+
and_yield("something fruity")
|
342
|
+
b = []
|
343
|
+
@mock.yield_back {|a| b << a}
|
344
|
+
b.should eq [99, 43, "something fruity"]
|
345
|
+
@mock.rspec_verify
|
346
|
+
end
|
347
|
+
|
348
|
+
it "yields two values" do
|
349
|
+
@mock.should_receive(:yield_back).with(no_args()).once.and_yield('wha', 'zup')
|
350
|
+
a, b = nil
|
351
|
+
@mock.yield_back {|x,y| a=x; b=y}
|
352
|
+
a.should eq 'wha'
|
353
|
+
b.should eq 'zup'
|
354
|
+
@mock.rspec_verify
|
355
|
+
end
|
356
|
+
|
357
|
+
it "yields two values 3 times consecutively" do
|
358
|
+
@mock.should_receive(:yield_back).once.with(no_args()).once.and_yield('wha', 'zup').
|
359
|
+
and_yield('not', 'down').
|
360
|
+
and_yield(14, 65)
|
361
|
+
c = []
|
362
|
+
@mock.yield_back {|a,b| c << [a, b]}
|
363
|
+
c.should eq [['wha', 'zup'], ['not', 'down'], [14, 65]]
|
364
|
+
@mock.rspec_verify
|
365
|
+
end
|
366
|
+
|
367
|
+
it "fails when calling yielding method with wrong arity" do
|
368
|
+
@mock.should_receive(:yield_back).with(no_args()).once.and_yield('wha', 'zup')
|
369
|
+
lambda {
|
370
|
+
@mock.yield_back {|a|}
|
371
|
+
}.should raise_error(RSpec::Mocks::MockExpectationError, "Double \"test double\" yielded |\"wha\", \"zup\"| to block with arity of 1")
|
372
|
+
end
|
373
|
+
|
374
|
+
it "fails when calling yielding method consecutively with wrong arity" do
|
375
|
+
@mock.should_receive(:yield_back).once.with(no_args()).once.and_yield('wha', 'zup').
|
376
|
+
and_yield('down').
|
377
|
+
and_yield(14, 65)
|
378
|
+
lambda {
|
379
|
+
c = []
|
380
|
+
@mock.yield_back {|a,b| c << [a, b]}
|
381
|
+
}.should raise_error(RSpec::Mocks::MockExpectationError, "Double \"test double\" yielded |\"down\"| to block with arity of 2")
|
382
|
+
end
|
383
|
+
|
384
|
+
it "fails when calling yielding method without block" do
|
385
|
+
@mock.should_receive(:yield_back).with(no_args()).once.and_yield('wha', 'zup')
|
386
|
+
lambda {
|
387
|
+
@mock.yield_back
|
388
|
+
}.should raise_error(RSpec::Mocks::MockExpectationError, "Double \"test double\" asked to yield |[\"wha\", \"zup\"]| but no block was passed")
|
389
|
+
end
|
390
|
+
|
391
|
+
it "is able to mock send" do
|
392
|
+
@mock.should_receive(:send).with(any_args)
|
393
|
+
@mock.send 'hi'
|
394
|
+
@mock.rspec_verify
|
395
|
+
end
|
396
|
+
|
397
|
+
it "is able to raise from method calling yielding mock" do
|
398
|
+
@mock.should_receive(:yield_me).and_yield 44
|
399
|
+
|
400
|
+
lambda {
|
401
|
+
@mock.yield_me do |x|
|
402
|
+
raise "Bang"
|
403
|
+
end
|
404
|
+
}.should raise_error(StandardError, "Bang")
|
405
|
+
|
406
|
+
@mock.rspec_verify
|
407
|
+
end
|
408
|
+
|
409
|
+
it "clears expectations after verify" do
|
410
|
+
@mock.should_receive(:foobar)
|
411
|
+
@mock.foobar
|
412
|
+
@mock.rspec_verify
|
413
|
+
lambda {
|
414
|
+
@mock.foobar
|
415
|
+
}.should raise_error(RSpec::Mocks::MockExpectationError, %q|Double "test double" received unexpected message :foobar with (no args)|)
|
416
|
+
end
|
417
|
+
|
418
|
+
it "restores objects to their original state on rspec_reset" do
|
419
|
+
mock = double("this is a mock")
|
420
|
+
mock.should_receive(:blah)
|
421
|
+
mock.rspec_reset
|
422
|
+
mock.rspec_verify #should throw if reset didn't work
|
423
|
+
end
|
424
|
+
|
425
|
+
it "works even after method_missing starts raising NameErrors instead of NoMethodErrors" do
|
426
|
+
# Object#method_missing throws either NameErrors or NoMethodErrors.
|
427
|
+
#
|
428
|
+
# On a fresh ruby program Object#method_missing:
|
429
|
+
# * raises a NoMethodError when called directly
|
430
|
+
# * raises a NameError when called indirectly
|
431
|
+
#
|
432
|
+
# Once Object#method_missing has been called at least once (on any object)
|
433
|
+
# it starts behaving differently:
|
434
|
+
# * raises a NameError when called directly
|
435
|
+
# * raises a NameError when called indirectly
|
436
|
+
#
|
437
|
+
# There was a bug in Mock#method_missing that relied on the fact
|
438
|
+
# that calling Object#method_missing directly raises a NoMethodError.
|
439
|
+
# This example tests that the bug doesn't exist anymore.
|
440
|
+
|
441
|
+
|
442
|
+
# Ensures that method_missing always raises NameErrors.
|
443
|
+
a_method_that_doesnt_exist rescue
|
444
|
+
|
445
|
+
|
446
|
+
@mock.should_receive(:foobar)
|
447
|
+
@mock.foobar
|
448
|
+
@mock.rspec_verify
|
449
|
+
|
450
|
+
lambda { @mock.foobar }.should_not raise_error(NameError)
|
451
|
+
lambda { @mock.foobar }.should raise_error(RSpec::Mocks::MockExpectationError)
|
452
|
+
end
|
453
|
+
|
454
|
+
it "temporarily replaces a method stub on a mock" do
|
455
|
+
@mock.stub(:msg).and_return(:stub_value)
|
456
|
+
@mock.should_receive(:msg).with(:arg).and_return(:mock_value)
|
457
|
+
@mock.msg(:arg).should equal(:mock_value)
|
458
|
+
@mock.msg.should equal(:stub_value)
|
459
|
+
@mock.msg.should equal(:stub_value)
|
460
|
+
@mock.rspec_verify
|
461
|
+
end
|
462
|
+
|
463
|
+
it "does not require a different signature to replace a method stub" do
|
464
|
+
@mock.stub(:msg).and_return(:stub_value)
|
465
|
+
@mock.should_receive(:msg).and_return(:mock_value)
|
466
|
+
@mock.msg(:arg).should equal(:mock_value)
|
467
|
+
@mock.msg.should equal(:stub_value)
|
468
|
+
@mock.msg.should equal(:stub_value)
|
469
|
+
@mock.rspec_verify
|
470
|
+
end
|
471
|
+
|
472
|
+
it "raises an error when a previously stubbed method has a negative expectation" do
|
473
|
+
@mock.stub(:msg).and_return(:stub_value)
|
474
|
+
@mock.should_not_receive(:msg).and_return(:mock_value)
|
475
|
+
lambda {@mock.msg(:arg)}.should raise_error(RSpec::Mocks::MockExpectationError)
|
476
|
+
end
|
477
|
+
|
478
|
+
it "temporarily replaces a method stub on a non-mock" do
|
479
|
+
non_mock = Object.new
|
480
|
+
non_mock.stub(:msg).and_return(:stub_value)
|
481
|
+
non_mock.should_receive(:msg).with(:arg).and_return(:mock_value)
|
482
|
+
non_mock.msg(:arg).should equal(:mock_value)
|
483
|
+
non_mock.msg.should equal(:stub_value)
|
484
|
+
non_mock.msg.should equal(:stub_value)
|
485
|
+
non_mock.rspec_verify
|
486
|
+
end
|
487
|
+
|
488
|
+
it "returns the stubbed value when no new value specified" do
|
489
|
+
@mock.stub(:msg).and_return(:stub_value)
|
490
|
+
@mock.should_receive(:msg)
|
491
|
+
@mock.msg.should equal(:stub_value)
|
492
|
+
@mock.rspec_verify
|
493
|
+
end
|
494
|
+
|
495
|
+
it "returns the stubbed value when stubbed with args and no new value specified" do
|
496
|
+
@mock.stub(:msg).with(:arg).and_return(:stub_value)
|
497
|
+
@mock.should_receive(:msg).with(:arg)
|
498
|
+
@mock.msg(:arg).should equal(:stub_value)
|
499
|
+
@mock.rspec_verify
|
500
|
+
end
|
501
|
+
|
502
|
+
it "does not mess with the stub's yielded values when also mocked" do
|
503
|
+
@mock.stub(:yield_back).and_yield(:stub_value)
|
504
|
+
@mock.should_receive(:yield_back).and_yield(:mock_value)
|
505
|
+
@mock.yield_back{|v| v.should eq :mock_value }
|
506
|
+
@mock.yield_back{|v| v.should eq :stub_value }
|
507
|
+
@mock.rspec_verify
|
508
|
+
end
|
509
|
+
|
510
|
+
it "yields multiple values after a similar stub" do
|
511
|
+
File.stub(:open).and_yield(:stub_value)
|
512
|
+
File.should_receive(:open).and_yield(:first_call).and_yield(:second_call)
|
513
|
+
yielded_args = []
|
514
|
+
File.open {|v| yielded_args << v }
|
515
|
+
yielded_args.should eq [:first_call, :second_call]
|
516
|
+
File.open {|v| v.should eq :stub_value }
|
517
|
+
File.rspec_verify
|
518
|
+
end
|
519
|
+
|
520
|
+
it "assigns stub return values" do
|
521
|
+
mock = RSpec::Mocks::Mock.new('name', :message => :response)
|
522
|
+
mock.message.should eq :response
|
523
|
+
end
|
524
|
+
|
525
|
+
end
|
526
|
+
|
527
|
+
describe "a mock message receiving a block" do
|
528
|
+
before(:each) do
|
529
|
+
@mock = double("mock")
|
530
|
+
@calls = 0
|
531
|
+
end
|
532
|
+
|
533
|
+
def add_call
|
534
|
+
@calls = @calls + 1
|
535
|
+
end
|
536
|
+
|
537
|
+
it "calls the block after #should_receive" do
|
538
|
+
@mock.should_receive(:foo) { add_call }
|
539
|
+
|
540
|
+
@mock.foo
|
541
|
+
|
542
|
+
@calls.should eq 1
|
543
|
+
end
|
544
|
+
|
545
|
+
it "calls the block after #should_receive after a similar stub" do
|
546
|
+
@mock.stub(:foo).and_return(:bar)
|
547
|
+
@mock.should_receive(:foo) { add_call }
|
548
|
+
|
549
|
+
@mock.foo
|
550
|
+
|
551
|
+
@calls.should eq 1
|
552
|
+
end
|
553
|
+
|
554
|
+
it "calls the block after #once" do
|
555
|
+
@mock.should_receive(:foo).once { add_call }
|
556
|
+
|
557
|
+
@mock.foo
|
558
|
+
|
559
|
+
@calls.should eq 1
|
560
|
+
end
|
561
|
+
|
562
|
+
it "calls the block after #twice" do
|
563
|
+
@mock.should_receive(:foo).twice { add_call }
|
564
|
+
|
565
|
+
@mock.foo
|
566
|
+
@mock.foo
|
567
|
+
|
568
|
+
@calls.should eq 2
|
569
|
+
end
|
570
|
+
|
571
|
+
it "calls the block after #times" do
|
572
|
+
@mock.should_receive(:foo).exactly(10).times { add_call }
|
573
|
+
|
574
|
+
(1..10).each { @mock.foo }
|
575
|
+
|
576
|
+
@calls.should eq 10
|
577
|
+
end
|
578
|
+
|
579
|
+
it "calls the block after #any_number_of_times" do
|
580
|
+
@mock.should_receive(:foo).any_number_of_times { add_call }
|
581
|
+
|
582
|
+
(1..7).each { @mock.foo }
|
583
|
+
|
584
|
+
@calls.should eq 7
|
585
|
+
end
|
586
|
+
|
587
|
+
it "calls the block after #ordered" do
|
588
|
+
@mock.should_receive(:foo).ordered { add_call }
|
589
|
+
@mock.should_receive(:bar).ordered { add_call }
|
590
|
+
|
591
|
+
@mock.foo
|
592
|
+
@mock.bar
|
593
|
+
|
594
|
+
@calls.should eq 2
|
595
|
+
end
|
596
|
+
end
|
597
|
+
|
598
|
+
describe 'string representation generated by #to_s' do
|
599
|
+
it 'does not contain < because that might lead to invalid HTML in some situations' do
|
600
|
+
mock = double("Dog")
|
601
|
+
valid_html_str = "#{mock}"
|
602
|
+
valid_html_str.should_not include('<')
|
603
|
+
end
|
604
|
+
end
|
605
|
+
|
606
|
+
describe "string representation generated by #to_str" do
|
607
|
+
it "looks the same as #to_s" do
|
608
|
+
double = double("Foo")
|
609
|
+
double.to_str.should eq double.to_s
|
610
|
+
end
|
611
|
+
end
|
612
|
+
|
613
|
+
describe "mock created with no name" do
|
614
|
+
it "does not use a name in a failure message" do
|
615
|
+
mock = double()
|
616
|
+
expect {mock.foo}.to raise_error(/Double received/)
|
617
|
+
end
|
618
|
+
|
619
|
+
it "does respond to initially stubbed methods" do
|
620
|
+
double = double(:foo => "woo", :bar => "car")
|
621
|
+
double.foo.should eq "woo"
|
622
|
+
double.bar.should eq "car"
|
623
|
+
end
|
624
|
+
end
|
625
|
+
|
626
|
+
describe "==" do
|
627
|
+
it "sends '== self' to the comparison object" do
|
628
|
+
first = double('first')
|
629
|
+
second = double('second')
|
630
|
+
|
631
|
+
first.should_receive(:==).with(second)
|
632
|
+
second == first
|
633
|
+
end
|
634
|
+
end
|
635
|
+
|
636
|
+
describe "with" do
|
637
|
+
before { @mock = double('double') }
|
638
|
+
context "with args" do
|
639
|
+
context "with matching args" do
|
640
|
+
it "passes" do
|
641
|
+
@mock.should_receive(:foo).with('bar')
|
642
|
+
@mock.foo('bar')
|
643
|
+
end
|
644
|
+
end
|
645
|
+
|
646
|
+
context "with non-matching args" do
|
647
|
+
it "fails" do
|
648
|
+
@mock.should_receive(:foo).with('bar')
|
649
|
+
expect do
|
650
|
+
@mock.foo('baz')
|
651
|
+
end.to raise_error
|
652
|
+
@mock.rspec_reset
|
653
|
+
end
|
654
|
+
end
|
655
|
+
|
656
|
+
context "with non-matching doubles" do
|
657
|
+
it "fails" do
|
658
|
+
d1 = double('1')
|
659
|
+
d2 = double('2')
|
660
|
+
@mock.should_receive(:foo).with(d1)
|
661
|
+
expect do
|
662
|
+
@mock.foo(d2)
|
663
|
+
end.to raise_error
|
664
|
+
@mock.rspec_reset
|
665
|
+
end
|
666
|
+
end
|
667
|
+
|
668
|
+
context "with non-matching doubles as_null_object" do
|
669
|
+
it "fails" do
|
670
|
+
d1 = double('1').as_null_object
|
671
|
+
d2 = double('2').as_null_object
|
672
|
+
@mock.should_receive(:foo).with(d1)
|
673
|
+
expect do
|
674
|
+
@mock.foo(d2)
|
675
|
+
end.to raise_error
|
676
|
+
@mock.rspec_reset
|
677
|
+
end
|
678
|
+
end
|
679
|
+
end
|
680
|
+
|
681
|
+
context "with a block" do
|
682
|
+
context "with matching args" do
|
683
|
+
it "returns the result of the block" do
|
684
|
+
@mock.should_receive(:foo).with('bar') { 'baz' }
|
685
|
+
@mock.foo('bar').should eq('baz')
|
686
|
+
end
|
687
|
+
end
|
688
|
+
|
689
|
+
context "with non-matching args" do
|
690
|
+
it "fails" do
|
691
|
+
@mock.should_receive(:foo).with('bar') { 'baz' }
|
692
|
+
expect do
|
693
|
+
@mock.foo('wrong').should eq('baz')
|
694
|
+
end.to raise_error(/received :foo with unexpected arguments/)
|
695
|
+
@mock.rspec_reset
|
696
|
+
end
|
697
|
+
end
|
698
|
+
end
|
699
|
+
end
|
700
|
+
|
701
|
+
end
|
702
|
+
end
|