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