Skip to content

Commit

Permalink
Tests eager loading of slug relation.
Browse files Browse the repository at this point in the history
  • Loading branch information
norman committed May 24, 2010
1 parent 2221d84 commit e807783
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/active_record_adapter/slugged.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ module Slugged
assert_nothing_raised do
klass.find(instance.friendly_id, :include => :slugs)
end

assert_nothing_raised do
klass.find(instance.friendly_id, :include => :slug)
end

end

def klass
Expand Down

0 comments on commit e807783

Please sign in to comment.