Sha256: 8af2ead42c7442e1acb1dd98b2db451b8c671930d162eec1f2b83a779f52dfdd

Contents?: true

Size: 719 Bytes

Versions: 7

Compression:

Stored size: 719 Bytes

Contents

require "spec_helper"

describe Baza::Driver::ActiveRecord do
  let(:constant) do
    const_name = "InfoActiveRecordMysql"
    require "#{File.dirname(__FILE__)}/../#{StringCases.camel_to_snake(const_name)}"
    raise "Constant was not defined: '#{const_name}'." unless Baza.const_defined?(const_name)
    Baza.const_get(const_name)
  end

  it_behaves_like "a baza driver"
  it_should_behave_like "a baza tables driver"
  it_should_behave_like "a baza columns driver"
  it_should_behave_like "a baza foreign keys driver"
  it_should_behave_like "a baza indexes driver"
  it_should_behave_like "a baza users driver"
  it_should_behave_like "an active record driver"
  it_should_behave_like "a baza importer driver"
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
baza-0.0.31 spec/drivers/active_record_mysql_spec.rb
baza-0.0.30 spec/drivers/active_record_mysql_spec.rb
baza-0.0.29 spec/drivers/active_record_mysql_spec.rb
baza-0.0.28 spec/drivers/active_record_mysql_spec.rb
baza-0.0.27 spec/drivers/active_record_mysql_spec.rb
baza-0.0.26 spec/drivers/active_record_mysql_spec.rb
baza-0.0.25 spec/drivers/active_record_mysql_spec.rb