Skip to content

Commit

Permalink
Remove Order payments association's inverse_of
Browse files Browse the repository at this point in the history
This was causing spree/spree_gateway#132, and would've caused similar issues for all non-token gateways (i.e. gateways that send CC info rather than getting a token and using that instead)

Super incredibly glad that we found this out before master was released as a real gem.
  • Loading branch information
radar committed Jan 28, 2014
1 parent 0f2b25b commit 1fe138e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/spec/models/spree/order_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ def compute(computable)
end

context "#payments" do
# For the reason of this test, please see spree/spree_gateway#132
it "does not have inverse_of defined" do
expect(Spree::Order.reflections[:payments].options[:inverse_of]).to be_nil
end
Expand Down

0 comments on commit 1fe138e

Please sign in to comment.