summaryrefslogtreecommitdiff
path: root/spec/frontend/fixtures/sessions.rb
blob: a4dc0aef79ce1bcac492e9848eb8ca61c661ef43 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# frozen_string_literal: true

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