We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ebed70d commit 76e62fcCopy full SHA for 76e62fc
spec/mongoid/alize/to_callback_spec.rb
@@ -69,7 +69,7 @@ def define_and_create(callback_name=:define_callback)
69
70
describe "#set_destroy_callback" do
71
it "should set a destroy callback on the klass" do
72
- mock(@callback.klass).set_callback(:destroy, :after, "denormalize_destroy_to_head")
+ mock(@callback.klass).set_callback(:destroy, :before, "denormalize_destroy_to_head")
73
@callback.send(:set_destroy_callback)
74
end
75
0 commit comments