d4bde8621c
for f in $(find spec/javascripts/fixtures/ -name '*.rb') do sed 's/do |example|/do/' < $f > $f.tmp; mv $f.tmp $f done
25 lines
461 B
Ruby
25 lines
461 B
Ruby
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_success
|
|
end
|
|
end
|
|
end
|