From 2fa1ff4e63f27d49a529116bb5e9933a0f385c3e Mon Sep 17 00:00:00 2001 From: Nick Kallen Date: Mon, 7 Jan 2008 18:59:32 -0800 Subject: nk --- spec/active_relation/relations/attribute_spec.rb | 2 +- spec/active_relation/relations/rename_relation_spec.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'spec/active_relation') diff --git a/spec/active_relation/relations/attribute_spec.rb b/spec/active_relation/relations/attribute_spec.rb index ddfc22fe28..68ff147ab5 100644 --- a/spec/active_relation/relations/attribute_spec.rb +++ b/spec/active_relation/relations/attribute_spec.rb @@ -6,7 +6,7 @@ describe Attribute do @relation2 = TableRelation.new(:bar) end - describe '#aliazz' do + describe '#alias' do it "manufactures an aliased attributed" do pending end diff --git a/spec/active_relation/relations/rename_relation_spec.rb b/spec/active_relation/relations/rename_relation_spec.rb index 9b1d2d5cc8..00a93d10ac 100644 --- a/spec/active_relation/relations/rename_relation_spec.rb +++ b/spec/active_relation/relations/rename_relation_spec.rb @@ -26,7 +26,7 @@ describe RenameRelation do describe '#attributes' do it "manufactures a list of attributes with the renamed attribute aliased" do RenameRelation.new(@relation, @relation[:id] => :schmid).attributes.should == - (@relation.attributes - [@relation[:id]]) + [@relation[:id].aliazz(:schmid)] + (@relation.attributes - [@relation[:id]]) + [@relation[:id].alias(:schmid)] end end -- cgit v1.2.3