Sha256: c11c5cc5b135b7d931ad1a9e50c62c9d8292ba1468cad37c46ae41a409bd112b

Contents?: true

Size: 690 Bytes

Versions: 3

Compression:

Stored size: 690 Bytes

Contents

require "spec_helper"

unless RUBY_PLATFORM == "java"
  describe Baza.const_get(:Driver).const_get(:Pg) do
    let(:constant) do
      const_name = "InfoPg"
      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_should_behave_like "a baza driver"
    it_should_behave_like "a baza databases 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"
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
baza-0.0.24 spec/drivers/pg_spec.rb
baza-0.0.23 spec/drivers/pg_spec.rb
baza-0.0.22 spec/drivers/pg_spec.rb