Skip to content

Instantly share code, notes, and snippets.

@suryart
Created July 3, 2013 18:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save suryart/5921273 to your computer and use it in GitHub Desktop.
Save suryart/5921273 to your computer and use it in GitHub Desktop.
console output for order spec example for spree frontend
[#<Spree::Product id: 1, name: "Product #1 - 6731", description: "Dicta tenetur maxime velit facere. In quisquam odit...", available_on: "2013-07-02 18:13:39", deleted_at: nil, permalink: "product-number-1-6731", meta_description: nil, meta_keywords: nil, tax_category_id: 1, shipping_category_id: 1, created_at: "2013-07-03 18:13:40", updated_at: "2013-07-03 18:13:40">]
#<Spree::Product id: 1, name: "Product #1 - 6731", description: "Dicta tenetur maxime velit facere. In quisquam odit...", available_on: "2013-07-02 18:13:39", deleted_at: nil, permalink: "product-number-1-6731", meta_description: nil, meta_keywords: nil, tax_category_id: 1, shipping_category_id: 1, created_at: "2013-07-03 18:13:40", updated_at: "2013-07-03 18:13:40">
/products/product-number-1-6731
F
Failures:
1) Orders should allow a user to see product name
Failure/Error: find('.product-title').text.should equal product.name
Capybara::ElementNotFound:
Unable to find css ".product-title"
# /home/surya/.rvm/gems/ruby-1.9.3-p327/gems/capybara-2.1.0/lib/capybara/node/finders.rb:41:in `block in find'
# /home/surya/.rvm/gems/ruby-1.9.3-p327/gems/capybara-2.1.0/lib/capybara/node/base.rb:81:in `synchronize'
# /home/surya/.rvm/gems/ruby-1.9.3-p327/gems/capybara-2.1.0/lib/capybara/node/finders.rb:30:in `find'
# /home/surya/.rvm/gems/ruby-1.9.3-p327/gems/capybara-2.1.0/lib/capybara/session.rb:354:in `block (2 levels) in <class:Session>'
# /home/surya/.rvm/gems/ruby-1.9.3-p327/gems/capybara-2.1.0/lib/capybara/dsl.rb:51:in `block (2 levels) in <module:DSL>'
# /home/surya/projects/ruby/rails/spree/extensions/example_extension/spec/requests/order_spec.rb:22:in `block (2 levels) in <top (required)>'
# /home/surya/.rvm/gems/ruby-1.9.3-p327/gems/rspec-core-2.13.1/lib/rspec/core/example.rb:114:in `instance_eval'
# /home/surya/.rvm/gems/ruby-1.9.3-p327/gems/rspec-core-2.13.1/lib/rspec/core/example.rb:114:in `block in run'
# /home/surya/.rvm/gems/ruby-1.9.3-p327/gems/rspec-core-2.13.1/lib/rspec/core/example.rb:254:in `with_around_each_hooks'
# /home/surya/.rvm/gems/ruby-1.9.3-p327/gems/rspec-core-2.13.1/lib/rspec/core/example.rb:111:in `run'
# /home/surya/.rvm/gems/ruby-1.9.3-p327/gems/rspec-core-2.13.1/lib/rspec/core/example_group.rb:390:in `block in run_examples'
# /home/surya/.rvm/gems/ruby-1.9.3-p327/gems/rspec-core-2.13.1/lib/rspec/core/example_group.rb:386:in `map'
# /home/surya/.rvm/gems/ruby-1.9.3-p327/gems/rspec-core-2.13.1/lib/rspec/core/example_group.rb:386:in `run_examples'
# /home/surya/.rvm/gems/ruby-1.9.3-p327/gems/rspec-core-2.13.1/lib/rspec/core/example_group.rb:371:in `run'
# /home/surya/.rvm/gems/ruby-1.9.3-p327/gems/rspec-core-2.13.1/lib/rspec/core/command_line.rb:28:in `block (2 levels) in run'
# /home/surya/.rvm/gems/ruby-1.9.3-p327/gems/rspec-core-2.13.1/lib/rspec/core/command_line.rb:28:in `map'
# /home/surya/.rvm/gems/ruby-1.9.3-p327/gems/rspec-core-2.13.1/lib/rspec/core/command_line.rb:28:in `block in run'
# /home/surya/.rvm/gems/ruby-1.9.3-p327/gems/rspec-core-2.13.1/lib/rspec/core/reporter.rb:34:in `report'
# /home/surya/.rvm/gems/ruby-1.9.3-p327/gems/rspec-core-2.13.1/lib/rspec/core/command_line.rb:25:in `run'
# /home/surya/.rvm/gems/ruby-1.9.3-p327/gems/rspec-core-2.13.1/lib/rspec/core/runner.rb:80:in `run'
# /home/surya/.rvm/gems/ruby-1.9.3-p327/gems/rspec-core-2.13.1/lib/rspec/core/runner.rb:17:in `block in autorun'
Finished in 25.39 seconds
1 example, 1 failure
Failed examples:
rspec ./spec/requests/order_spec.rb:14 # Orders should allow a user to see product name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment