Sha256: 4b7bfa732d5b69fd16f1219837eff6257a9f9f7df81b5b4be5dc46113e277af5

Contents?: true

Size: 1.01 KB

Versions: 18

Compression:

Stored size: 1.01 KB

Contents

require File.expand_path(File.dirname(__FILE__) + '/spec_helper')

describe "Mebla" do
  describe "loading" do
    !(defined?(Mongoid).nil?).should == true
    !(defined?(Slingshot).nil?).should == true
    !(defined?(Configuration).nil?).should == true
    !(defined?(Context).nil?).should == true
    !(defined?(LogSubscriber).nil?).should == true
    !(defined?(ResultSet).nil?).should == true
    !(defined?(Errors).nil?).should == true
    !(defined?(Search).nil?).should == true
    !(defined?(Mongoid::Mebla).nil?).should == true
  end
  
  describe "configuration" do
    it "should hold the correct data" do
      Mebla::Configuration.instance.index.should == "mebla"
      Mebla::Configuration.instance.host.should == "localhost"
      Mebla::Configuration.instance.port.should == 9200
      Mebla::Configuration.instance.logger.nil?.should == false
    end
    
    it "url should return a valid url based on the host and port" do
      Mebla::Configuration.instance.url.should == "http://localhost:9200"
    end
  end
end

Version data entries

18 entries across 18 versions & 2 rubygems

Version Path
rmla-1.0 spec/mebla_spec.rb
mebla-1.1.14 spec/mebla_spec.rb
mebla-1.1.13 spec/mebla_spec.rb
mebla-1.1.12 spec/mebla_spec.rb
mebla-1.1.11 spec/mebla_spec.rb
mebla-1.1.10 spec/mebla_spec.rb
mebla-1.1.9 spec/mebla_spec.rb
mebla-1.1.8 spec/mebla_spec.rb
mebla-1.1.7 spec/mebla_spec.rb
mebla-1.1.6 spec/mebla_spec.rb
mebla-1.1.5 spec/mebla_spec.rb
mebla-1.1.4 spec/mebla_spec.rb
mebla-1.1.2 spec/mebla_spec.rb
mebla-1.1.1 spec/mebla_spec.rb
mebla-1.1.0 spec/mebla_spec.rb
mebla-1.0.3 spec/mebla_spec.rb
mebla-1.0.2 spec/mebla_spec.rb
mebla-1.0.1 spec/mebla_spec.rb