Sha256: c1446843dbc134beb011953ace50f5de4b1d66696dfe9791894ab40f1ead762c

Contents?: true

Size: 484 Bytes

Versions: 10

Compression:

Stored size: 484 Bytes

Contents

require_relative '../../spec_helper'

describe Cranium::DSL::DatabaseDefinition do

  let(:database) { Cranium::DSL::DatabaseDefinition.new "name" }


  describe "#name" do
    it "should return the name of the database definition" do
      expect(database.name).to eq("name")
    end
  end


  describe "#connect_to" do
    it "should set the attribute to the specified value" do
      database.connect_to "value"

      expect(database.connect_to).to eq("value")
    end
  end

end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
cranium-0.6.1 spec/cranium/dsl/database_definition_spec.rb
cranium-0.5 spec/cranium/dsl/database_definition_spec.rb
cranium-0.4.3 spec/cranium/dsl/database_definition_spec.rb
cranium-0.4.2 spec/cranium/dsl/database_definition_spec.rb
cranium-0.4.1 spec/cranium/dsl/database_definition_spec.rb
cranium-0.4 spec/cranium/dsl/database_definition_spec.rb
cranium-0.3.1 spec/cranium/dsl/database_definition_spec.rb
cranium-0.3.0 spec/cranium/dsl/database_definition_spec.rb
cranium-0.2.1 spec/cranium/dsl/database_definition_spec.rb
cranium-0.2.0 spec/cranium/dsl/database_definition_spec.rb