diff options
Diffstat (limited to 'test/nodes/test_select_statement.rb')
-rw-r--r-- | test/nodes/test_select_statement.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/nodes/test_select_statement.rb b/test/nodes/test_select_statement.rb new file mode 100644 index 0000000000..45613bfa4d --- /dev/null +++ b/test/nodes/test_select_statement.rb @@ -0,0 +1,13 @@ +require 'spec_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 |