about summary refs log tree commit diff
path: root/spec/controllers/settings
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-10-14 02:28:49 +0200
committerEugen Rochko <eugen@zeonfederated.com>2016-10-14 02:28:49 +0200
commit7a6d95f70ccb12d61355ecd677eff40dd13260b7 (patch)
tree93abd8019a8ca91c1c251307f0773ca008f4b875 /spec/controllers/settings
parent9b195f5dd34ad646e1300abaaa42e10cf43cd5db (diff)
E-mail preferences page
Diffstat (limited to 'spec/controllers/settings')
-rw-r--r--spec/controllers/settings/preferences_controller_spec.rb16
-rw-r--r--spec/controllers/settings/profiles_controller_spec.rb16
2 files changed, 32 insertions, 0 deletions
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