mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
15 lines
356 B
Ruby
15 lines
356 B
Ruby
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.should_receive(:clone).and_return([:wheres])
|
|
|
|
dolly = statement.clone
|
|
dolly.wheres.should == [:wheres]
|
|
end
|
|
end
|
|
end
|