blob: 03fa41799a56d50f0783613ee4b20303aba51fc8 (
plain) (
tree)
|
|
require 'spec_helper'
describe Arel::Nodes::DeleteStatement do
describe "#clone" do
it "clones wheres" do
statement = Arel::Nodes::DeleteStatement.new
statement.wheres = %w[a b c]
statement.wheres.each_with_index do |o, j|
o.should_receive(:clone).and_return("#{o}#{j}")
end
dolly = statement.clone
dolly.wheres.should == %w[a0 b1 c2]
end
end
end
|