Skip to content

Instantly share code, notes, and snippets.

@laspluviosillas
Created January 3, 2014 23:35
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 laspluviosillas/8248864 to your computer and use it in GitHub Desktop.
Save laspluviosillas/8248864 to your computer and use it in GitHub Desktop.
Failures:
1) Spree::Admin::VariantsController POST Create a new variant with associated course
Failure/Error: Spree::Variant.all.count.should eq(2)
expected: 2
got: 1
(compared using ==)
# ./spec/controllers/spree/admin/variants_controller_spec.rb:26:in `block (3 levels) in <top (required)>'
2) subscription_transactions:fetch fetches all the subscription transactions from braintree
Failure/Error: subject.invoke
ActiveResource::ResourceNotFound:
Failed. Response code = 404. Response message = Not Found.
# /Users/jstrong/webapps/rails/ole_core/app/models/ole_core/chargify_subscription_manager.rb:239:in `fetch_transactions'
# /Users/jstrong/webapps/rails/ole_core/app/models/ole_core/subscription.rb:116:in `fetch_transactions'
# ./lib/tasks/subscription_transactions.rake:11:in `block (3 levels) in <top (required)>'
# ./lib/tasks/subscription_transactions.rake:10:in `block (2 levels) in <top (required)>'
# ./spec/lib/tasks/subscription_transactions_rake_spec.rb:66:in `block (2 levels) in <top (required)>'
3) subscription_transactions:fetch new subscription retrieves a 'sale' transaction from braintree
Failure/Error: subject.invoke
ActiveResource::ResourceNotFound:
Failed. Response code = 404. Response message = Not Found.
# /Users/jstrong/webapps/rails/ole_core/app/models/ole_core/chargify_subscription_manager.rb:239:in `fetch_transactions'
# /Users/jstrong/webapps/rails/ole_core/app/models/ole_core/subscription.rb:116:in `fetch_transactions'
# ./lib/tasks/subscription_transactions.rake:11:in `block (3 levels) in <top (required)>'
# ./lib/tasks/subscription_transactions.rake:10:in `block (2 levels) in <top (required)>'
# ./spec/lib/tasks/subscription_transactions_rake_spec.rb:71:in `block (3 levels) in <top (required)>'
4) subscription_transactions:fetch taxes for transaction generates subscription transaction
Failure/Error: subject.invoke
ActiveResource::ResourceNotFound:
Failed. Response code = 404. Response message = Not Found.
# /Users/jstrong/webapps/rails/ole_core/app/models/ole_core/chargify_subscription_manager.rb:239:in `fetch_transactions'
# /Users/jstrong/webapps/rails/ole_core/app/models/ole_core/subscription.rb:116:in `fetch_transactions'
# ./lib/tasks/subscription_transactions.rake:11:in `block (3 levels) in <top (required)>'
# ./lib/tasks/subscription_transactions.rake:10:in `block (2 levels) in <top (required)>'
# ./spec/lib/tasks/subscription_transactions_rake_spec.rb:79:in `block (3 levels) in <top (required)>'
5) subscription_transactions:fetch taxes for transaction without taxes populates local transaction
Failure/Error: subject.invoke
ActiveResource::ResourceNotFound:
Failed. Response code = 404. Response message = Not Found.
# /Users/jstrong/webapps/rails/ole_core/app/models/ole_core/chargify_subscription_manager.rb:239:in `fetch_transactions'
# /Users/jstrong/webapps/rails/ole_core/app/models/ole_core/subscription.rb:116:in `fetch_transactions'
# ./lib/tasks/subscription_transactions.rake:11:in `block (3 levels) in <top (required)>'
# ./lib/tasks/subscription_transactions.rake:10:in `block (2 levels) in <top (required)>'
# ./spec/lib/tasks/subscription_transactions_rake_spec.rb:86:in `block (4 levels) in <top (required)>'
6) subscription_transactions:fetch taxes for transaction with taxes populates local transaction
Failure/Error: subject.invoke
ActiveResource::ResourceNotFound:
Failed. Response code = 404. Response message = Not Found.
# /Users/jstrong/webapps/rails/ole_core/app/models/ole_core/chargify_subscription_manager.rb:239:in `fetch_transactions'
# /Users/jstrong/webapps/rails/ole_core/app/models/ole_core/subscription.rb:116:in `fetch_transactions'
# ./lib/tasks/subscription_transactions.rake:11:in `block (3 levels) in <top (required)>'
# ./lib/tasks/subscription_transactions.rake:10:in `block (2 levels) in <top (required)>'
# ./spec/lib/tasks/subscription_transactions_rake_spec.rb:98:in `block (4 levels) in <top (required)>'
7) subscription_transactions:fetch taxes for transaction with taxes updating taxes populates local transaction
Failure/Error: subject.invoke
ActiveResource::ResourceNotFound:
Failed. Response code = 404. Response message = Not Found.
# /Users/jstrong/webapps/rails/ole_core/app/models/ole_core/chargify_subscription_manager.rb:239:in `fetch_transactions'
# /Users/jstrong/webapps/rails/ole_core/app/models/ole_core/subscription.rb:116:in `fetch_transactions'
# ./lib/tasks/subscription_transactions.rake:11:in `block (3 levels) in <top (required)>'
# ./lib/tasks/subscription_transactions.rake:10:in `block (2 levels) in <top (required)>'
# ./spec/lib/tasks/subscription_transactions_rake_spec.rb:109:in `block (5 levels) in <top (required)>'
8) Manage admin products
In order to manage products in the admin panel
I want to edit, create products
Go to product edit admin panel as master without course set
Failure/Error: should_have_the_following "City", "Course"
expected there to be content "City" in "Spree Demo Site\n \n \n \n \n \n \n\n \n \n Call Us For Further Information\n \n \n 1.887.652.5262\n \n\n \n \n items in cart: (Empty)\n \n Home\n My Account\n LMS\n Logout \n\n \n\n \n \n\n \n \n \n Authorization Failure\n \n \n \n \n\n \n \n Privacy Policy Support: 1.887.652.5262\n \n\n"
# ./spec/acceptance/support/helpers.rb:54:in `block in should_have_the_following'
# ./spec/acceptance/support/helpers.rb:53:in `each'
# ./spec/acceptance/support/helpers.rb:53:in `should_have_the_following'
# ./spec/acceptance/manage_admin_products_spec.rb:49:in `block (3 levels) in <top (required)>'
# ./spec/acceptance/support/devise.rb:9:in `call'
# ./spec/acceptance/support/devise.rb:9:in `as_user'
# ./spec/acceptance/manage_admin_products_spec.rb:47:in `block (2 levels) in <top (required)>'
9) Manage admin products
In order to manage products in the admin panel
I want to edit, create products
Update product with location state and without course
Failure/Error: select 'Alaska', :from => 'State'
Capybara::ElementNotFound:
cannot select option, no select box with id, name, or label 'State' found
# (eval):2:in `select'
# ./spec/acceptance/manage_admin_products_spec.rb:97:in `block (3 levels) in <top (required)>'
# ./spec/acceptance/support/devise.rb:9:in `call'
# ./spec/acceptance/support/devise.rb:9:in `as_user'
# ./spec/acceptance/manage_admin_products_spec.rb:95:in `block (2 levels) in <top (required)>'
10) Manage admin products
In order to manage products in the admin panel
I want to edit, create products
Update product with location city and without course
Failure/Error: "City" => "some city"
Capybara::ElementNotFound:
cannot fill in, no text field, text area or password field with id, name, or label 'City' found
# (eval):2:in `fill_in'
# ./spec/acceptance/support/helpers.rb:48:in `block in fill_the_following'
# ./spec/acceptance/support/helpers.rb:47:in `each'
# ./spec/acceptance/support/helpers.rb:47:in `fill_the_following'
# ./spec/acceptance/manage_admin_products_spec.rb:109:in `block (3 levels) in <top (required)>'
# ./spec/acceptance/support/devise.rb:9:in `call'
# ./spec/acceptance/support/devise.rb:9:in `as_user'
# ./spec/acceptance/manage_admin_products_spec.rb:106:in `block (2 levels) in <top (required)>'
11) Manage admin products
In order to manage products in the admin panel
I want to edit, create products
Update product for courses with different versions
Failure/Error: page.should have_select('Course', :options => [course_v2.code_and_name])
expected select "Course" to return something
# ./spec/acceptance/manage_admin_products_spec.rb:58:in `block (3 levels) in <top (required)>'
# ./spec/acceptance/support/devise.rb:9:in `call'
# ./spec/acceptance/support/devise.rb:9:in `as_user'
# ./spec/acceptance/manage_admin_products_spec.rb:56:in `block (2 levels) in <top (required)>'
12) Manage admin products
In order to manage products in the admin panel
I want to edit, create products
Go to product edit admin panel as master
Failure/Error: should_have_the_following "City", "Course"
expected there to be content "City" in "Spree Demo Site\n \n \n \n \n \n \n\n \n \n Call Us For Further Information\n \n \n 1.887.652.5262\n \n\n \n \n items in cart: (Empty)\n \n Home\n My Account\n LMS\n Logout \n\n \n\n \n \n\n \n \n \n Authorization Failure\n \n \n \n \n\n \n \n Privacy Policy Support: 1.887.652.5262\n \n\n"
# ./spec/acceptance/support/helpers.rb:54:in `block in should_have_the_following'
# ./spec/acceptance/support/helpers.rb:53:in `each'
# ./spec/acceptance/support/helpers.rb:53:in `should_have_the_following'
# ./spec/acceptance/manage_admin_products_spec.rb:42:in `block (3 levels) in <top (required)>'
# ./spec/acceptance/support/devise.rb:9:in `call'
# ./spec/acceptance/support/devise.rb:9:in `as_user'
# ./spec/acceptance/manage_admin_products_spec.rb:40:in `block (2 levels) in <top (required)>'
13) Manage admin products
In order to manage products in the admin panel
I want to edit, create products
Update product without course set
Failure/Error: "City" => "some city"
Capybara::ElementNotFound:
cannot fill in, no text field, text area or password field with id, name, or label 'City' found
# (eval):2:in `fill_in'
# ./spec/acceptance/support/helpers.rb:48:in `block in fill_the_following'
# ./spec/acceptance/support/helpers.rb:47:in `each'
# ./spec/acceptance/support/helpers.rb:47:in `fill_the_following'
# ./spec/acceptance/manage_admin_products_spec.rb:78:in `block (3 levels) in <top (required)>'
# ./spec/acceptance/support/devise.rb:9:in `call'
# ./spec/acceptance/support/devise.rb:9:in `as_user'
# ./spec/acceptance/manage_admin_products_spec.rb:75:in `block (2 levels) in <top (required)>'
14) Manage admin products
In order to manage products in the admin panel
I want to edit, create products
Update product without location and without course
Failure/Error: select country_usa.name, :from => 'Country'
Capybara::ElementNotFound:
cannot select option, no select box with id, name, or label 'Country' found
# (eval):2:in `select'
# ./spec/acceptance/manage_admin_products_spec.rb:121:in `block (3 levels) in <top (required)>'
# ./spec/acceptance/support/devise.rb:9:in `call'
# ./spec/acceptance/support/devise.rb:9:in `as_user'
# ./spec/acceptance/manage_admin_products_spec.rb:119:in `block (2 levels) in <top (required)>'
15) Manage admin products
In order to manage products in the admin panel
I want to edit, create products
Update product
Failure/Error: "City" => "some city"
Capybara::ElementNotFound:
cannot fill in, no text field, text area or password field with id, name, or label 'City' found
# (eval):2:in `fill_in'
# ./spec/acceptance/support/helpers.rb:48:in `block in fill_the_following'
# ./spec/acceptance/support/helpers.rb:47:in `each'
# ./spec/acceptance/support/helpers.rb:47:in `fill_the_following'
# ./spec/acceptance/manage_admin_products_spec.rb:131:in `block (3 levels) in <top (required)>'
# ./spec/acceptance/support/devise.rb:9:in `call'
# ./spec/acceptance/support/devise.rb:9:in `as_user'
# ./spec/acceptance/manage_admin_products_spec.rb:128:in `block (2 levels) in <top (required)>'
16) Manage sales reps
In order to manage sales reps
I want to see and create sales reps
Go to sale reps index with NON CM sales rep as master user
Failure/Error: should_have_the_following "Is CM?", "No", user_sales_rep.full_name
expected there to be content "Is CM?" in "Spree Demo Site\n \n \n \n \n \n \n\n \n \n Call Us For Further Information\n \n \n 1.887.652.5262\n \n\n \n \n items in cart: (Empty)\n \n Home\n My Account\n LMS\n Logout \n\n \n\n \n \n\n \n \n \n You are not authorized to access this page.\n \n\n All Products\n\n No products found\n\n\n\n \n\n\n\n\n\n\n \n \n \n\n \n \n Privacy Policy Support: 1.887.652.5262\n \n\n"
# ./spec/acceptance/support/helpers.rb:54:in `block in should_have_the_following'
# ./spec/acceptance/support/helpers.rb:53:in `each'
# ./spec/acceptance/support/helpers.rb:53:in `should_have_the_following'
# ./spec/acceptance/manage_sale_reps_spec.rb:25:in `block (3 levels) in <top (required)>'
# ./spec/acceptance/support/devise.rb:9:in `call'
# ./spec/acceptance/support/devise.rb:9:in `as_user'
# ./spec/acceptance/manage_sale_reps_spec.rb:23:in `block (2 levels) in <top (required)>'
17) Manage sales reps
In order to manage sales reps
I want to see and create sales reps
Go to sale reps index with CM sales rep as master user
Failure/Error: should_have_the_following "Is CM?", "Yes", user_cm_distributor_sales_rep.full_name
expected there to be content "Is CM?" in "Spree Demo Site\n \n \n \n \n \n \n\n \n \n Call Us For Further Information\n \n \n 1.887.652.5262\n \n\n \n \n items in cart: (Empty)\n \n Home\n My Account\n LMS\n Logout \n\n \n\n \n \n\n \n \n \n You are not authorized to access this page.\n \n\n All Products\n\n No products found\n\n\n\n \n\n\n\n\n\n\n \n \n \n\n \n \n Privacy Policy Support: 1.887.652.5262\n \n\n"
# ./spec/acceptance/support/helpers.rb:54:in `block in should_have_the_following'
# ./spec/acceptance/support/helpers.rb:53:in `each'
# ./spec/acceptance/support/helpers.rb:53:in `should_have_the_following'
# ./spec/acceptance/manage_sale_reps_spec.rb:34:in `block (3 levels) in <top (required)>'
# ./spec/acceptance/support/devise.rb:9:in `call'
# ./spec/acceptance/support/devise.rb:9:in `as_user'
# ./spec/acceptance/manage_sale_reps_spec.rb:32:in `block (2 levels) in <top (required)>'
18) Manage sales reps
In order to manage sales reps
I want to see and create sales reps
Go to new sales reps as master user
Failure/Error: should_have_the_following "Email", "Password", "Role", "Sales Rep", "CM Distributor Sales Rep"
expected there to be content "Email" in "Spree Demo Site\n \n \n \n \n \n \n\n \n \n Call Us For Further Information\n \n \n 1.887.652.5262\n \n\n \n \n items in cart: (Empty)\n \n Home\n My Account\n LMS\n Logout \n\n \n\n \n \n\n \n \n \n You are not authorized to access this page.\n \n\n All Products\n\n No products found\n\n\n\n \n\n\n\n\n\n\n \n \n \n\n \n \n Privacy Policy Support: 1.887.652.5262\n \n\n"
# ./spec/acceptance/support/helpers.rb:54:in `block in should_have_the_following'
# ./spec/acceptance/support/helpers.rb:53:in `each'
# ./spec/acceptance/support/helpers.rb:53:in `should_have_the_following'
# ./spec/acceptance/manage_sale_reps_spec.rb:42:in `block (3 levels) in <top (required)>'
# ./spec/acceptance/support/devise.rb:9:in `call'
# ./spec/acceptance/support/devise.rb:9:in `as_user'
# ./spec/acceptance/manage_sale_reps_spec.rb:40:in `block (2 levels) in <top (required)>'
19) Spree::Admin::Crm::SubscriptionTransactionsController GET 'index' without params[:q] collects subscription transactions into @transactions
Failure/Error: FactoryGirl.create :subscription_order, subscription_id: subscription.id
ActiveRecord::RecordNotFound:
Couldn't find OleCore::SubscriptionPlan without an ID
# ./app/models/subscription_order.rb:299:in `set_base_total'
# ./app/models/subscription_order.rb:226:in `set_initial_state'
# ./spec/controllers/spree/admin/crm/subscription_transactions_controller_spec.rb:52:in `block (2 levels) in <top (required)>'
20) Spree::Admin::Crm::SubscriptionTransactionsController GET 'index' without params[:q] returns http success
Failure/Error: FactoryGirl.create :subscription_order, subscription_id: subscription.id
ActiveRecord::RecordNotFound:
Couldn't find OleCore::SubscriptionPlan without an ID
# ./app/models/subscription_order.rb:299:in `set_base_total'
# ./app/models/subscription_order.rb:226:in `set_initial_state'
# ./spec/controllers/spree/admin/crm/subscription_transactions_controller_spec.rb:52:in `block (2 levels) in <top (required)>'
21) Spree::Admin::Crm::SubscriptionTransactionsController GET 'index' without params[:q] renders the index template
Failure/Error: FactoryGirl.create :subscription_order, subscription_id: subscription.id
ActiveRecord::RecordNotFound:
Couldn't find OleCore::SubscriptionPlan without an ID
# ./app/models/subscription_order.rb:299:in `set_base_total'
# ./app/models/subscription_order.rb:226:in `set_initial_state'
# ./spec/controllers/spree/admin/crm/subscription_transactions_controller_spec.rb:52:in `block (2 levels) in <top (required)>'
22) Spree::Admin::Crm::SubscriptionTransactionsController GET 'index' with ransack search collects subscription transaction into @transaction that match with params
Failure/Error: FactoryGirl.create :subscription_order, subscription_id: subscription.id
ActiveRecord::RecordNotFound:
Couldn't find OleCore::SubscriptionPlan without an ID
# ./app/models/subscription_order.rb:299:in `set_base_total'
# ./app/models/subscription_order.rb:226:in `set_initial_state'
# ./spec/controllers/spree/admin/crm/subscription_transactions_controller_spec.rb:52:in `block (2 levels) in <top (required)>'
23) Spree::Admin::Crm::SubscriptionTransactionsController GET 'index' with ransack search returns http success
Failure/Error: FactoryGirl.create :subscription_order, subscription_id: subscription.id
ActiveRecord::RecordNotFound:
Couldn't find OleCore::SubscriptionPlan without an ID
# ./app/models/subscription_order.rb:299:in `set_base_total'
# ./app/models/subscription_order.rb:226:in `set_initial_state'
# ./spec/controllers/spree/admin/crm/subscription_transactions_controller_spec.rb:52:in `block (2 levels) in <top (required)>'
24) Spree::Admin::Crm::SubscriptionTransactionsController GET 'index' with ransack search renders the index template
Failure/Error: FactoryGirl.create :subscription_order, subscription_id: subscription.id
ActiveRecord::RecordNotFound:
Couldn't find OleCore::SubscriptionPlan without an ID
# ./app/models/subscription_order.rb:299:in `set_base_total'
# ./app/models/subscription_order.rb:226:in `set_initial_state'
# ./spec/controllers/spree/admin/crm/subscription_transactions_controller_spec.rb:52:in `block (2 levels) in <top (required)>'
25) Spree::Admin::Crm::SalesRepsController GET 'index' with distributor_id loads the distributor commissions
Failure/Error: assigns(:sales_reps).first.distributor_distributor_commission.should == "479.93"
NoMethodError:
undefined method `first' for nil:NilClass
# ./spec/controllers/spree/admin/crm/sales_reps_controller_spec.rb:88:in `block (4 levels) in <top (required)>'
26) Spree::Admin::Crm::SalesRepsController GET 'index' with distributor_id sums the totals
Failure/Error: assigns(:sales_reps).sum { |sr| sr.distributor_distributor_commission }.to_f.should == 479.93
NoMethodError:
undefined method `sum' for nil:NilClass
# ./spec/controllers/spree/admin/crm/sales_reps_controller_spec.rb:112:in `block (4 levels) in <top (required)>'
27) Spree::Admin::Crm::SalesRepsController GET 'index' with distributor_id gets all sales_reps
Failure/Error: assigns(:sales_reps).length.should == 1
NoMethodError:
undefined method `length' for nil:NilClass
# ./spec/controllers/spree/admin/crm/sales_reps_controller_spec.rb:105:in `block (4 levels) in <top (required)>'
28) Spree::Admin::Crm::SalesRepsController GET 'index' with distributor_id loads the sales_rep commissions
Failure/Error: assigns(:sales_reps).first.distributor_sales_rep_commission.should == "47.26"
NoMethodError:
undefined method `first' for nil:NilClass
# ./spec/controllers/spree/admin/crm/sales_reps_controller_spec.rb:93:in `block (4 levels) in <top (required)>'
29) Spree::Admin::Crm::SalesRepsController GET 'index' with distributor_id loads the vacation pay commissions
Failure/Error: assigns(:sales_reps).first.vacation_total.should == 5.88
NoMethodError:
undefined method `first' for nil:NilClass
# ./spec/controllers/spree/admin/crm/sales_reps_controller_spec.rb:100:in `block (4 levels) in <top (required)>'
30) Spree::Admin::Crm::SalesRepsController GET 'index' with distributor_id returns http success
Failure/Error: response.should be_success
expected success? to return true, got false
# ./spec/controllers/spree/admin/crm/sales_reps_controller_spec.rb:83:in `block (4 levels) in <top (required)>'
31) Spree::Admin::ProductFiltersController GET Show Creates a Product Filter and shows all public published active courses for it
Failure/Error: assigns(:courses).count.should eq(3)
NoMethodError:
undefined method `count' for nil:NilClass
# ./spec/controllers/spree/admin/product_filters_controller_spec.rb:11:in `block (3 levels) in <top (required)>'
32) Spree::Admin::ProductFiltersController GET Show Finds a distributor's Product Filter and shows all public published active courses for it
Failure/Error: assigns(:courses).count.should eq(3)
NoMethodError:
undefined method `count' for nil:NilClass
# ./spec/controllers/spree/admin/product_filters_controller_spec.rb:18:in `block (3 levels) in <top (required)>'
33) OleCore::SubscriptionTransaction#calculate_tax_amount with tax rate returns tax amount
Failure/Error: Rake::Task['subscription_transactions:fetch'].execute
Braintree::UnexpectedError:
expected a gzipped response
# /Users/jstrong/webapps/rails/ole_core/app/models/ole_core/braintree_subscription_manager.rb:301:in `fetch_transactions'
# /Users/jstrong/webapps/rails/ole_core/app/models/ole_core/subscription.rb:116:in `fetch_transactions'
# ./lib/tasks/subscription_transactions.rake:11:in `block (3 levels) in <top (required)>'
# ./lib/tasks/subscription_transactions.rake:10:in `block (2 levels) in <top (required)>'
# ./spec/models/ole_core/subscription_transaction_spec.rb:48:in `block (2 levels) in <module:OleCore>'
34) OleCore::SubscriptionTransaction#calculate_tax_amount with no tax rate returns tax amount
Failure/Error: Rake::Task['subscription_transactions:fetch'].execute
Braintree::UnexpectedError:
expected a gzipped response
# /Users/jstrong/webapps/rails/ole_core/app/models/ole_core/braintree_subscription_manager.rb:301:in `fetch_transactions'
# /Users/jstrong/webapps/rails/ole_core/app/models/ole_core/subscription.rb:116:in `fetch_transactions'
# ./lib/tasks/subscription_transactions.rake:11:in `block (3 levels) in <top (required)>'
# ./lib/tasks/subscription_transactions.rake:10:in `block (2 levels) in <top (required)>'
# ./spec/models/ole_core/subscription_transaction_spec.rb:48:in `block (2 levels) in <module:OleCore>'
35) OleCore::SubscriptionTransaction with taxes should calculate the tax
Failure/Error: Rake::Task['subscription_transactions:fetch'].execute
Braintree::UnexpectedError:
expected a gzipped response
# /Users/jstrong/webapps/rails/ole_core/app/models/ole_core/braintree_subscription_manager.rb:301:in `fetch_transactions'
# /Users/jstrong/webapps/rails/ole_core/app/models/ole_core/subscription.rb:116:in `fetch_transactions'
# ./lib/tasks/subscription_transactions.rake:11:in `block (3 levels) in <top (required)>'
# ./lib/tasks/subscription_transactions.rake:10:in `block (2 levels) in <top (required)>'
# ./spec/models/ole_core/subscription_transaction_spec.rb:48:in `block (2 levels) in <module:OleCore>'
36) OleCore::SubscriptionTransaction with taxes should calculate the subtotal
Failure/Error: Rake::Task['subscription_transactions:fetch'].execute
Braintree::UnexpectedError:
expected a gzipped response
# /Users/jstrong/webapps/rails/ole_core/app/models/ole_core/braintree_subscription_manager.rb:301:in `fetch_transactions'
# /Users/jstrong/webapps/rails/ole_core/app/models/ole_core/subscription.rb:116:in `fetch_transactions'
# ./lib/tasks/subscription_transactions.rake:11:in `block (3 levels) in <top (required)>'
# ./lib/tasks/subscription_transactions.rake:10:in `block (2 levels) in <top (required)>'
# ./spec/models/ole_core/subscription_transaction_spec.rb:48:in `block (2 levels) in <module:OleCore>'
37) OleCore::SubscriptionTransaction without taxes should be tax equal to zero
Failure/Error: Rake::Task['subscription_transactions:fetch'].execute
Braintree::UnexpectedError:
expected a gzipped response
# /Users/jstrong/webapps/rails/ole_core/app/models/ole_core/braintree_subscription_manager.rb:301:in `fetch_transactions'
# /Users/jstrong/webapps/rails/ole_core/app/models/ole_core/subscription.rb:116:in `fetch_transactions'
# ./lib/tasks/subscription_transactions.rake:11:in `block (3 levels) in <top (required)>'
# ./lib/tasks/subscription_transactions.rake:10:in `block (2 levels) in <top (required)>'
# ./spec/models/ole_core/subscription_transaction_spec.rb:48:in `block (2 levels) in <module:OleCore>'
38) OleCore::SubscriptionTransaction without taxes should be quantity for subtotal and amount
Failure/Error: Rake::Task['subscription_transactions:fetch'].execute
Braintree::UnexpectedError:
expected a gzipped response
# /Users/jstrong/webapps/rails/ole_core/app/models/ole_core/braintree_subscription_manager.rb:301:in `fetch_transactions'
# /Users/jstrong/webapps/rails/ole_core/app/models/ole_core/subscription.rb:116:in `fetch_transactions'
# ./lib/tasks/subscription_transactions.rake:11:in `block (3 levels) in <top (required)>'
# ./lib/tasks/subscription_transactions.rake:10:in `block (2 levels) in <top (required)>'
# ./spec/models/ole_core/subscription_transaction_spec.rb:48:in `block (2 levels) in <module:OleCore>'
39) Checkout a subscription order
In order to have a subscription
I want to checkout a subscription order
Checkout with user not loged in
Failure/Error: page.should have_content 'Login as Existing Customer'
expected there to be content "Login as Existing Customer" in ""
# ./spec/acceptance/checkout_subscription_orders_spec.rb:100:in `block (2 levels) in <top (required)>'
40) Authentication
In order to access pages
As not logged in user
I want to see the login page
and be able to authenticate
and on success be directed to the page
Go to login page and create new user
Failure/Error: "user_login_attributes_password_confirmation" => "635673"
Capybara::ElementNotFound:
cannot fill in, no text field, text area or password field with id, name, or label 'First Name' found
# (eval):2:in `fill_in'
# ./spec/acceptance/support/helpers.rb:48:in `block in fill_the_following'
# ./spec/acceptance/support/helpers.rb:47:in `each'
# ./spec/acceptance/support/helpers.rb:47:in `fill_the_following'
# ./spec/acceptance/authentication_spec.rb:56:in `block (2 levels) in <top (required)>'
41) Authentication
In order to access pages
As not logged in user
I want to see the login page
and be able to authenticate
and on success be directed to the page
Go to admin page and authenticate successfully
Failure/Error: should_have_the_following "Login", "Username", "Password"
expected there to be content "Login" in ""
# ./spec/acceptance/support/helpers.rb:54:in `block in should_have_the_following'
# ./spec/acceptance/support/helpers.rb:53:in `each'
# ./spec/acceptance/support/helpers.rb:53:in `should_have_the_following'
# ./spec/acceptance/authentication_spec.rb:119:in `block (2 levels) in <top (required)>'
42) Authentication
In order to access pages
As not logged in user
I want to see the login page
and be able to authenticate
and on success be directed to the page
Go to login page and create new user with failure
Failure/Error: "user_login_attributes_password_confirmation" => "wrong_confirmation"
Capybara::ElementNotFound:
cannot fill in, no text field, text area or password field with id, name, or label 'First Name' found
# (eval):2:in `fill_in'
# ./spec/acceptance/support/helpers.rb:48:in `block in fill_the_following'
# ./spec/acceptance/support/helpers.rb:47:in `each'
# ./spec/acceptance/support/helpers.rb:47:in `fill_the_following'
# ./spec/acceptance/authentication_spec.rb:79:in `block (2 levels) in <top (required)>'
43) Authentication
In order to access pages
As not logged in user
I want to see the login page
and be able to authenticate
and on success be directed to the page
Go to login page and fail authentication
Failure/Error: trainee = FactoryGirl.create(:user, :login => ole_account.login, :username => "ole_direct")
NoMethodError:
undefined method `login' for #<OleCore::Account:0x007fae21cff5b8>
# ./spec/acceptance/authentication_spec.rb:26:in `block (2 levels) in <top (required)>'
# ./spec/acceptance/authentication_spec.rb:104:in `block (2 levels) in <top (required)>'
44) Authentication
In order to access pages
As not logged in user
I want to see the login page
and be able to authenticate
and on success be directed to the page
Go to login page and authenticate successfully
Failure/Error: trainee = FactoryGirl.create(:user, :login => ole_account.login, :username => "ole_direct")
NoMethodError:
undefined method `login' for #<OleCore::Account:0x007fae249aaab8>
# ./spec/acceptance/authentication_spec.rb:26:in `block (2 levels) in <top (required)>'
# ./spec/acceptance/authentication_spec.rb:42:in `block (2 levels) in <top (required)>'
45) Checkout a subscription order
In order to have a subscription
I want to checkout a subscription order using chargify
Create Chargify Subscription Create chargify subscription
Failure/Error: current_path.should == "/subscription_orders/verify_chargify"
expected: "/subscription_orders/verify_chargify"
got: "/en/subscription_orders/33/edit" (using ==)
# ./spec/acceptance/subscription_orders_with_chargify_spec.rb:34:in `block (4 levels) in <top (required)>'
# ./spec/acceptance/support/devise.rb:9:in `call'
# ./spec/acceptance/support/devise.rb:9:in `as_user'
# ./spec/acceptance/subscription_orders_with_chargify_spec.rb:23:in `block (3 levels) in <top (required)>'
46) export admin orders
As a master,
In order to be able to balance the bank account,
I need to be able to export a CSV file with all Orders on it.
Go to orders admin panel as master
Failure/Error: should_have_the_following "Listing Orders", "Export"
expected there to be content "Listing Orders" in "Spree Demo Site\n \n \n \n \n \n \n\n \n \n Call Us For Further Information\n \n \n 1.887.652.5262\n \n\n \n \n items in cart: (Empty)\n \n Home\n My Account\n LMS\n Logout \n\n \n\n \n \n\n \n \n \n You are not authorized to access this page.\n \n\n All Products\n\n No products found\n\n\n\n \n\n\n\n\n\n\n \n \n \n\n \n \n Privacy Policy Support: 1.887.652.5262\n \n\n"
# ./spec/acceptance/support/helpers.rb:54:in `block in should_have_the_following'
# ./spec/acceptance/support/helpers.rb:53:in `each'
# ./spec/acceptance/support/helpers.rb:53:in `should_have_the_following'
# ./spec/acceptance/export_admin_orders_spec.rb:43:in `block (3 levels) in <top (required)>'
# ./spec/acceptance/support/devise.rb:9:in `call'
# ./spec/acceptance/support/devise.rb:9:in `as_user'
# ./spec/acceptance/export_admin_orders_spec.rb:41:in `block (2 levels) in <top (required)>'
47) export admin orders
As a master,
In order to be able to balance the bank account,
I need to be able to export a CSV file with all Orders on it.
Downloading CSV file as master
Failure/Error: csv.first.should == ["Order #", "Order Status", "Date", "Company Name", "Co #", "Name of Contact", "Address", "Prov", "Total Cost", "Promotion", "Sub Total", "Sales Tax (HST)", "Total Billed", "Rep", "Distributor", "Payment Type", "Is Inventory?", "Is PO?"]
expected: ["Order #", "Order Status", "Date", "Company Name", "Co #", "Name of Contact", "Address", "Prov", "Total Cost", "Promotion", "Sub Total", "Sales Tax (HST)", "Total Billed", "Rep", "Distributor", "Payment Type", "Is Inventory?", "Is PO?"]
got: ["Spree Demo Site"] (using ==)
# ./spec/acceptance/export_admin_orders_spec.rb:61:in `block (3 levels) in <top (required)>'
# ./spec/acceptance/support/devise.rb:9:in `call'
# ./spec/acceptance/support/devise.rb:9:in `as_user'
# ./spec/acceptance/export_admin_orders_spec.rb:56:in `block (2 levels) in <top (required)>'
48) Spree::Admin::InventoryLineItemsController inventory order with inventory order creates inventory a line item with enough units, to make transfer and loads create template
Failure/Error: assigns(:inventory_order).inventory_line_items.count.should eq(1)
NoMethodError:
undefined method `inventory_line_items' for nil:NilClass
# ./spec/controllers/spree/admin/inventory_line_items_controller_spec.rb:17:in `block (3 levels) in <top (required)>'
49) Spree::Admin::InventoryLineItemsController inventory order with inventory order creates inventory a line but don't make make transfer loads create template
Failure/Error: assigns(:inventory_order).inventory_line_items.count.should eq(0)
NoMethodError:
undefined method `inventory_line_items' for nil:NilClass
# ./spec/controllers/spree/admin/inventory_line_items_controller_spec.rb:23:in `block (3 levels) in <top (required)>'
50) UnitCreator#create! with bundle products create units based on the count of the assemblies times the quantity set in the line item
Failure/Error: expect{
count should have been changed by 0, but was changed by 1
# ./spec/models/unit_creator_spec.rb:96:in `block (4 levels) in <top (required)>'
51) Spree::Admin::SubscriptionsController GET #index Search options search only for trial subscriptions
Failure/Error: expect(assigns(:subscriptions).count).to eq(1)
NoMethodError:
undefined method `count' for nil:NilClass
# ./spec/controllers/spree/admin/subscriptions_controller_spec.rb:61:in `block (4 levels) in <top (required)>'
52) Spree::Admin::SubscriptionsController GET #index Search options search suscriptions through trial expiry range
Failure/Error: expect(assigns(:subscriptions).count).to eq(1)
NoMethodError:
undefined method `count' for nil:NilClass
# ./spec/controllers/spree/admin/subscriptions_controller_spec.rb:79:in `block (4 levels) in <top (required)>'
53) Spree::Admin::SubscriptionsController GET #index Search options search subscriptions that belongs to an account
Failure/Error: expect(assigns(:subscriptions).count).to eq(4)
NoMethodError:
undefined method `count' for nil:NilClass
# ./spec/controllers/spree/admin/subscriptions_controller_spec.rb:85:in `block (4 levels) in <top (required)>'
54) Spree::Admin::SubscriptionsController GET #index Search options search only for active subscriptions
Failure/Error: expect(assigns(:subscriptions).count).to eq(3)
NoMethodError:
undefined method `count' for nil:NilClass
# ./spec/controllers/spree/admin/subscriptions_controller_spec.rb:67:in `block (4 levels) in <top (required)>'
55) Spree::Admin::SubscriptionsController GET #index Search options renders the :index view
Failure/Error: expect(response).to render_template :index
expecting <"index"> but rendering with <"">
# ./spec/controllers/spree/admin/subscriptions_controller_spec.rb:56:in `block (4 levels) in <top (required)>'
56) Spree::Admin::SubscriptionsController GET #index Search options search subscriptions through a date range
Failure/Error: expect(assigns(:subscriptions).count).to eq(4)
NoMethodError:
undefined method `count' for nil:NilClass
# ./spec/controllers/spree/admin/subscriptions_controller_spec.rb:73:in `block (4 levels) in <top (required)>'
57) Spree::Admin::SubscriptionsController GET #index Search options search subscriptions by distributor
Failure/Error: expect(assigns(:subscriptions).count).to eq(4)
NoMethodError:
undefined method `count' for nil:NilClass
# ./spec/controllers/spree/admin/subscriptions_controller_spec.rb:91:in `block (4 levels) in <top (required)>'
58) Spree::Admin::SubscriptionsController GET #index Search options search subscriptions related to a sales rep
Failure/Error: expect(assigns(:subscriptions)).to be_empty
NoMethodError:
undefined method `empty?' for nil:NilClass
# ./spec/controllers/spree/admin/subscriptions_controller_spec.rb:97:in `block (4 levels) in <top (required)>'
59) Spree::Admin::SubscriptionsController GET #index Without search options renders the :index view
Failure/Error: expect(response).to render_template :index
expecting <"index"> but rendering with <"">
# ./spec/controllers/spree/admin/subscriptions_controller_spec.rb:107:in `block (4 levels) in <top (required)>'
60) Spree::Admin::SubscriptionsController GET #index Without search options shows all the subscriptions related to the parent distributor
Failure/Error: expect(s.to_a).to match_array(subscriptions)
expected collection contained: [#<OleCore::Subscription id: 83, subscription_plan_id: 78, remote_id: "2vffvg", account_id: 401, created_at: "2014-01-03 23:18:57", updated_at: "2014-01-03 23:18:57", state: "trial", trial_expiry_at: "2014-01-10", minimum_user_amount: 49, user_limit: nil, skip_gateway: false, api: "chargify">, #<OleCore::Subscription id: 84, subscription_plan_id: 77, remote_id: "bnskxr", account_id: 401, created_at: "2014-01-02 06:00:00", updated_at: "2014-01-03 23:18:58", state: "active", trial_expiry_at: nil, minimum_user_amount: 49, user_limit: nil, skip_gateway: false, api: "chargify">, #<OleCore::Subscription id: 85, subscription_plan_id: 77, remote_id: "bnskxr", account_id: 401, created_at: "2014-01-02 06:00:00", updated_at: "2014-01-03 23:18:58", state: "active", trial_expiry_at: nil, minimum_user_amount: 49, user_limit: nil, skip_gateway: false, api: "chargify">, #<OleCore::Subscription id: 86, subscription_plan_id: 77, remote_id: "bnskxr", account_id: 401, created_at: "2014-01-02 06:00:00", updated_at: "2014-01-03 23:18:58", state: "active", trial_expiry_at: nil, minimum_user_amount: 49, user_limit: nil, skip_gateway: false, api: "chargify">]
actual collection contained: []
the missing elements were: [#<OleCore::Subscription id: 83, subscription_plan_id: 78, remote_id: "2vffvg", account_id: 401, created_at: "2014-01-03 23:18:57", updated_at: "2014-01-03 23:18:57", state: "trial", trial_expiry_at: "2014-01-10", minimum_user_amount: 49, user_limit: nil, skip_gateway: false, api: "chargify">, #<OleCore::Subscription id: 84, subscription_plan_id: 77, remote_id: "bnskxr", account_id: 401, created_at: "2014-01-02 06:00:00", updated_at: "2014-01-03 23:18:58", state: "active", trial_expiry_at: nil, minimum_user_amount: 49, user_limit: nil, skip_gateway: false, api: "chargify">, #<OleCore::Subscription id: 85, subscription_plan_id: 77, remote_id: "bnskxr", account_id: 401, created_at: "2014-01-02 06:00:00", updated_at: "2014-01-03 23:18:58", state: "active", trial_expiry_at: nil, minimum_user_amount: 49, user_limit: nil, skip_gateway: false, api: "chargify">, #<OleCore::Subscription id: 86, subscription_plan_id: 77, remote_id: "bnskxr", account_id: 401, created_at: "2014-01-02 06:00:00", updated_at: "2014-01-03 23:18:58", state: "active", trial_expiry_at: nil, minimum_user_amount: 49, user_limit: nil, skip_gateway: false, api: "chargify">]
# ./spec/controllers/spree/admin/subscriptions_controller_spec.rb:113:in `block (4 levels) in <top (required)>'
61) Spree::Admin::SubscriptionsController GET #show assigns the requested subscription to @subscription
Failure/Error: expect(assigns(:subscription)).to eq @subscription
expected: #<OleCore::Subscription id: 87, subscription_plan_id: 80, remote_id: "6rmhwm", account_id: 403, created_at: "2014-01-03 23:19:01", updated_at: "2014-01-03 23:19:01", state: "trial", trial_expiry_at: "2014-01-10", minimum_user_amount: 49, user_limit: nil, skip_gateway: false, api: "chargify">
got: nil
(compared using ==)
# ./spec/controllers/spree/admin/subscriptions_controller_spec.rb:126:in `block (3 levels) in <top (required)>'
62) Spree::Admin::SubscriptionsController GET #show renders the :show template
Failure/Error: expect(response).to render_template :show
expecting <"show"> but rendering with <"">
# ./spec/controllers/spree/admin/subscriptions_controller_spec.rb:130:in `block (3 levels) in <top (required)>'
63) Spree::Admin::AccountsController As OLE User Doesn't create account without Stars CRM ID (for OSG/OLE)
Failure/Error: post :create, account: @attrs
NoMethodError:
undefined method `role=' for nil:NilClass
# ./app/controllers/spree/admin/accounts_controller.rb:27:in `create'
# ./spec/controllers/spree/admin/accounts_controller_spec.rb:43:in `block (3 levels) in <top (required)>'
64) Spree::Admin::AccountsController As OLE User Does create account with Stars CRM ID(for OSG/OLE)
Failure/Error: post :create, account: @attrs
NoMethodError:
undefined method `role=' for nil:NilClass
# ./app/controllers/spree/admin/accounts_controller.rb:27:in `create'
# ./spec/controllers/spree/admin/accounts_controller_spec.rb:50:in `block (3 levels) in <top (required)>'
65) Spree::Admin::AccountsController As None OLE user Does create account without Stars CRM ID (for OSG/OLE)
Failure/Error: post :create, account: @attrs
NoMethodError:
undefined method `role=' for nil:NilClass
# ./app/controllers/spree/admin/accounts_controller.rb:27:in `create'
# ./spec/controllers/spree/admin/accounts_controller_spec.rb:73:in `block (3 levels) in <top (required)>'
66) UsersController Create User success creates the login, account and user
Failure/Error: login.should_not be_nil
expected: not nil
got: nil
# ./spec/controllers/users_controller_spec.rb:28:in `block (4 levels) in <top (required)>'
67) UsersController Create User success has the admin role
Failure/Error: login.role.should == OleCore::Login::ADMIN_ROLE
NoMethodError:
undefined method `role' for nil:NilClass
# ./spec/controllers/users_controller_spec.rb:37:in `block (4 levels) in <top (required)>'
68) Spree::Admin::Crm::ReportAdjustmentsController GET 'index' returns http success
Failure/Error: response.should be_success
expected success? to return true, got false
# ./spec/controllers/spree/admin/crm/report_adjustments_controller_spec.rb:13:in `block (3 levels) in <top (required)>'
69) Spree::Admin::Crm::ReportAdjustmentsController GET 'index' shows list of all active distributors
Failure/Error: 10.times { |i| expect(response.body).to include("Test #{i}") }
expected "<html><body>You are being <a href=\"http://test.host/en/\">redirected</a>.</body></html>" to include "Test 0"
# ./spec/controllers/spree/admin/crm/report_adjustments_controller_spec.rb:19:in `block (4 levels) in <top (required)>'
# ./spec/controllers/spree/admin/crm/report_adjustments_controller_spec.rb:19:in `times'
# ./spec/controllers/spree/admin/crm/report_adjustments_controller_spec.rb:19:in `block (3 levels) in <top (required)>'
70) Spree::Admin::Crm::ReportAdjustmentsController GET 'index' shows an add button
Failure/Error: expect(response.body).to include("Add New Adjustment")
expected "<html><body>You are being <a href=\"http://test.host/en/\">redirected</a>.</body></html>" to include "Add New Adjustment"
# ./spec/controllers/spree/admin/crm/report_adjustments_controller_spec.rb:24:in `block (3 levels) in <top (required)>'
71) Spree::Admin::Crm::ReportAdjustmentsController POST 'create' creates with right parameters
Failure/Error: expect {
count should have been changed by 1, but was changed by 0
# ./spec/controllers/spree/admin/crm/report_adjustments_controller_spec.rb:35:in `block (3 levels) in <top (required)>'
72) Spree::Admin::Crm::ReportAdjustmentsController POST 'create' doesn't create with wrong parameters
Failure/Error: response.should render_template 'new'
expecting <"new"> but rendering with <"">
# ./spec/controllers/spree/admin/crm/report_adjustments_controller_spec.rb:48:in `block (3 levels) in <top (required)>'
73) Spree::Admin::Crm::ReportAdjustmentsController GET 'index' for distributor only shows adjustments for that distributor
Failure/Error: expect(response.body).to include("30.00")
expected "<html><body>You are being <a href=\"http://test.host/en/\">redirected</a>.</body></html>" to include "30.00"
# ./spec/controllers/spree/admin/crm/report_adjustments_controller_spec.rb:83:in `block (3 levels) in <top (required)>'
74) Spree::Admin::Crm::ReportAdjustmentsController GET 'index' for distributor properly filters by date
Failure/Error: expect(response.body).to include("30.00")
expected "<html><body>You are being <a href=\"http://test.host/en/\">redirected</a>.</body></html>" to include "30.00"
# ./spec/controllers/spree/admin/crm/report_adjustments_controller_spec.rb:100:in `block (3 levels) in <top (required)>'
75) Spree::Admin::Crm::ReportAdjustmentsController GET 'index' filters month by default
Failure/Error: expect(response.body).to include("30.00")
expected "<html><body>You are being <a href=\"http://test.host/en/\">redirected</a>.</body></html>" to include "30.00"
# ./spec/controllers/spree/admin/crm/report_adjustments_controller_spec.rb:58:in `block (3 levels) in <top (required)>'
76) Spree::Admin::Crm::ReportAdjustmentsController GET 'index' properly filters by date
Failure/Error: expect(response.body).to include("30.00")
expected "<html><body>You are being <a href=\"http://test.host/en/\">redirected</a>.</body></html>" to include "30.00"
# ./spec/controllers/spree/admin/crm/report_adjustments_controller_spec.rb:67:in `block (3 levels) in <top (required)>'
77) Spree::Admin::Orders::CustomerDetailsController PUT #update logged in as a non OLE or OSG distributor should not return an error if the params[:customer_id] is blank
Failure/Error: order.errors.messages.should_not include("Customer ID can't be blank")
NoMethodError:
undefined method `errors' for nil:NilClass
# ./spec/controllers/spree/admin/orders/customer_details_controller_decorator_spec.rb:70:in `block (4 levels) in <top (required)>'
78) Manage distributors
In order to manage distributors
I want to see distributors
Go to distributors admin panel with NON Cm distributor
Failure/Error: should_have_the_following "Sales rep", user_cm_distributor_sales_rep.full_name
expected there to be content "Sales rep" in "Spree Demo Site\n \n \n \n \n \n \n\n \n \n Call Us For Further Information\n \n \n 1.887.652.5262\n \n\n \n \n items in cart: (Empty)\n \n Home\n My Account\n LMS\n Logout \n\n \n\n \n \n\n \n \n \n You are not authorized to access this page.\n \n\n All Products\n\n No products found\n\n\n\n \n\n\n\n\n\n\n \n \n \n\n \n \n Privacy Policy Support: 1.887.652.5262\n \n\n"
# ./spec/acceptance/support/helpers.rb:54:in `block in should_have_the_following'
# ./spec/acceptance/support/helpers.rb:53:in `each'
# ./spec/acceptance/support/helpers.rb:53:in `should_have_the_following'
# ./spec/acceptance/manage_distributors_spec.rb:25:in `block (3 levels) in <top (required)>'
# ./spec/acceptance/support/devise.rb:9:in `call'
# ./spec/acceptance/support/devise.rb:9:in `as_user'
# ./spec/acceptance/manage_distributors_spec.rb:23:in `block (2 levels) in <top (required)>'
79) Manage distributors
In order to manage distributors
I want to see distributors
Go to distributors admin panel with Cm distributor
Failure/Error: should_have_the_following "Sales rep", user_cm_distributor_sales_rep.full_name
expected there to be content "Sales rep" in "Spree Demo Site\n \n \n \n \n \n \n\n \n \n Call Us For Further Information\n \n \n 1.887.652.5262\n \n\n \n \n items in cart: (Empty)\n \n Home\n My Account\n LMS\n Logout \n\n \n\n \n \n\n \n \n \n You are not authorized to access this page.\n \n\n All Products\n\n No products found\n\n\n\n \n\n\n\n\n\n\n \n \n \n\n \n \n Privacy Policy Support: 1.887.652.5262\n \n\n"
# ./spec/acceptance/support/helpers.rb:54:in `block in should_have_the_following'
# ./spec/acceptance/support/helpers.rb:53:in `each'
# ./spec/acceptance/support/helpers.rb:53:in `should_have_the_following'
# ./spec/acceptance/manage_distributors_spec.rb:37:in `block (3 levels) in <top (required)>'
# ./spec/acceptance/support/devise.rb:9:in `call'
# ./spec/acceptance/support/devise.rb:9:in `as_user'
# ./spec/acceptance/manage_distributors_spec.rb:35:in `block (2 levels) in <top (required)>'
80) Manage commission rates for distributors
In order to manage commission rates for distributors in the admin panel
I want to set commission rates for distributors
commission rate setted correctly for distributor
Failure/Error: page.should have_content 'Commissions by Distributor'
expected there to be content "Commissions by Distributor" in "Call Us For Further Information 1.887.652.5262 Items In Cart: (Empty) Home My Account LMS Logout You are not authorized to access this page. All Products No products found Privacy Policy Support: 1.887.652.5262"
# ./spec/acceptance/admin/distributors_spec.rb:25:in `block (3 levels) in <top (required)>'
# ./spec/acceptance/support/devise.rb:9:in `call'
# ./spec/acceptance/support/devise.rb:9:in `as_user'
# ./spec/acceptance/admin/distributors_spec.rb:23:in `block (2 levels) in <top (required)>'
81) Manage commission rates for country masters
In order to manage commission rates for country masters in the admin panel
I want to set commission rates for country masters
commission rates setted correctly for country master
Failure/Error: page.should have_content 'Commissions by Country Master'
expected there to be content "Commissions by Country Master" in "Call Us For Further Information 1.887.652.5262 Items In Cart: (Empty) Home My Account LMS Logout You are not authorized to access this page. All Products No products found Privacy Policy Support: 1.887.652.5262"
# ./spec/acceptance/admin/country_masters_spec.rb:28:in `block (3 levels) in <top (required)>'
# ./spec/acceptance/support/devise.rb:9:in `call'
# ./spec/acceptance/support/devise.rb:9:in `as_user'
# ./spec/acceptance/admin/country_masters_spec.rb:26:in `block (2 levels) in <top (required)>'
Finished in 21 minutes 26.88 seconds
601 examples, 81 failures, 50 pending
Failed examples:
rspec ./spec/controllers/spree/admin/variants_controller_spec.rb:11 # Spree::Admin::VariantsController POST Create a new variant with associated course
rspec ./spec/lib/tasks/subscription_transactions_rake_spec.rb:65 # subscription_transactions:fetch fetches all the subscription transactions from braintree
rspec ./spec/lib/tasks/subscription_transactions_rake_spec.rb:70 # subscription_transactions:fetch new subscription retrieves a 'sale' transaction from braintree
rspec ./spec/lib/tasks/subscription_transactions_rake_spec.rb:78 # subscription_transactions:fetch taxes for transaction generates subscription transaction
rspec ./spec/lib/tasks/subscription_transactions_rake_spec.rb:85 # subscription_transactions:fetch taxes for transaction without taxes populates local transaction
rspec ./spec/lib/tasks/subscription_transactions_rake_spec.rb:95 # subscription_transactions:fetch taxes for transaction with taxes populates local transaction
rspec ./spec/lib/tasks/subscription_transactions_rake_spec.rb:106 # subscription_transactions:fetch taxes for transaction with taxes updating taxes populates local transaction
rspec ./spec/acceptance/manage_admin_products_spec.rb:46 # Manage admin products
In order to manage products in the admin panel
I want to edit, create products
Go to product edit admin panel as master without course set
rspec ./spec/acceptance/manage_admin_products_spec.rb:93 # Manage admin products
In order to manage products in the admin panel
I want to edit, create products
Update product with location state and without course
rspec ./spec/acceptance/manage_admin_products_spec.rb:104 # Manage admin products
In order to manage products in the admin panel
I want to edit, create products
Update product with location city and without course
rspec ./spec/acceptance/manage_admin_products_spec.rb:53 # Manage admin products
In order to manage products in the admin panel
I want to edit, create products
Update product for courses with different versions
rspec ./spec/acceptance/manage_admin_products_spec.rb:39 # Manage admin products
In order to manage products in the admin panel
I want to edit, create products
Go to product edit admin panel as master
rspec ./spec/acceptance/manage_admin_products_spec.rb:73 # Manage admin products
In order to manage products in the admin panel
I want to edit, create products
Update product without course set
rspec ./spec/acceptance/manage_admin_products_spec.rb:117 # Manage admin products
In order to manage products in the admin panel
I want to edit, create products
Update product without location and without course
rspec ./spec/acceptance/manage_admin_products_spec.rb:127 # Manage admin products
In order to manage products in the admin panel
I want to edit, create products
Update product
rspec ./spec/acceptance/manage_sale_reps_spec.rb:21 # Manage sales reps
In order to manage sales reps
I want to see and create sales reps
Go to sale reps index with NON CM sales rep as master user
rspec ./spec/acceptance/manage_sale_reps_spec.rb:30 # Manage sales reps
In order to manage sales reps
I want to see and create sales reps
Go to sale reps index with CM sales rep as master user
rspec ./spec/acceptance/manage_sale_reps_spec.rb:39 # Manage sales reps
In order to manage sales reps
I want to see and create sales reps
Go to new sales reps as master user
rspec ./spec/controllers/spree/admin/crm/subscription_transactions_controller_spec.rb:59 # Spree::Admin::Crm::SubscriptionTransactionsController GET 'index' without params[:q] collects subscription transactions into @transactions
rspec ./spec/controllers/spree/admin/crm/subscription_transactions_controller_spec.rb:66 # Spree::Admin::Crm::SubscriptionTransactionsController GET 'index' without params[:q] returns http success
rspec ./spec/controllers/spree/admin/crm/subscription_transactions_controller_spec.rb:71 # Spree::Admin::Crm::SubscriptionTransactionsController GET 'index' without params[:q] renders the index template
rspec ./spec/controllers/spree/admin/crm/subscription_transactions_controller_spec.rb:78 # Spree::Admin::Crm::SubscriptionTransactionsController GET 'index' with ransack search collects subscription transaction into @transaction that match with params
rspec ./spec/controllers/spree/admin/crm/subscription_transactions_controller_spec.rb:85 # Spree::Admin::Crm::SubscriptionTransactionsController GET 'index' with ransack search returns http success
rspec ./spec/controllers/spree/admin/crm/subscription_transactions_controller_spec.rb:90 # Spree::Admin::Crm::SubscriptionTransactionsController GET 'index' with ransack search renders the index template
rspec ./spec/controllers/spree/admin/crm/sales_reps_controller_spec.rb:86 # Spree::Admin::Crm::SalesRepsController GET 'index' with distributor_id loads the distributor commissions
rspec ./spec/controllers/spree/admin/crm/sales_reps_controller_spec.rb:110 # Spree::Admin::Crm::SalesRepsController GET 'index' with distributor_id sums the totals
rspec ./spec/controllers/spree/admin/crm/sales_reps_controller_spec.rb:103 # Spree::Admin::Crm::SalesRepsController GET 'index' with distributor_id gets all sales_reps
rspec ./spec/controllers/spree/admin/crm/sales_reps_controller_spec.rb:91 # Spree::Admin::Crm::SalesRepsController GET 'index' with distributor_id loads the sales_rep commissions
rspec ./spec/controllers/spree/admin/crm/sales_reps_controller_spec.rb:97 # Spree::Admin::Crm::SalesRepsController GET 'index' with distributor_id loads the vacation pay commissions
rspec ./spec/controllers/spree/admin/crm/sales_reps_controller_spec.rb:81 # Spree::Admin::Crm::SalesRepsController GET 'index' with distributor_id returns http success
rspec ./spec/controllers/spree/admin/product_filters_controller_spec.rb:8 # Spree::Admin::ProductFiltersController GET Show Creates a Product Filter and shows all public published active courses for it
rspec ./spec/controllers/spree/admin/product_filters_controller_spec.rb:14 # Spree::Admin::ProductFiltersController GET Show Finds a distributor's Product Filter and shows all public published active courses for it
rspec ./spec/models/ole_core/subscription_transaction_spec.rb:57 # OleCore::SubscriptionTransaction#calculate_tax_amount with tax rate returns tax amount
rspec ./spec/models/ole_core/subscription_transaction_spec.rb:64 # OleCore::SubscriptionTransaction#calculate_tax_amount with no tax rate returns tax amount
rspec ./spec/models/ole_core/subscription_transaction_spec.rb:78 # OleCore::SubscriptionTransaction with taxes should calculate the tax
rspec ./spec/models/ole_core/subscription_transaction_spec.rb:82 # OleCore::SubscriptionTransaction with taxes should calculate the subtotal
rspec ./spec/models/ole_core/subscription_transaction_spec.rb:94 # OleCore::SubscriptionTransaction without taxes should be tax equal to zero
rspec ./spec/models/ole_core/subscription_transaction_spec.rb:98 # OleCore::SubscriptionTransaction without taxes should be quantity for subtotal and amount
rspec ./spec/acceptance/checkout_subscription_orders_spec.rb:97 # Checkout a subscription order
In order to have a subscription
I want to checkout a subscription order
Checkout with user not loged in
rspec ./spec/acceptance/authentication_spec.rb:46 # Authentication
In order to access pages
As not logged in user
I want to see the login page
and be able to authenticate
and on success be directed to the page
Go to login page and create new user
rspec ./spec/acceptance/authentication_spec.rb:116 # Authentication
In order to access pages
As not logged in user
I want to see the login page
and be able to authenticate
and on success be directed to the page
Go to admin page and authenticate successfully
rspec ./spec/acceptance/authentication_spec.rb:67 # Authentication
In order to access pages
As not logged in user
I want to see the login page
and be able to authenticate
and on success be directed to the page
Go to login page and create new user with failure
rspec ./spec/acceptance/authentication_spec.rb:102 # Authentication
In order to access pages
As not logged in user
I want to see the login page
and be able to authenticate
and on success be directed to the page
Go to login page and fail authentication
rspec ./spec/acceptance/authentication_spec.rb:40 # Authentication
In order to access pages
As not logged in user
I want to see the login page
and be able to authenticate
and on success be directed to the page
Go to login page and authenticate successfully
rspec ./spec/acceptance/subscription_orders_with_chargify_spec.rb:21 # Checkout a subscription order
In order to have a subscription
I want to checkout a subscription order using chargify
Create Chargify Subscription Create chargify subscription
rspec ./spec/acceptance/export_admin_orders_spec.rb:40 # export admin orders
As a master,
In order to be able to balance the bank account,
I need to be able to export a CSV file with all Orders on it.
Go to orders admin panel as master
rspec ./spec/acceptance/export_admin_orders_spec.rb:55 # export admin orders
As a master,
In order to be able to balance the bank account,
I need to be able to export a CSV file with all Orders on it.
Downloading CSV file as master
rspec ./spec/controllers/spree/admin/inventory_line_items_controller_spec.rb:14 # Spree::Admin::InventoryLineItemsController inventory order with inventory order creates inventory a line item with enough units, to make transfer and loads create template
rspec ./spec/controllers/spree/admin/inventory_line_items_controller_spec.rb:21 # Spree::Admin::InventoryLineItemsController inventory order with inventory order creates inventory a line but don't make make transfer loads create template
rspec ./spec/models/unit_creator_spec.rb:90 # UnitCreator#create! with bundle products create units based on the count of the assemblies times the quantity set in the line item
rspec ./spec/controllers/spree/admin/subscriptions_controller_spec.rb:59 # Spree::Admin::SubscriptionsController GET #index Search options search only for trial subscriptions
rspec ./spec/controllers/spree/admin/subscriptions_controller_spec.rb:77 # Spree::Admin::SubscriptionsController GET #index Search options search suscriptions through trial expiry range
rspec ./spec/controllers/spree/admin/subscriptions_controller_spec.rb:83 # Spree::Admin::SubscriptionsController GET #index Search options search subscriptions that belongs to an account
rspec ./spec/controllers/spree/admin/subscriptions_controller_spec.rb:65 # Spree::Admin::SubscriptionsController GET #index Search options search only for active subscriptions
rspec ./spec/controllers/spree/admin/subscriptions_controller_spec.rb:54 # Spree::Admin::SubscriptionsController GET #index Search options renders the :index view
rspec ./spec/controllers/spree/admin/subscriptions_controller_spec.rb:71 # Spree::Admin::SubscriptionsController GET #index Search options search subscriptions through a date range
rspec ./spec/controllers/spree/admin/subscriptions_controller_spec.rb:89 # Spree::Admin::SubscriptionsController GET #index Search options search subscriptions by distributor
rspec ./spec/controllers/spree/admin/subscriptions_controller_spec.rb:95 # Spree::Admin::SubscriptionsController GET #index Search options search subscriptions related to a sales rep
rspec ./spec/controllers/spree/admin/subscriptions_controller_spec.rb:106 # Spree::Admin::SubscriptionsController GET #index Without search options renders the :index view
rspec ./spec/controllers/spree/admin/subscriptions_controller_spec.rb:110 # Spree::Admin::SubscriptionsController GET #index Without search options shows all the subscriptions related to the parent distributor
rspec ./spec/controllers/spree/admin/subscriptions_controller_spec.rb:125 # Spree::Admin::SubscriptionsController GET #show assigns the requested subscription to @subscription
rspec ./spec/controllers/spree/admin/subscriptions_controller_spec.rb:129 # Spree::Admin::SubscriptionsController GET #show renders the :show template
rspec ./spec/controllers/spree/admin/accounts_controller_spec.rb:42 # Spree::Admin::AccountsController As OLE User Doesn't create account without Stars CRM ID (for OSG/OLE)
rspec ./spec/controllers/spree/admin/accounts_controller_spec.rb:48 # Spree::Admin::AccountsController As OLE User Does create account with Stars CRM ID(for OSG/OLE)
rspec ./spec/controllers/spree/admin/accounts_controller_spec.rb:72 # Spree::Admin::AccountsController As None OLE user Does create account without Stars CRM ID (for OSG/OLE)
rspec ./spec/controllers/users_controller_spec.rb:25 # UsersController Create User success creates the login, account and user
rspec ./spec/controllers/users_controller_spec.rb:34 # UsersController Create User success has the admin role
rspec ./spec/controllers/spree/admin/crm/report_adjustments_controller_spec.rb:11 # Spree::Admin::Crm::ReportAdjustmentsController GET 'index' returns http success
rspec ./spec/controllers/spree/admin/crm/report_adjustments_controller_spec.rb:16 # Spree::Admin::Crm::ReportAdjustmentsController GET 'index' shows list of all active distributors
rspec ./spec/controllers/spree/admin/crm/report_adjustments_controller_spec.rb:22 # Spree::Admin::Crm::ReportAdjustmentsController GET 'index' shows an add button
rspec ./spec/controllers/spree/admin/crm/report_adjustments_controller_spec.rb:34 # Spree::Admin::Crm::ReportAdjustmentsController POST 'create' creates with right parameters
rspec ./spec/controllers/spree/admin/crm/report_adjustments_controller_spec.rb:41 # Spree::Admin::Crm::ReportAdjustmentsController POST 'create' doesn't create with wrong parameters
rspec ./spec/controllers/spree/admin/crm/report_adjustments_controller_spec.rb:77 # Spree::Admin::Crm::ReportAdjustmentsController GET 'index' for distributor only shows adjustments for that distributor
rspec ./spec/controllers/spree/admin/crm/report_adjustments_controller_spec.rb:91 # Spree::Admin::Crm::ReportAdjustmentsController GET 'index' for distributor properly filters by date
rspec ./spec/controllers/spree/admin/crm/report_adjustments_controller_spec.rb:54 # Spree::Admin::Crm::ReportAdjustmentsController GET 'index' filters month by default
rspec ./spec/controllers/spree/admin/crm/report_adjustments_controller_spec.rb:63 # Spree::Admin::Crm::ReportAdjustmentsController GET 'index' properly filters by date
rspec ./spec/controllers/spree/admin/orders/customer_details_controller_decorator_spec.rb:67 # Spree::Admin::Orders::CustomerDetailsController PUT #update logged in as a non OLE or OSG distributor should not return an error if the params[:customer_id] is blank
rspec ./spec/acceptance/manage_distributors_spec.rb:20 # Manage distributors
In order to manage distributors
I want to see distributors
Go to distributors admin panel with NON Cm distributor
rspec ./spec/acceptance/manage_distributors_spec.rb:31 # Manage distributors
In order to manage distributors
I want to see distributors
Go to distributors admin panel with Cm distributor
rspec ./spec/acceptance/admin/distributors_spec.rb:20 # Manage commission rates for distributors
In order to manage commission rates for distributors in the admin panel
I want to set commission rates for distributors
commission rate setted correctly for distributor
rspec ./spec/acceptance/admin/country_masters_spec.rb:22 # Manage commission rates for country masters
In order to manage commission rates for country masters in the admin panel
I want to set commission rates for country masters
commission rates setted correctly for country master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment