Skip to content

Commit

Permalink
Add spec ensuring results of loaded associations are flat (related #8)
Browse files Browse the repository at this point in the history
  • Loading branch information
ernie committed Dec 20, 2011
1 parent 6f05011 commit 9afbe22
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions spec/valium/valium_spec.rb
Expand Up @@ -79,6 +79,9 @@
# need another query
specify { queries_for { subject.value_of :id }.should have(1).query }

specify { subject.values_of(:id).
should eq [1,50,100] }

specify { subject.values_of(:id, :created_at, :extra_info).
should eq Person.where(:id => [1,50,100]).values_of(:id, :created_at, :extra_info) }
end
Expand Down

0 comments on commit 9afbe22

Please sign in to comment.