Sha256: 237ff933da3c12c80079284925194f73069c6c9ab255438c79ffb57cfbe9e7e8
Contents?: true
Size: 759 Bytes
Versions: 1
Compression:
Stored size: 759 Bytes
Contents
require 'spec_helper' describe 'csp_report routing' do routes { CspReport::Engine.routes } # # Figure out where this method is coming from # assert_routing '/csp_report/csp_reports', controller: 'csp_reports', action: 'index' it 'should respond to index request' do get('/csp_reports').should route_to 'csp_report/csp_reports#index' end it 'should respond to create requests' do post('/csp_reports').should route_to 'csp_report/csp_reports#create' end it 'should respond to delete requests' do delete('/csp_reports/1').should route_to 'csp_report/csp_reports#destroy', id: '1' end it 'should respond to delete_all requests' do get('/csp_reports/destroy_all').should route_to 'csp_report/csp_reports#destroy_all' end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
csp_report-0.3.0 | spec/routing/csp_reports_routes_spec.rb |