Created
December 16, 2013 12:03
-
-
Save jessereynolds/7986008 to your computer and use it in GitHub Desktop.
flapjack with rspec 3 - failing example with SHOW_LOGGER_ALL gives duplicated output
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ SHOW_LOGGER_ALL=1 be rspec ./spec/lib/flapjack/gateways/api/contact_methods_spec.rb:97 | |
Run options: include {:locations=>{"./spec/lib/flapjack/gateways/api/contact_methods_spec.rb"=>[97]}} | |
Run options: include {:locations=>{"./spec/lib/flapjack/gateways/api/contact_methods_spec.rb"=>[97]}} | |
Flapjack::Gateways::API::ContactMethods | |
INFO: starting api - class | |
ERROR: Error: TypeError - can't convert Array into Hash | |
/Users/jesse/.rbenv/versions/1.9.3-p448/lib/ruby/gems/1.9.1/gems/rack-1.5.2/lib/rack/request.rb:225:in `merge' | |
/Users/jesse/.rbenv/versions/1.9.3-p448/lib/ruby/gems/1.9.1/gems/rack-1.5.2/lib/rack/request.rb:225:in `params' | |
/Users/jesse/.rbenv/versions/1.9.3-p448/lib/ruby/gems/1.9.1/gems/sinatra-1.4.3/lib/sinatra/base.rb:877:in `call!' | |
/Users/jesse/.rbenv/versions/1.9.3-p448/lib/ruby/gems/1.9.1/gems/sinatra-1.4.3/lib/sinatra/base.rb:870:in `call' | |
/Users/jesse/src/flpjck/flapjack/lib/flapjack/gateways/api/rack/json_params_parser.rb:14:in `call' | |
/Users/jesse/.rbenv/versions/1.9.3-p448/lib/ruby/gems/1.9.1/gems/rack-1.5.2/lib/rack/methodoverride.rb:21:in `call' | |
/Users/jesse/.rbenv/versions/1.9.3-p448/lib/ruby/gems/1.9.1/gems/rack-fiber_pool-0.9.3/lib/rack/fiber_pool.rb:22:in `block in call' | |
/Users/jesse/.rbenv/versions/1.9.3-p448/lib/ruby/gems/1.9.1/gems/rack-fiber_pool-0.9.3/lib/fiber_pool.rb:48:in `call' | |
/Users/jesse/.rbenv/versions/1.9.3-p448/lib/ruby/gems/1.9.1/gems/rack-fiber_pool-0.9.3/lib/fiber_pool.rb:48:in `block (3 levels) in initialize' | |
/Users/jesse/.rbenv/versions/1.9.3-p448/lib/ruby/gems/1.9.1/gems/rack-fiber_pool-0.9.3/lib/fiber_pool.rb:47:in `loop' | |
/Users/jesse/.rbenv/versions/1.9.3-p448/lib/ruby/gems/1.9.1/gems/rack-fiber_pool-0.9.3/lib/fiber_pool.rb:47:in `block (2 levels) in initialize' | |
1) Flapjack::Gateways::API::ContactMethods creates a contact with supplied ID | |
Failure/Error: expect(last_response).to == 200 | |
ArgumentError: | |
The expect syntax does not support operator matchers, so you must pass a matcher to `#to`. | |
# ./spec/lib/flapjack/gateways/api/contact_methods_spec.rb:114:in `block (2 levels) in <top (required)>' | |
# ./spec/spec_helper.rb:93:in `block (2 levels) in <top (required)>' | |
1/1 |================================================== 100 ==================================================>| Time: 00:00:00 | |
creates a contact with supplied ID (FAILED - 1) | |
Failures: | |
1) Flapjack::Gateways::API::ContactMethods creates a contact with supplied ID | |
Failure/Error: expect(last_response).to == 200 | |
ArgumentError: | |
The expect syntax does not support operator matchers, so you must pass a matcher to `#to`. | |
# ./spec/lib/flapjack/gateways/api/contact_methods_spec.rb:114:in `block (2 levels) in <top (required)>' | |
# ./spec/spec_helper.rb:93:in `block (2 levels) in <top (required)>' | |
Finished in 0.34497 seconds | |
1 example, 1 failure | |
Failed examples: | |
rspec ./spec/lib/flapjack/gateways/api/contact_methods_spec.rb:97 # Flapjack::Gateways::API::ContactMethods creates a contact with supplied ID | |
Finished in 0.34497 seconds | |
1 example, 1 failure | |
Failed examples: | |
rspec ./spec/lib/flapjack/gateways/api/contact_methods_spec.rb:97 # Flapjack::Gateways::API::ContactMethods creates a contact with supplied ID | |
Randomized with seed 1787 | |
Randomized with seed 1787 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment