aboutsummaryrefslogblamecommitdiffstats
path: root/test/nodes/test_select_statement.rb
blob: 8bbf7d174c725c7c574237aa357bd275c4f9fe58 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
                

                                        
                      


                                                            
                             

                                                 


       
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