You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
context "approved artwork" do
let!(:artwork_address_verified) {FactoryGirl.create(:artwork, state: :address_verified)}
it "should request a shipping label via XML when generating one" do
artwork_address_verified.should_receive(:request_shipping_label_for_xml) {}
artwork_address_verified.should_receive(:shipping_label_xml)
artwork_address_verified.generate_shipping_label
end
end
Getting
1) Artwork valid artwork approved artwork should request a shipping label via XML when generating one
Failure/Error: artwork_address_verified.should_receive(:request_shipping_label_for_xml) {}
(#<Artwork:0x007f8ae10fbf90>).request_shipping_label_for_xml(any args)
expected: 1 time
received: 2 times
The text was updated successfully, but these errors were encountered:
@sfkaos By design and since version 4.0.0 (which was released only a week ago), guards (event and transition) were fired twice when firing an event.
This is obsolete in my point of view, and not very helpful with expensive (long-running) guard either, and I removed this now. Will release a patched version soon (4.0.1 then).
I am currently seeing guard method being called twice in aasm events. Please see below:
Here is the test
Getting
The text was updated successfully, but these errors were encountered: