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