Sha256: 2b423f8fbd9e9bf1e20b7ea9650ff0dc77d79591e0a43b20306cec202726da9c
Contents?: true
Size: 450 Bytes
Versions: 27
Compression:
Stored size: 450 Bytes
Contents
# frozen_string_literal: true 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
27 entries across 27 versions & 2 rubygems