Sha256: e6fdf427213d5939631e799e9a752b70911fee7a77d5e5d3efc1616797a5f02a
Contents?: true
Size: 501 Bytes
Versions: 6
Compression:
Stored size: 501 Bytes
Contents
require 'spec_helper' describe Spree::Order, type: :model do let(:order) { create(:order) } context "#update_with_updater!" 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_with_updater! end end end end
Version data entries
6 entries across 6 versions & 1 rubygems