unscoped_associations 0.6.0 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
@@ -3,7 +3,7 @@ require 'spec_helper'
|
|
3
3
|
describe UnscopedAssociations do
|
4
4
|
context 'unscoped association omits default_scope' do
|
5
5
|
it 'belongs_to' do
|
6
|
-
user = User.
|
6
|
+
user = User.create(active: false)
|
7
7
|
comment = Comment.create(user_id: user.id)
|
8
8
|
|
9
9
|
expect(comment.unscoped_user).to eq(user)
|