提交 f4c12fcc 编写于 作者: A Aaron Patterson

making select manager public

上级 110f8f14
......@@ -97,11 +97,12 @@ def [] name
columns.find { |column| column.name == name }
end
private
def select_manager
SelectManager.new(@engine, self)
end
private
def attributes_for columns
return nil unless columns
......
......@@ -32,6 +32,7 @@ def initialize engine = FakeEngine.new
it 'should call insert on the connection' do
table = Table.new :users
fc = FakeCrudder.new
fc.from table
fc.insert [[table[:id], 'foo']]
fc.engine.calls.find { |method, _|
method == :insert
......
......@@ -27,7 +27,7 @@ def quote_table_name thing; @engine.connection.quote_table_name thing end
def quote_column_name thing; @engine.connection.quote_column_name thing end
def quote thing, column; @engine.connection.quote thing, column end
def execute sql, name = nil
def execute sql, name = nil, *args
@executed << sql
end
alias :update :execute
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册