Skip to content

Instantly share code, notes, and snippets.

@chip
Created March 6, 2012 19:51
Show Gist options
  • Select an option

  • Save chip/1988614 to your computer and use it in GitHub Desktop.

Select an option

Save chip/1988614 to your computer and use it in GitHub Desktop.
Spec failures after Rails 3.2.2 upgrade
Failures:
1) OrderNote resolving issues With an existing order Charge the customer 100% of the purchase price should charge the customer
Failure/Error: subject.resolves(params, creator)
NoMethodError:
undefined method `[]' for nil:NilClass
# ./app/models/order_transaction.rb:199:in `fee!'
# ./app/models/order_note.rb:167:in `charge'
# ./app/models/order_note.rb:88:in `resolves'
# ./spec/models/order_note_spec.rb:290
2) OrderNote resolving issues With an existing order Charge the customer 100% of the purchase price logging should log the resolution amount
Failure/Error: subject.order_item.sale_price * current_factor }
NoMethodError:
undefined method `amount' for #<Module:0x13f8c5f10>
# ./app/models/order_item.rb:888:in `map'
# ./app/models/order_item.rb:888:in `extensions_amount'
# ./app/models/order_item.rb:821:in `money'
# ./app/models/order_item.rb:888:in `extensions_amount'
# ./app/models/order_item.rb:893:in `sale_price'
# ./app/models/order_item.rb:821:in `money'
# ./app/models/order_item.rb:893:in `sale_price'
# ./spec/models/order_note_spec.rb:237
# ./spec/models/order_note_spec.rb:306
3) OrderNote resolving issues With an existing order Charge the customer 50% of the purchase price should charge the customer
Failure/Error: subject.resolves(params, creator)
NoMethodError:
undefined method `[]' for nil:NilClass
# ./app/models/order_transaction.rb:199:in `fee!'
# ./app/models/order_note.rb:167:in `charge'
# ./app/models/order_note.rb:88:in `resolves'
# ./spec/models/order_note_spec.rb:398
4) OrderNote resolving issues With an existing order Charge the customer 50% of the purchase price logging should log the resolution amount
Failure/Error: subject.order_item.sale_price * current_factor }
NoMethodError:
undefined method `amount' for #<Module:0x13f39c200>
# ./app/models/order_item.rb:888:in `map'
# ./app/models/order_item.rb:888:in `extensions_amount'
# ./app/models/order_item.rb:821:in `money'
# ./app/models/order_item.rb:888:in `extensions_amount'
# ./app/models/order_item.rb:893:in `sale_price'
# ./app/models/order_item.rb:821:in `money'
# ./app/models/order_item.rb:893:in `sale_price'
# ./spec/models/order_note_spec.rb:345
# ./spec/models/order_note_spec.rb:414
5) OrderNote resolving issues With an existing order Charge the customer 10% of the purchase price should charge the customer
Failure/Error: subject.resolves(params, creator)
NoMethodError:
undefined method `[]' for nil:NilClass
# ./app/models/order_transaction.rb:199:in `fee!'
# ./app/models/order_note.rb:167:in `charge'
# ./app/models/order_note.rb:88:in `resolves'
# ./spec/models/order_note_spec.rb:507
6) OrderNote resolving issues With an existing order Charge the customer 10% of the purchase price logging should log the resolution amount
Failure/Error: subject.order_item.sale_price * current_factor
NoMethodError:
undefined method `amount' for #<Module:0x13ffc8da8>
# ./app/models/order_item.rb:888:in `map'
# ./app/models/order_item.rb:888:in `extensions_amount'
# ./app/models/order_item.rb:821:in `money'
# ./app/models/order_item.rb:888:in `extensions_amount'
# ./app/models/order_item.rb:893:in `sale_price'
# ./app/models/order_item.rb:821:in `money'
# ./app/models/order_item.rb:893:in `sale_price'
# ./spec/models/order_note_spec.rb:453
# ./spec/models/order_note_spec.rb:523
7) Carts Given I am a logged in user When I add a book to my cart I can update the rental period and save the changes
Failure/Error: click_on "Update Cart"
ActiveModel::MassAssignmentSecurity::Error:
Can't mass-assign protected attributes: compound_id
# ./app/controllers/carts_controller.rb:69:in `update'
# (eval):2:in `send'
# (eval):2:in `click_on'
# ./spec/requests/cart_spec.rb:28
# ./spec/requests/cart_spec.rb:26
Finished in 466.47 seconds
1203 examples, 7 failures, 25 pending
Failed examples:
rspec ./spec/models/order_note_spec.rb:280 # OrderNote resolving issues With an existing order Charge the customer 100% of the purchase price should charge the customer
rspec ./spec/models/order_note_spec.rb:300 # OrderNote resolving issues With an existing order Charge the customer 100% of the purchase price logging should log the resolution amount
rspec ./spec/models/order_note_spec.rb:388 # OrderNote resolving issues With an existing order Charge the customer 50% of the purchase price should charge the customer
rspec ./spec/models/order_note_spec.rb:408 # OrderNote resolving issues With an existing order Charge the customer 50% of the purchase price logging should log the resolution amount
rspec ./spec/models/order_note_spec.rb:497 # OrderNote resolving issues With an existing order Charge the customer 10% of the purchase price should charge the customer
rspec ./spec/models/order_note_spec.rb:517 # OrderNote resolving issues With an existing order Charge the customer 10% of the purchase price logging should log the resolution amount
rspec ./spec/requests/cart_spec.rb:25 # Carts Given I am a logged in user When I add a book to my cart I can update the rental period and save the changes
LiveReload 1.6 is waiting for a browser to connect.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment