Sha256: 25ed4672a7570276d00079eef65405870a9ed5c3e3c78961c257afe38aab2b64

Contents?: true

Size: 358 Bytes

Versions: 23

Compression:

Stored size: 358 Bytes

Contents

require "spec_helper"

describe Mongoid do

  describe ".method_missing" do

    before do
      @config = mock
      Mongoid::Config.expects(:instance).returns(@config)
    end

    it "delegates all calls to the config singleton" do
      @config.expects(:raise_not_found_error=).with(false)
      Mongoid.raise_not_found_error = false
    end

  end

end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
mongoid-1.1.1 spec/unit/mongoid_spec.rb
mongoid-1.1.0 spec/unit/mongoid_spec.rb
mongoid-1.0.6 spec/unit/mongoid_spec.rb
mongoid-1.0.5 spec/unit/mongoid_spec.rb
mongoid-1.0.4 spec/unit/mongoid_spec.rb
mongoid-1.0.3 spec/unit/mongoid_spec.rb
mongoid-1.0.2 spec/unit/mongoid_spec.rb
mongoid-1.0.1 spec/unit/mongoid_spec.rb
mongoid-1.0.0 spec/unit/mongoid_spec.rb
mongoid-0.12.0 spec/unit/mongoid_spec.rb
mongoid-0.11.9 spec/unit/mongoid_spec.rb
mongoid-0.11.8 spec/unit/mongoid_spec.rb
mongoid-0.11.7 spec/unit/mongoid_spec.rb
mongoid-0.11.6 spec/unit/mongoid_spec.rb
mongoid-0.11.5 spec/unit/mongoid_spec.rb
mongoid-0.11.4 spec/unit/mongoid_spec.rb
mongoid-0.11.3 spec/unit/mongoid_spec.rb
mongoid-0.11.2 spec/unit/mongoid_spec.rb
mongoid-0.11.1 spec/unit/mongoid_spec.rb
mongoid-0.11.0 spec/unit/mongoid_spec.rb