diff options
author | Scott Escue <scott.escue@gmail.com> | 2018-12-02 09:46:11 +0300 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2019-01-10 09:00:39 +0300 |
commit | 87c571f8a3e9af9de0d979dc26f9838bb0fc924d (patch) | |
tree | 696c6b5f9e6d77996608acdd6f952826e2c52e8f /spec/javascripts/fixtures | |
parent | 2cbc475e5327a860032414561916c7bd725685ac (diff) |
Addressing feedback from most recent reviews.
Diffstat (limited to 'spec/javascripts/fixtures')
-rw-r--r-- | spec/javascripts/fixtures/sessions.rb | 26 | ||||
-rw-r--r-- | spec/javascripts/fixtures/signin_forms_and_buttons.html.haml | 21 |
2 files changed, 26 insertions, 21 deletions
diff --git a/spec/javascripts/fixtures/sessions.rb b/spec/javascripts/fixtures/sessions.rb new file mode 100644 index 00000000000..e90a58e8c54 --- /dev/null +++ b/spec/javascripts/fixtures/sessions.rb @@ -0,0 +1,26 @@ +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.raw' do |example| + get :new + + expect(response).to be_success + store_frontend_fixture(response, example.description) + end + end +end diff --git a/spec/javascripts/fixtures/signin_forms_and_buttons.html.haml b/spec/javascripts/fixtures/signin_forms_and_buttons.html.haml deleted file mode 100644 index 32a9becb636..00000000000 --- a/spec/javascripts/fixtures/signin_forms_and_buttons.html.haml +++ /dev/null @@ -1,21 +0,0 @@ -#signin-container - .tab-content - .active.login-box.tab-pane - .login-body - %form#new_ldap_user{ action: '/users/auth/ldapmain/callback', method: 'post' } - - .login-box.tab-pane - .login-body - %form#new_user.new_user{ action: '/users/sign_in', method: 'post' } - - #register-pane.login-box.tab-pane - .login-body - %form#new_new_user.new_new_user{ action: '/users', method: 'post' } - - .omniauth-container - %span.light - %a#oauth-login-auth0.oauth-login.btn{ href: '/users/auth/auth0' } Auth0 - %span.light - %a#oauth-login-facebook.oauth-login.btn{ href:'/users/auth/facebook?remember_me=1' } Facebook - %span.light - %a#oauth-login-saml.oauth-login.btn{ href:'/users/auth/saml' } SAML |