about summary refs log tree commit diff
path: root/spec/policies/email_domain_block_policy_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/policies/email_domain_block_policy_spec.rb')
-rw-r--r--spec/policies/email_domain_block_policy_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/policies/email_domain_block_policy_spec.rb b/spec/policies/email_domain_block_policy_spec.rb
index a3e825e07..1ff55af8e 100644
--- a/spec/policies/email_domain_block_policy_spec.rb
+++ b/spec/policies/email_domain_block_policy_spec.rb
@@ -6,7 +6,7 @@ require 'pundit/rspec'
 RSpec.describe EmailDomainBlockPolicy do
   let(:subject) { described_class }
   let(:admin)   { Fabricate(:user, admin: true).account }
-  let(:john)    { Fabricate(:user).account }
+  let(:john)    { Fabricate(:account) }
 
   permissions :index?, :create?, :destroy? do
     context 'admin' do