Skip to content

Instantly share code, notes, and snippets.

@jpuccino
Created August 7, 2014 18:24
Show Gist options
  • Save jpuccino/a597a87c24d9b0bba2cf to your computer and use it in GitHub Desktop.
Save jpuccino/a597a87c24d9b0bba2cf to your computer and use it in GitHub Desktop.
Failing Tests
rspec
..................................................................................................................................................................................................................................................................F.F............................F..............................................................................................................................................................F.......................................................................F....................................................................................................................................................................................................................................................................{"report_type"=>"platform_buyer", "rows_per"=>["creative_id"], "timezone"=>"EST", "columns"=>["creative_id", "imps_bought", "buyer_ecpm", "buyer_spend"]}
..FF.....................................
Failures:
1) AdOrders Creating AdOrder should create a default retargeting strategy
Failure/Error: find("li", text: retargeting_pool.pixel.name.upcase).click
Capybara::ElementNotFound:
Unable to find css "li" with text "CM.RETARGETING"
# ./spec/integration/ad_orders_spec.rb:25:in `fill_in_default_ad_order_attrs'
# ./spec/integration/ad_orders_spec.rb:41:in `block (3 levels) in <top (required)>'
2) AdOrders Creating AdOrder should create a default creatives
Failure/Error: find("li", text: retargeting_pool.pixel.name.upcase).click
Capybara::ElementNotFound:
Unable to find css "li" with text "CM.RETARGETING"
# ./spec/integration/ad_orders_spec.rb:25:in `fill_in_default_ad_order_attrs'
# ./spec/integration/ad_orders_spec.rb:62:in `block (3 levels) in <top (required)>'
3) AdOrdersController GET /#/ad_orders/new Form retargeting_pool options
Failure/Error: actual.should include(*expected)
expected "" to include "CM.RETARGETING"
# ./spec/integration/ad_orders_create_spec.rb:60:in `block (4 levels) in <top (required)>'
4) Users pending deleting users should let me delete pending users I know I will never approve
Failure/Error: expect{ page.find(u1_id) }.to raise_error(Capybara::ElementNotFound)
expected Capybara::ElementNotFound but nothing was raised
# ./spec/requests/users_spec.rb:57:in `block (4 levels) in <top (required)>'
5) AdOrdersDmas GET /#/ad_orders/new Manage Dmas Include the multiple dmas codes to the targeted
Failure/Error: find("#create-new-ad-btn") # make sure we're back on index page
Capybara::ElementNotFound:
Unable to find css "#create-new-ad-btn"
# ./spec/integration/ad_orders_dmas_spec.rb:61:in `block (4 levels) in <top (required)>'
6) AdOrdersStates GET /#/ad_orders/new Manage States Find and include states code to the targeted
Failure/Error: expect(find(".alerts")).to have_content(/Successfully created #{default_ad_order_attrs[:name]}/i)
expected #has_content?(/Successfully created Ad Order/i) to return true, got false
# ./spec/integration/ad_orders_states_spec.rb:77:in `block (4 levels) in <top (required)>'
7) AdOrdersStates GET /#/ad_orders/new Manage States Include all states codes to the targeted
Failure/Error: expect(find(".alerts")).to have_content(/Successfully created #{default_ad_order_attrs[:name]}/i)
expected #has_content?(/Successfully created Ad Order/i) to return true, got false
# ./spec/integration/ad_orders_states_spec.rb:64:in `block (5 levels) in <top (required)>'
# ./spec/integration/ad_orders_states_spec.rb:63:in `block (4 levels) in <top (required)>'
Deprecation Warnings:
Requiring `rspec/autorun` when running RSpec via the `rspec` command is deprecated. Called from /Users/John/.rvm/gems/ruby-2.0.0-p195@toro/gems/activesupport-4.0.1/lib/active_support/dependencies.rb:229:in `require'.
Using `should` from rspec-expectations' old `:should` syntax without explicitly enabling the syntax is deprecated. Use the new `:expect` syntax or explicitly enable `:should` instead. Called from /Users/John/Projects/aptana3_workspace/toro2/spec/models/flight_spec.rb:94:in `block (2 levels) in <top (required)>'.
Using `stub` from rspec-mocks' old `:should` syntax without explicitly enabling the syntax is deprecated. Use the new `:expect` syntax or explicitly enable `:should` instead. Called from /Users/John/Projects/aptana3_workspace/toro2/spec/controllers/angular/ad_orders_states_controller_spec.rb:6:in `block (2 levels) in <top (required)>'.
If you need more of the backtrace for any of these deprecations to
identify where to make the necessary changes, you can configure
`config.raise_errors_for_deprecations!`, and it will turn the
deprecation warnings into errors, giving you the full backtrace.
3 deprecation warnings total
Finished in 11 minutes 15 seconds (files took 10.24 seconds to load)
822 examples, 7 failures
Failed examples:
rspec ./spec/integration/ad_orders_spec.rb:40 # AdOrders Creating AdOrder should create a default retargeting strategy
rspec ./spec/integration/ad_orders_spec.rb:61 # AdOrders Creating AdOrder should create a default creatives
rspec ./spec/integration/ad_orders_create_spec.rb:50 # AdOrdersController GET /#/ad_orders/new Form retargeting_pool options
rspec ./spec/requests/users_spec.rb:50 # Users pending deleting users should let me delete pending users I know I will never approve
rspec ./spec/integration/ad_orders_dmas_spec.rb:53 # AdOrdersDmas GET /#/ad_orders/new Manage Dmas Include the multiple dmas codes to the targeted
rspec ./spec/integration/ad_orders_states_spec.rb:69 # AdOrdersStates GET /#/ad_orders/new Manage States Find and include states code to the targeted
rspec ./spec/integration/ad_orders_states_spec.rb:59 # AdOrdersStates GET /#/ad_orders/new Manage States Include all states codes to the targeted
Randomized with seed 53865
Coverage report generated for RSpec to /Users/John/Projects/aptana3_workspace/toro2/coverage. 8557 / 8944 LOC (95.67%) covered.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment