diff options
Diffstat (limited to 'spec/arel/unit/relations')
-rw-r--r-- | spec/arel/unit/relations/alias_spec.rb | 9 | ||||
-rw-r--r-- | spec/arel/unit/relations/selection_spec.rb | 9 |
2 files changed, 3 insertions, 15 deletions
diff --git a/spec/arel/unit/relations/alias_spec.rb b/spec/arel/unit/relations/alias_spec.rb index 85850b5e1a..96e06f48bc 100644 --- a/spec/arel/unit/relations/alias_spec.rb +++ b/spec/arel/unit/relations/alias_spec.rb @@ -11,15 +11,6 @@ module Arel Alias.new(@relation).should_not == Alias.new(@relation) (aliaz = Alias.new(@relation)).should == aliaz end - - it '' do - @relation.select(@relation[:id].eq(1)).to_sql.should be_like(" - SELECT `users`.`id`, `users`.`name` - FROM `users` - WHERE - `users`.`id` = 1 - ") - end end end end
\ No newline at end of file diff --git a/spec/arel/unit/relations/selection_spec.rb b/spec/arel/unit/relations/selection_spec.rb index 61d9787df2..20807f952f 100644 --- a/spec/arel/unit/relations/selection_spec.rb +++ b/spec/arel/unit/relations/selection_spec.rb @@ -8,13 +8,10 @@ module Arel end describe '#initialize' do - before do - @another_predicate = @relation[:name].lt(2) - end - it "manufactures nested selection relations if multiple predicates are provided" do - Selection.new(@relation, @predicate, @another_predicate). \ - should == Selection.new(Selection.new(@relation, @another_predicate), @predicate) + another_predicate = @relation[:name].lt(2) + Selection.new(@relation, @predicate, another_predicate). \ + should == Selection.new(Selection.new(@relation, another_predicate), @predicate) end end |