Skip to content

Commit feb718d

Browse files
committed
Fixed some descriptions of update query spec.
1 parent 075a163 commit feb718d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/unit/update_query_spec.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
describe SQLTree::Node::UpdateQuery do
44

5-
it "should parse a delete query without WHERE clause correctly" do
5+
it "should parse an UPDATE query without WHERE clause correctly" do
66
update = SQLTree::Node::UpdateQuery["UPDATE table SET field1 = 1, field2 = 5 - 3"]
77
update.table.should == SQLTree::Node::TableReference.new("table")
88
update.updates.should have(2).items
@@ -13,7 +13,7 @@
1313
update.where.should be_nil
1414
end
1515

16-
it "should parse a delete query without WHERE clause correctly" do
16+
it "should parse an UPDATE query with WHERE clause correctly" do
1717
update = SQLTree::Node::UpdateQuery["UPDATE table SET field = 1 WHERE id = 17"]
1818
update.table.should == SQLTree::Node::TableReference.new("table")
1919
update.updates.should have(1).item

0 commit comments

Comments
 (0)