2020-03-09 13:42:32 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
require 'spec_helper'
|
|
|
|
|
2020-07-28 23:09:34 +05:30
|
|
|
RSpec.describe Admin::Serverless::DomainsController do
|
2020-03-09 13:42:32 +05:30
|
|
|
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
|