Sha256: dd78bb570737c39938a6728c965def9c8024ad435f5baa1c0343531cbbc652ca
Contents?: true
Size: 614 Bytes
Versions: 1
Compression:
Stored size: 614 Bytes
Contents
require "#{File.dirname(__FILE__)}/../spec_helper" describe SQLTree::Node::DeleteQuery do it "should parse a delete query without WHERE clause correctly" do delete = SQLTree::Node::DeleteQuery["DELETE FROM table"] delete.table.should == SQLTree::Node::TableReference.new("table") delete.where.should be_nil end it "should parse a delete query without WHERE clause correctly" do delete = SQLTree::Node::DeleteQuery["DELETE FROM table WHERE 1 = 1"] delete.table.should == SQLTree::Node::TableReference.new("table") delete.where.should be_kind_of(SQLTree::Node::Expression) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sql_tree-0.1.1 | spec/unit/delete_query_spec.rb |