spec/unit/mongoid_spec.rb in mongoid-1.1.4 vs spec/unit/mongoid_spec.rb in mongoid-1.2.0

- old
+ new

@@ -1,28 +1,28 @@ require "spec_helper" describe Mongoid do - describe ".config" do + describe ".configure" do context "when no block supplied" do it "returns the config singleton" do - Mongoid.config.should == Mongoid::Config.instance + Mongoid.configure.should == Mongoid::Config.instance end end context "when a block is supplied" do before do - Mongoid.config do |config| + Mongoid.configure do |config| config.allow_dynamic_fields = false end end after do - Mongoid.config do |config| + Mongoid.configure do |config| config.allow_dynamic_fields = true end end it "sets the values on the config instance" do