Sha256: aaa8bf993a8a50050ccd697d98c35e678858282041e02a03cd0d7e765a7cc3c4
Contents?: true
Size: 419 Bytes
Versions: 11
Compression:
Stored size: 419 Bytes
Contents
require 'rails_helper' RSpec.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.recalculate end end end end
Version data entries
11 entries across 11 versions & 1 rubygems