From a3b8ef8375056cd3b6a8cea49dec671f2a8f6c41 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Sun, 22 Aug 2010 18:13:39 -0700 Subject: orders are working --- spec/arel/nodes/insert_statement_spec.rb | 4 ++-- spec/arel/nodes/select_core_spec.rb | 8 ++++---- spec/arel/nodes/update_statement_spec.rb | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) (limited to 'spec/arel/nodes') diff --git a/spec/arel/nodes/insert_statement_spec.rb b/spec/arel/nodes/insert_statement_spec.rb index 644e3fb192..286a44130c 100644 --- a/spec/arel/nodes/insert_statement_spec.rb +++ b/spec/arel/nodes/insert_statement_spec.rb @@ -15,8 +15,8 @@ describe Arel::Nodes::InsertStatement do end dolly = statement.clone - dolly.columns.should == %w[a0 b1 c2] - dolly.values.should == %w[x0 y1 z2] + check dolly.columns.should == %w[a0 b1 c2] + check dolly.values.should == %w[x0 y1 z2] end end end diff --git a/spec/arel/nodes/select_core_spec.rb b/spec/arel/nodes/select_core_spec.rb index cf717a3904..30927abea6 100644 --- a/spec/arel/nodes/select_core_spec.rb +++ b/spec/arel/nodes/select_core_spec.rb @@ -13,11 +13,11 @@ describe Arel::Nodes::SelectCore do o.should_receive(:clone).and_return("#{o}#{j}") end end - + dolly = core.clone - dolly.froms.should == %w[a0 b1 c2] - dolly.projections.should == %w[d0 e1 f2] - dolly.wheres.should == %w[g0 h1 i2] + check dolly.froms.should == %w[a0 b1 c2] + check dolly.projections.should == %w[d0 e1 f2] + check dolly.wheres.should == %w[g0 h1 i2] end end end diff --git a/spec/arel/nodes/update_statement_spec.rb b/spec/arel/nodes/update_statement_spec.rb index 8cbca1fd73..3d425e2843 100644 --- a/spec/arel/nodes/update_statement_spec.rb +++ b/spec/arel/nodes/update_statement_spec.rb @@ -15,8 +15,8 @@ describe Arel::Nodes::UpdateStatement do end dolly = statement.clone - dolly.wheres.should == %w[a0 b1 c2] - dolly.values.should == %w[x0 y1 z2] + check dolly.wheres.should == %w[a0 b1 c2] + check dolly.values.should == %w[x0 y1 z2] end end end -- cgit v1.2.3