Skip to content

Instantly share code, notes, and snippets.

View radar's full-sized avatar

Ryan Bigg radar

View GitHub Profile
<%= f.label :foo %>
<%= f.text_area :foo %>
Failures:
1) Spree::Promotion#activate should check path if present
Failure/Error: promotion.promotion_actions = [@action1, @action2]
Double "Spree::PromotionAction_1001" received unexpected message :has_attribute? with ("promotion_id")
# ./spec/models/spree/promotion_spec.rb:62:in `block (3 levels) in <top (required)>'
2) Spree::Promotion#activate does not perform actions against an order in a finalized state
Failure/Error: promotion.promotion_actions = [@action1, @action2]
Double "Spree::PromotionAction_1003" received unexpected message :has_attribute? with ("promotion_id")
Failures:
1) Spree::Asset#viewable touches association
Failure/Error: expect do
result should have changed, but is still Sun, 16 Mar 2014 01:39:48 UTC +00:00
# ./spec/models/spree/asset_spec.rb:11:in `block (3 levels) in <top (required)>'
Finished in 0.32592 seconds
1 example, 1 failure
railsbot=# SELECT * FROM messages where TEXT ILIKE '%helpa has spoken%' ORDER BY created_at ASC;
id | text | channel_id | person_id | created_at | type | hidden
---------+----------------------------+------------+-----------+----------------------------+---------+--------
707827 | HELPA HAS SPOKEN | 2 | 62 | 2013-03-18 05:59:12.212002 | | f
856294 | HELPA HAS SPOKEN | 2 | 62 | 2013-04-27 04:34:23.225048 | message | f
1225891 | THE GREAT HELPA HAS SPOKEN | 2 | 62 | 2013-09-04 02:28:54.739519 | message | f
1286350 | HELPA HAS SPOKEN | 2 | 62 | 2013-09-25 00:27:29.322752 | message | f
1329136 | HELPA HAS SPOKEN | 2 | 62 | 2013-10-07 05:32:38.902049 | message | f
1347391 | HELPA HAS SPOKEN | 5 | 62 | 2013-10-11 05:27:00.39887 | message | f
1463548 | HELPA HAS SPOKEN | 2 | 62 | 201
saas_book (master)⸘ wc -w chapter_*.markdown.erb
1298 chapter_1.markdown.erb
14689 chapter_2.markdown.erb
12638 chapter_3.markdown.erb
15661 chapter_4.markdown.erb
14234 chapter_5.markdown.erb
1150 chapter_6.markdown.erb
59670 total
1) ThingsController GET 'index' returns http success
Failure/Error: get 'index'
NoMethodError:
undefined method `id' for nil:NilClass
# ./spec/dummy/app/models/thing.rb:4:in `scoped_to'
# ./spec/dummy/app/controllers/things_controller.rb:3:in `index'
# ./spec/dummy/spec/controllers/things_controller_spec.rb:7:in `block (3 levels) in <top (required)>'
2) Subscribem::AccountsController creates the account's schema
Failure/Error: post :create, account: { name: "First Account" }, use_route: :subscribem
1) Spree::Gateway::BraintreeGateway capture raise an error if capture fails using spree interface
Failure/Error: @payment.payment_source.capture(@payment) # as done in PaymentsController#fire
NoMethodError:
undefined method `reopen' for nil:NilClass
# /Users/ryanbigg/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activesupport-4.0.4/lib/active_support/core_ext/kernel/reporting.rb:98:in `ensure in capture'
# /Users/ryanbigg/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activesupport-4.0.4/lib/active_support/core_ext/kernel/reporting.rb:98:in `capture'
# ./spec/models/gateway/braintree_gateway_spec.rb:205:in `block (3 levels) in <top (required)>'
1) Spree::Api::CheckoutsController PUT 'update' can transition from confirm to complete
Failure/Error: json_response['state'].should == 'complete'
expected: "complete"
got: nil (using ==)
# ./spec/controllers/spree/api/checkouts_controller_spec.rb:179:in `block (3 levels) in <module:Spree>'
2) Spree::Api::OrdersController as an admin can cancel an order should == "canceled"
Failure/Error: json_response["state"].should == "canceled"
expected: "canceled"
got: nil (using ==)
backend (master)⸘ ber spec/controllers/spree/admin/promotions_controller_spec.rb
Instance method "open" is already defined in Object, use generic helper instead or set StateMachine::Machine.ignore_method_conflicts = true.
FFFFF
Failures:
1) Spree::Admin::PromotionsController#index succeeds
Failure/Error: expect(assigns[:promotions].map(&:id)).to eq [promotion1.id, promotion2.id]
expected: [1, 2]
# Tax rates can *potentially* be applicable to an order.
# We do not know if they are/aren't until we attempt to apply these rates to
# the items contained within the Order itself.
# For instance, if a rate passes the criteria outlined in this method,
# but then has a tax category that doesn't match against any of the line items
# inside of the order, then that tax rate will not be applicable to anything.
# For instance:
#
# Zones:
# - Spain (default tax zone)