Sha256: b82795cf5e5f16eb880e50ca5f3d18a0eb9b1f981b3071db9222e7b5d0be2c8c
Contents?: true
Size: 486 Bytes
Versions: 16
Compression:
Stored size: 486 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", partial_double_verification: false 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
16 entries across 16 versions & 1 rubygems