Sha256: 05c2ab1e701200bb108cc41658f530a4009a31104d8519132c22ab1673dbddef
Contents?: true
Size: 535 Bytes
Versions: 3
Compression:
Stored size: 535 Bytes
Contents
require File.dirname(__FILE__) + '/test_helper' module FriendlyId module Test module AcktiveRecord module Slugged test "should allow eager loading of slugs" do assert_nothing_raised do klass.find(instance.friendly_id, :include => :slugs) end end def klass Post end def other_class District end def instance @instance ||= klass.create! :name => "hello world" end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
friendly_id-3.0.0.beta3 | test/acktive_record/slugged.rb |
friendly_id-3.0.0.beta2 | test/acktive_record/slugged.rb |
friendly_id-3.0.0.beta1 | test/acktive_record/slugged.rb |