who needs routing specs bah

This commit is contained in:
Devin Howard 2015-12-16 22:36:41 +08:00
parent 4dbff85443
commit 1ff235f547
5 changed files with 0 additions and 113 deletions

View file

@ -1,21 +0,0 @@
require 'rails_helper'
RSpec.describe MappingsController, type: :routing do
describe 'routing' do
it 'routes to #show' do
expect(get: '/mappings/1').to route_to('mappings#show', id: '1')
end
it 'routes to #create' do
expect(post: '/mappings').to route_to('mappings#create')
end
it 'routes to #update via PUT' do
expect(put: '/mappings/1').to route_to('mappings#update', id: '1')
end
it 'routes to #destroy' do
expect(delete: '/mappings/1').to route_to('mappings#destroy', id: '1')
end
end
end

View file

@ -1,25 +0,0 @@
require 'rails_helper'
RSpec.describe MapsController, type: :routing do
describe 'routing' do
it 'routes to #index' do
expect(get: '/maps').to route_to('maps#index')
end
it 'routes to #show' do
expect(get: '/maps/1').to route_to('maps#show', id: '1')
end
it 'routes to #create' do
expect(post: '/maps').to route_to('maps#create')
end
it 'routes to #update via PUT' do
expect(put: '/maps/1').to route_to('maps#update', id: '1')
end
it 'routes to #destroy' do
expect(delete: '/maps/1').to route_to('maps#destroy', id: '1')
end
end
end

View file

@ -1,25 +0,0 @@
require 'rails_helper'
RSpec.describe MetacodesController, type: :routing do
describe 'routing' do
it 'routes to #index' do
expect(get: '/metacodes').to route_to('metacodes#index')
end
it 'routes to #new' do
expect(get: '/metacodes/new').to route_to('metacodes#new')
end
it 'routes to #edit' do
expect(get: '/metacodes/1/edit').to route_to('metacodes#edit', id: '1')
end
it 'routes to #create' do
expect(post: '/metacodes').to route_to('metacodes#create')
end
it 'routes to #update via PUT' do
expect(put: '/metacodes/1').to route_to('metacodes#update', id: '1')
end
end
end

View file

@ -1,21 +0,0 @@
require 'rails_helper'
RSpec.describe SynapsesController, type: :routing do
describe 'routing' do
it 'routes to #show' do
expect(get: '/synapses/1').to route_to('synapses#show', id: '1')
end
it 'routes to #create' do
expect(post: '/synapses').to route_to('synapses#create')
end
it 'routes to #update via PUT' do
expect(put: '/synapses/1').to route_to('synapses#update', id: '1')
end
it 'routes to #destroy' do
expect(delete: '/synapses/1').to route_to('synapses#destroy', id: '1')
end
end
end

View file

@ -1,21 +0,0 @@
require 'rails_helper'
RSpec.describe TopicsController, type: :routing do
describe 'routing' do
it 'routes to #show' do
expect(get: '/topics/1').to route_to('topics#show', id: '1')
end
it 'routes to #create' do
expect(post: '/topics').to route_to('topics#create')
end
it 'routes to #update via PUT' do
expect(put: '/topics/1').to route_to('topics#update', id: '1')
end
it 'routes to #destroy' do
expect(delete: '/topics/1').to route_to('topics#destroy', id: '1')
end
end
end