Add specs for domain list export

#248
This commit is contained in:
Artur Beljajev 2016-11-21 02:26:47 +02:00
parent 0dcecbcd1f
commit b5ad66532e
2 changed files with 17 additions and 0 deletions

View file

@ -0,0 +1,8 @@
require 'rails_helper'
RSpec.feature 'CSV Export', db: true do
scenario 'csv file download' do
visit registrar_domains_path
click_on 'download-domains-csv-btn'
end
end

View file

@ -0,0 +1,9 @@
require 'rails_helper'
RSpec.describe Registrar::DomainsController do
describe 'routing' do
it 'routes to #index' do
expect(get: '/registrar/domains').to route_to('registrar/domains#index')
end
end
end