2018-12-02 01:46:11 -05:00
|
|
|
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
|
|
|
|
|
2019-03-26 12:03:28 -04:00
|
|
|
it 'sessions/new.html' do |example|
|
2018-12-02 01:46:11 -05:00
|
|
|
get :new
|
|
|
|
|
|
|
|
expect(response).to be_success
|
|
|
|
store_frontend_fixture(response, example.description)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|