From 7a6d95f70ccb12d61355ecd677eff40dd13260b7 Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Fri, 14 Oct 2016 02:28:49 +0200 Subject: E-mail preferences page --- spec/controllers/settings/preferences_controller_spec.rb | 16 ++++++++++++++++ spec/controllers/settings/profiles_controller_spec.rb | 16 ++++++++++++++++ spec/controllers/settings_controller_spec.rb | 16 ---------------- spec/helpers/settings_helper_spec.rb | 5 ----- 4 files changed, 32 insertions(+), 21 deletions(-) create mode 100644 spec/controllers/settings/preferences_controller_spec.rb create mode 100644 spec/controllers/settings/profiles_controller_spec.rb delete mode 100644 spec/controllers/settings_controller_spec.rb delete mode 100644 spec/helpers/settings_helper_spec.rb (limited to 'spec') diff --git a/spec/controllers/settings/preferences_controller_spec.rb b/spec/controllers/settings/preferences_controller_spec.rb new file mode 100644 index 000000000..a5d349d6d --- /dev/null +++ b/spec/controllers/settings/preferences_controller_spec.rb @@ -0,0 +1,16 @@ +require 'rails_helper' + +RSpec.describe Settings::PreferencesController, type: :controller do + + before do + sign_in Fabricate(:user), scope: :user + end + + describe "GET #show" do + it "returns http success" do + get :show + expect(response).to have_http_status(:success) + end + end + +end diff --git a/spec/controllers/settings/profiles_controller_spec.rb b/spec/controllers/settings/profiles_controller_spec.rb new file mode 100644 index 000000000..526bbc5bc --- /dev/null +++ b/spec/controllers/settings/profiles_controller_spec.rb @@ -0,0 +1,16 @@ +require 'rails_helper' + +RSpec.describe Settings::ProfilesController, type: :controller do + + before do + sign_in Fabricate(:user), scope: :user + end + + describe "GET #show" do + it "returns http success" do + get :show + expect(response).to have_http_status(:success) + end + end + +end diff --git a/spec/controllers/settings_controller_spec.rb b/spec/controllers/settings_controller_spec.rb deleted file mode 100644 index 0b41a2111..000000000 --- a/spec/controllers/settings_controller_spec.rb +++ /dev/null @@ -1,16 +0,0 @@ -require 'rails_helper' - -RSpec.describe SettingsController, type: :controller do - - before do - sign_in Fabricate(:user), scope: :user - end - - describe "GET #show" do - it "returns http success" do - get :show - expect(response).to have_http_status(:success) - end - end - -end diff --git a/spec/helpers/settings_helper_spec.rb b/spec/helpers/settings_helper_spec.rb deleted file mode 100644 index 9c68490a1..000000000 --- a/spec/helpers/settings_helper_spec.rb +++ /dev/null @@ -1,5 +0,0 @@ -require 'rails_helper' - -RSpec.describe SettingsHelper, type: :helper do - -end -- cgit