aboutsummaryrefslogtreecommitdiffstats
path: root/spec/active_relation
diff options
context:
space:
mode:
authorNick Kallen <nkallen@nick-kallens-computer-2.local>2008-01-07 18:59:32 -0800
committerNick Kallen <nkallen@nick-kallens-computer-2.local>2008-01-07 18:59:32 -0800
commit2fa1ff4e63f27d49a529116bb5e9933a0f385c3e (patch)
tree193ff8e6da6a2a8d3240e05c9a7445fe0b4ab2a7 /spec/active_relation
parent311f5f8eb588d4cde051762ace87a61425300bec (diff)
downloadrails-2fa1ff4e63f27d49a529116bb5e9933a0f385c3e.tar.gz
rails-2fa1ff4e63f27d49a529116bb5e9933a0f385c3e.tar.bz2
rails-2fa1ff4e63f27d49a529116bb5e9933a0f385c3e.zip
nk
Diffstat (limited to 'spec/active_relation')
-rw-r--r--spec/active_relation/relations/attribute_spec.rb2
-rw-r--r--spec/active_relation/relations/rename_relation_spec.rb2
2 files changed, 2 insertions, 2 deletions
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