Skip to content

Instantly share code, notes, and snippets.

@GeekOnCoffee
Created December 13, 2011 01:32
Show Gist options
  • Save GeekOnCoffee/1469976 to your computer and use it in GitHub Desktop.
Save GeekOnCoffee/1469976 to your computer and use it in GitHub Desktop.
1) Spree::Address clone creates a copy of the address with the exception of the id, updated_at and created_at attributes
Failure/Error: original = Factory(:address,
NoMethodError:
undefined method `country_id' for nil:NilClass
# ./app/models/spree/address.rb:28:in `state_validate'
# ./spec/models/address_spec.rb:19:in `block (3 levels) in <top (required)>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment