Sha256: a60063df5cd1a9d7d64256b1ec8ef90741f87f7cb3770c97a4e6f8b99567cc08

Contents?: true

Size: 465 Bytes

Versions: 4

Compression:

Stored size: 465 Bytes

Contents

require "spec_helper"

describe "Configuration" do
  it "should set the configuration vars from database url" do
    MiniMongo.configure do |config|
      config.database_url = "mongodb://:@localhost:27017/posts"
    end
    MiniMongo.configuration.db_name.should == "posts"
  end

  it "should set configuration vars" do
    MiniMongo.configure do |config|
      config.db_user = "roberto"
    end
    MiniMongo.configuration.db_user.should == "roberto"
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
mini_mongo-0.1.0 spec/configutation_spec.rb
mini_mongo-0.0.4 spec/configutation_spec.rb
mini_mongo-0.0.3 spec/configutation_spec.rb
mini_mongo-0.0.2 spec/configutation_spec.rb