Sha256: 4f3f8017e4b79a0b5616b819376b3b88174b37a883ac563ee9ae136cca8ebca5
Contents?: true
Size: 262 Bytes
Versions: 1
Compression:
Stored size: 262 Bytes
Contents
require 'spec_helper' describe UnscopedAssociations do it 'belongs_to with unscoped option should skip default_scope' do user = User.create(:active => false) comment = Comment.create(:user_id => user.id) expect(comment.user).to eq(user) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
unscoped_associations-0.5.0 | spec/unscoped_associations_spec.rb |