Sha256: 9735a05e653689e98f6e1601677e225f5f288f3d546b275b54ea5c7b2ce41889

Contents?: true

Size: 540 Bytes

Versions: 3

Compression:

Stored size: 540 Bytes

Contents

require 'spec_helper'

describe Itiel::DB::SQLConnectable do
  before :each do
    class Step
      include Itiel::DB::SQLConnectable
    end
  end

  it "sets and gets connection_file_path" do
    expect(Step).to respond_to :connection_file_path
    expect(Step).to respond_to :connection_file_path=
  end

  it "returns a sequel_connection object based on the connection file" do
    Step.connection_file_path = File.dirname(__FILE__) + '/../support/config/database.yml'
    expect(Step.sequel_connection(:test)).to_not be_nil
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
itiel-0.1.2 spec/db/sql_connectable_spec.rb
itiel-0.1.1 spec/db/sql_connectable_spec.rb
itiel-0.1.0 spec/db/sql_connectable_spec.rb