about summary refs log tree commit diff
path: root/spec/controllers/settings/migrations_controller_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/controllers/settings/migrations_controller_spec.rb')
-rw-r--r--spec/controllers/settings/migrations_controller_spec.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/spec/controllers/settings/migrations_controller_spec.rb b/spec/controllers/settings/migrations_controller_spec.rb
index 048d9de8d..35c5747a0 100644
--- a/spec/controllers/settings/migrations_controller_spec.rb
+++ b/spec/controllers/settings/migrations_controller_spec.rb
@@ -19,8 +19,7 @@ describe Settings::MigrationsController do
     context 'when user is sign in' do
       subject { get :show }
 
-      let(:user) { Fabricate(:user, account: account) }
-      let(:account) { Fabricate(:account, moved_to_account: moved_to_account) }
+      let(:user) { Fabricate(:account, moved_to_account: moved_to_account).user }
 
       before { sign_in user, scope: :user }