Sha256: 1804852f671a52a454a78fc0b20da1410b3b6e8a533b3c54e2673eee7f602597
Contents?: true
Size: 408 Bytes
Versions: 15
Compression:
Stored size: 408 Bytes
Contents
require 'spec_helper' describe Spree::Order, type: :model do let(:order) { create(:order) } context "#update!" do 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
15 entries across 15 versions & 1 rubygems