1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/spec/arel/nodes/select_statement_spec.rb
2010-08-19 01:38:09 -04:00

16 lines
378 B
Ruby

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