Sha256: 7c414375ca386f9b37962938e8e38c9dd9945032cec3a21b56bfc989e87bb9e2

Contents?: true

Size: 733 Bytes

Versions: 3

Compression:

Stored size: 733 Bytes

Contents

require "spec_helper"

describe Baza::Driver::Tiny do
  describe "#quote_database" do
    it "quotes the given database name" do
      expect(Baza::Driver::Tiny.quote_database("test_database")).to eq "[test_database]"
    end
  end

  describe "#quote_column" do
    it "quotes the given column name" do
      expect(Baza::Driver::Tiny.quote_column("test_column")).to eq "[test_column]"
    end
  end

  describe "#quote_index" do
    it "quotes the given index name" do
      expect(Baza::Driver::Tiny.quote_index("test_index")).to eq "[test_index]"
    end
  end

  describe "#quote_table" do
    it "quotes the given table name" do
      expect(Baza::Driver::Tiny.quote_table("test_table")).to eq "[test_table]"
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
baza-0.0.38 spec/drivers/tiny_spec.rb
baza-0.0.37 spec/drivers/tiny_spec.rb
baza-0.0.36 spec/drivers/tiny_spec.rb