mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
14 lines
342 B
Ruby
14 lines
342 B
Ruby
require 'helper'
|
|
|
|
describe Arel::Nodes::DeleteStatement do
|
|
describe "#clone" do
|
|
it "clones wheres" do
|
|
statement = Arel::Nodes::DeleteStatement.new
|
|
statement.wheres = %w[a b c]
|
|
|
|
dolly = statement.clone
|
|
dolly.wheres.must_equal statement.wheres
|
|
dolly.wheres.wont_be_same_as statement.wheres
|
|
end
|
|
end
|
|
end
|