summaryrefslogtreecommitdiff
path: root/spec/frontend/fixtures/sessions.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/frontend/fixtures/sessions.rb')
-rw-r--r--spec/frontend/fixtures/sessions.rb25
1 files changed, 25 insertions, 0 deletions
diff --git a/spec/frontend/fixtures/sessions.rb b/spec/frontend/fixtures/sessions.rb
new file mode 100644
index 00000000000..18574ea06b5
--- /dev/null
+++ b/spec/frontend/fixtures/sessions.rb
@@ -0,0 +1,25 @@
+require 'spec_helper'
+
+describe 'Sessions (JavaScript fixtures)' do
+ include JavaScriptFixturesHelpers
+
+ before(:all) do
+ clean_frontend_fixtures('sessions/')
+ end
+
+ describe SessionsController, '(JavaScript fixtures)', type: :controller do
+ include DeviseHelpers
+
+ render_views
+
+ before do
+ set_devise_mapping(context: @request)
+ end
+
+ it 'sessions/new.html' do
+ get :new
+
+ expect(response).to be_successful
+ end
+ end
+end