Sha256: ccd3a64a39d189aaf907b9e4cc27b46138853aa476ee8088ac597daf30b454ba
Contents?: true
Size: 485 Bytes
Versions: 17
Compression:
Stored size: 485 Bytes
Contents
require 'spec_helper' describe Spree::Order, type: :model do let(:order) { stub_model(Spree::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
17 entries across 17 versions & 1 rubygems