2020-02-17 19:09:20 -05:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
require 'spec_helper'
|
|
|
|
|
2020-06-24 02:09:01 -04:00
|
|
|
RSpec.describe Admin::Serverless::DomainsController do
|
2020-02-17 19:09:20 -05:00
|
|
|
it 'routes to #index' do
|
|
|
|
expect(get: '/admin/serverless/domains').to route_to('admin/serverless/domains#index')
|
|
|
|
end
|
|
|
|
|
|
|
|
it 'routes to #create' do
|
|
|
|
expect(post: '/admin/serverless/domains/').to route_to('admin/serverless/domains#create')
|
|
|
|
end
|
|
|
|
|
|
|
|
it 'routes to #update' do
|
|
|
|
expect(put: '/admin/serverless/domains/1').to route_to(controller: 'admin/serverless/domains', action: 'update', id: '1')
|
|
|
|
expect(patch: '/admin/serverless/domains/1').to route_to(controller: 'admin/serverless/domains', action: 'update', id: '1')
|
|
|
|
end
|
|
|
|
|
|
|
|
it 'routes #verify' do
|
|
|
|
expect(post: '/admin/serverless/domains/1/verify').to route_to(controller: 'admin/serverless/domains', action: 'verify', id: '1')
|
|
|
|
end
|
|
|
|
end
|