aboutsummaryrefslogblamecommitdiffstats
path: root/test/nodes/test_delete_statement.rb
blob: 299bdd38eefe87b7726f74ce6bccbd0fb12f0868 (plain) (tree)
1
2
3
4
5
6
7
8
9
                
 
                                        
                      
                         


                                                  
                             

                                                   


       
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