diff options
Diffstat (limited to 'spec/controllers/settings')
7 files changed, 12 insertions, 0 deletions
diff --git a/spec/controllers/settings/exports/blocked_accounts_controller_spec.rb b/spec/controllers/settings/exports/blocked_accounts_controller_spec.rb index c815bdfec..e79a6729a 100644 --- a/spec/controllers/settings/exports/blocked_accounts_controller_spec.rb +++ b/spec/controllers/settings/exports/blocked_accounts_controller_spec.rb @@ -1,6 +1,8 @@ require 'rails_helper' describe Settings::Exports::BlockedAccountsController do + render_views + before do sign_in Fabricate(:user), scope: :user end diff --git a/spec/controllers/settings/exports/following_accounts_controller_spec.rb b/spec/controllers/settings/exports/following_accounts_controller_spec.rb index a7029709c..503455fea 100644 --- a/spec/controllers/settings/exports/following_accounts_controller_spec.rb +++ b/spec/controllers/settings/exports/following_accounts_controller_spec.rb @@ -1,6 +1,8 @@ require 'rails_helper' describe Settings::Exports::FollowingAccountsController do + render_views + before do sign_in Fabricate(:user), scope: :user end diff --git a/spec/controllers/settings/exports/muted_accounts_controller_spec.rb b/spec/controllers/settings/exports/muted_accounts_controller_spec.rb index bb52b6fcf..37c3a0fcf 100644 --- a/spec/controllers/settings/exports/muted_accounts_controller_spec.rb +++ b/spec/controllers/settings/exports/muted_accounts_controller_spec.rb @@ -1,6 +1,8 @@ require 'rails_helper' describe Settings::Exports::MutedAccountsController do + render_views + before do sign_in Fabricate(:user), scope: :user end diff --git a/spec/controllers/settings/follower_domains_controller_spec.rb b/spec/controllers/settings/follower_domains_controller_spec.rb index 1afdb9757..d48c3e68c 100644 --- a/spec/controllers/settings/follower_domains_controller_spec.rb +++ b/spec/controllers/settings/follower_domains_controller_spec.rb @@ -1,6 +1,8 @@ require 'rails_helper' describe Settings::FollowerDomainsController do + render_views + let(:user) { Fabricate(:user) } before do diff --git a/spec/controllers/settings/imports_controller_spec.rb b/spec/controllers/settings/imports_controller_spec.rb index d57350a14..8bf6aec2b 100644 --- a/spec/controllers/settings/imports_controller_spec.rb +++ b/spec/controllers/settings/imports_controller_spec.rb @@ -1,6 +1,7 @@ require 'rails_helper' RSpec.describe Settings::ImportsController, type: :controller do + render_views before do sign_in Fabricate(:user), scope: :user diff --git a/spec/controllers/settings/preferences_controller_spec.rb b/spec/controllers/settings/preferences_controller_spec.rb index 0d3dc059a..92b626d2d 100644 --- a/spec/controllers/settings/preferences_controller_spec.rb +++ b/spec/controllers/settings/preferences_controller_spec.rb @@ -1,6 +1,8 @@ require 'rails_helper' describe Settings::PreferencesController do + render_views + let(:user) { Fabricate(:user) } before do diff --git a/spec/controllers/settings/profiles_controller_spec.rb b/spec/controllers/settings/profiles_controller_spec.rb index 526bbc5bc..b3d6bc47d 100644 --- a/spec/controllers/settings/profiles_controller_spec.rb +++ b/spec/controllers/settings/profiles_controller_spec.rb @@ -1,6 +1,7 @@ require 'rails_helper' RSpec.describe Settings::ProfilesController, type: :controller do + render_views before do sign_in Fabricate(:user), scope: :user |