aboutsummaryrefslogtreecommitdiffstats
path: root/spec/active_relation/unit/relations/table_spec.rb
diff options
context:
space:
mode:
authorNick Kallen <nkallen@nick-kallens-computer-2.local>2008-03-12 00:06:41 -0700
committerNick Kallen <nkallen@nick-kallens-computer-2.local>2008-03-12 00:06:41 -0700
commit181f28e2f9ddd1aa8e78709c45368ade9585287a (patch)
treeb709b016a67e6e490bc988e540ef2805577bdf20 /spec/active_relation/unit/relations/table_spec.rb
parent8a62a733c107a33edee8cabc908c3ebc3b280e8b (diff)
downloadrails-181f28e2f9ddd1aa8e78709c45368ade9585287a.tar.gz
rails-181f28e2f9ddd1aa8e78709c45368ade9585287a.tar.bz2
rails-181f28e2f9ddd1aa8e78709c45368ade9585287a.zip
pending tests.
better coverage though i dislike the strategy
Diffstat (limited to 'spec/active_relation/unit/relations/table_spec.rb')
-rw-r--r--spec/active_relation/unit/relations/table_spec.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/spec/active_relation/unit/relations/table_spec.rb b/spec/active_relation/unit/relations/table_spec.rb
index 41ed2dc404..e62f84d93a 100644
--- a/spec/active_relation/unit/relations/table_spec.rb
+++ b/spec/active_relation/unit/relations/table_spec.rb
@@ -92,8 +92,9 @@ module ActiveRelation
end
describe '#reset' do
- it "" do
- pending
+ it "reloads columns from the database" do
+ lambda { stub(@relation).columns { [] } }.should_not change { @relation.attributes }
+ lambda { @relation.reset }.should change { @relation.attributes }
end
end
end