1
0

exports_spec.rb 549 B

12345678910111213141516171819202122232425
  1. # frozen_string_literal: true
  2. require 'rails_helper'
  3. RSpec.describe 'Settings / Exports' do
  4. context 'when not signed in' do
  5. describe 'GET /settings/export' do
  6. it 'redirects to sign in page' do
  7. get settings_export_path
  8. expect(response)
  9. .to redirect_to new_user_session_path
  10. end
  11. end
  12. describe 'POST /settings/export' do
  13. it 'redirects to sign in page' do
  14. post settings_export_path
  15. expect(response)
  16. .to redirect_to new_user_session_path
  17. end
  18. end
  19. end
  20. end