Sha256: 8e1f38d73f155d38ccf28bf7cb955eac2260a0ec3cbaa35a96ee2dc9cd17ffb8

Contents?: true

Size: 905 Bytes

Versions: 28

Compression:

Stored size: 905 Bytes

Contents

require_relative "../../test_helper"

module Unit
  module Query
    class TestSQL < MiniTest::Test

      describe DirectiveRecord::Query::SQL do
        before do
          @base = mock
          @directive_query = DirectiveRecord::Query::SQL.new(@base)
        end

        describe "#initialize" do
          it "stores the passed base class as an instance variable" do
            assert_equal @base, @directive_query.instance_variable_get(:@base)
          end
        end

        describe "#path_delimiter" do
          it "returns nil" do
            assert_nil @directive_query.send(:path_delimiter)
          end
        end

        describe "#aggregate_delimiter" do
          it "raises an NotImplementedError" do
            assert_raises NotImplementedError do
              @directive_query.send :aggregate_delimiter
            end
          end
        end
      end

    end
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
directiverecord-0.1.32 test/unit/query/test_sql.rb
directiverecord-0.1.31 test/unit/query/test_sql.rb
directiverecord-0.1.30 test/unit/query/test_sql.rb
directiverecord-0.1.29 test/unit/query/test_sql.rb
directiverecord-0.1.28 test/unit/query/test_sql.rb
directiverecord-0.1.27 test/unit/query/test_sql.rb
directiverecord-0.1.26 test/unit/query/test_sql.rb
directiverecord-0.1.25 test/unit/query/test_sql.rb
directiverecord-0.1.24 test/unit/query/test_sql.rb
directiverecord-0.1.23 test/unit/query/test_sql.rb
directiverecord-0.1.22 test/unit/query/test_sql.rb
directiverecord-0.1.21 test/unit/query/test_sql.rb
directiverecord-0.1.20 test/unit/query/test_sql.rb
directiverecord-0.1.19 test/unit/query/test_sql.rb
directiverecord-0.1.18 test/unit/query/test_sql.rb
directiverecord-0.1.17 test/unit/query/test_sql.rb
directiverecord-0.1.16 test/unit/query/test_sql.rb
directiverecord-0.1.15 test/unit/query/test_sql.rb
directiverecord-0.1.14 test/unit/query/test_sql.rb
directiverecord-0.1.13 test/unit/query/test_sql.rb