2019-03-02 22:35:43 +05:30
|
|
|
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-09-04 21:01:54 +05:30
|
|
|
it 'sessions/new.html' do
|
2019-03-02 22:35:43 +05:30
|
|
|
get :new
|
|
|
|
|
|
|
|
expect(response).to be_success
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|