Sha256: 826c71a07a191ebb9662516313e0bdec37d7f7f1c5e5824bea6c9b8b22a6611c

Contents?: true

Size: 843 Bytes

Versions: 14

Compression:

Stored size: 843 Bytes

Contents

# -*- coding: utf-8 -*-
require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper')

describe 'Tengine::Support::Config::Mongoid' do

  context "static" do
    describe Tengine::Support::Config::Mongoid::Connection.host do
      it { subject.should be_a(Tengine::Support::Config::Definition::Field)}
      its(:type){ should == :string }
      its(:__name__){ should == :host }
      its(:description){ should == 'hostname to connect db.'}
      its(:default){ should == 'localhost'}
    end

    describe Tengine::Support::Config::Mongoid::Connection.port do
      it { subject.should be_a(Tengine::Support::Config::Definition::Field)}
      its(:type){ should == :integer }
      its(:__name__){ should == :port }
      its(:description){ should == 'port to connect db.'}
      its(:default){ should == 27017}
    end
  end

end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
tengine_support-0.3.16 spec/tengine_support/config/mongoid_spec.rb
tengine_support-0.3.15 spec/tengine_support/config/mongoid_spec.rb
tengine_support-0.3.14 spec/tengine_support/config/mongoid_spec.rb
tengine_support-0.3.13 spec/tengine_support/config/mongoid_spec.rb
tengine_support-0.3.12 spec/tengine_support/config/mongoid_spec.rb
tengine_support-0.3.11 spec/tengine_support/config/mongoid_spec.rb
tengine_support-0.3.10 spec/tengine_support/config/mongoid_spec.rb
tengine_support-0.3.9 spec/tengine_support/config/mongoid_spec.rb
tengine_support-0.3.8 spec/tengine_support/config/mongoid_spec.rb
tengine_support-0.3.7 spec/tengine_support/config/mongoid_spec.rb
tengine_support-0.3.6 spec/tengine_support/config/mongoid_spec.rb
tengine_support-0.3.5 spec/tengine_support/config/mongoid_spec.rb
tengine_support-0.3.4 spec/tengine_support/config/mongoid_spec.rb
tengine_support-0.3.3 spec/tengine_support/config/mongoid_spec.rb