Sha256: 36ab8b277ef84cd67ad0a56802e3873a1852d0398bd0bf99f23d9ddf8c31d0e5
Contents?: true
Size: 1.2 KB
Versions: 3
Compression:
Stored size: 1.2 KB
Contents
require "spec_helper" describe Mongoid::Callbacks do describe ".included" do before do @class = Class.new do include Mongoid::Callbacks end end it "includes the before_create callback" do @class.should respond_to(:before_create) end it "includes the after_create callback" do @class.should respond_to(:after_create) end it "includes the before_destroy callback" do @class.should respond_to(:before_destroy) end it "includes the after_destroy callback" do @class.should respond_to(:after_destroy) end it "includes the before_save callback" do @class.should respond_to(:before_save) end it "includes the after_save callback" do @class.should respond_to(:after_save) end it "includes the before_update callback" do @class.should respond_to(:before_update) end it "includes the after_update callback" do @class.should respond_to(:after_update) end it "includes the before_validation callback" do @class.should respond_to(:before_validate) end it "includes the after_validation callback" do @class.should respond_to(:after_validate) end end end
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
mongoid-pre-2.0.0.beta1 | spec/unit/mongoid/callbacks_spec.rb |
mongoid-2.0.0.alpha | spec/unit/mongoid/callbacks_spec.rb |
mongoid-pre-2.0.0.pre | spec/unit/mongoid/callbacks_spec.rb |