Sha256: d16162d502e3a5e4a0b32866ac30ecb3c7936c34ee417bba34538041e270dcc9
Contents?: true
Size: 481 Bytes
Versions: 6
Compression:
Stored size: 481 Bytes
Contents
require 'spec_helper' describe Spree::Order, :type => :model do let(:order) { create(:order) } context "#update!" do let(:line_items) { [mock_model(Spree::LineItem, :amount => 5) ]} context "when there are update hooks" do before { Spree::Order.register_update_hook :foo } after { Spree::Order.update_hooks.clear } it "should call each of the update hooks" do expect(order).to receive :foo order.update! end end end end
Version data entries
6 entries across 6 versions & 1 rubygems