aboutsummaryrefslogtreecommitdiffstats
path: root/spec/active_relation/relations/table_spec.rb
diff options
context:
space:
mode:
authorNick Kallen <nkallen@nick-kallens-computer-2.local>2008-01-21 20:12:21 -0800
committerNick Kallen <nkallen@nick-kallens-computer-2.local>2008-01-21 20:12:21 -0800
commit3f50d5c23719b6877124fcd9669bbf4811f4c2eb (patch)
tree747aa417444d99d999e23a4a39fbff423eed70ca /spec/active_relation/relations/table_spec.rb
parent7f35d492372fd91cd35e7f9a2408efd64d28ccf5 (diff)
downloadrails-3f50d5c23719b6877124fcd9669bbf4811f4c2eb.tar.gz
rails-3f50d5c23719b6877124fcd9669bbf4811f4c2eb.tar.bz2
rails-3f50d5c23719b6877124fcd9669bbf4811f4c2eb.zip
filling out some pending specs
Diffstat (limited to 'spec/active_relation/relations/table_spec.rb')
-rw-r--r--spec/active_relation/relations/table_spec.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/spec/active_relation/relations/table_spec.rb b/spec/active_relation/relations/table_spec.rb
index ec6e6e10bd..c8679707f5 100644
--- a/spec/active_relation/relations/table_spec.rb
+++ b/spec/active_relation/relations/table_spec.rb
@@ -17,7 +17,10 @@ module ActiveRelation
describe '#attributes' do
it 'manufactures attributes corresponding to columns in the table' do
- pending
+ @relation.attributes.should == [
+ Attribute.new(@relation, :name),
+ Attribute.new(@relation, :id)
+ ]
end
end