Sha256: 1218143c6d306ad367ed9ef30e6497445c6ebc92cc472fc9094877f0d6299437

Contents?: true

Size: 1.04 KB

Versions: 1

Compression:

Stored size: 1.04 KB

Contents

require 'spec_helper'

describe AdhearsionSequel::Plugin do

  describe "while accessing the plugin configuration" do

    it "should retrieve a valid configuration instance" do
      Adhearsion.config.adhearsion_sequel.should be_instance_of Loquacious::Configuration
    end

    it "should configure with an adapter" do
      Adhearsion.config.adhearsion_sequel.adapter.should == 'mysql'
    end

    it "should configure with a database" do
      Adhearsion.config.adhearsion_sequel.database.should == 'test'
    end

    it "should configure with the database username" do
      Adhearsion.config.adhearsion_sequel.username.should == 'root'
    end

    it "should configure with the database password" do
      Adhearsion.config.adhearsion_sequel.password.should == ''
    end

    it "should configure with the database server port" do
      Adhearsion.config.adhearsion_sequel.port.should == 3306
    end

     it "should configure with the database server host" do
      Adhearsion.config.adhearsion_sequel.host.should == 'localhost'
    end

 end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
adhearsion_sequel-0.0.1 spec/adhearsion_sequel/plugin_spec.rb