Sha256: 62c4ba809b87ad70a09d138ce43cd97f8011b96f5abd36d742c8d349a18e4278
Contents?: true
Size: 1.08 KB
Versions: 5
Compression:
Stored size: 1.08 KB
Contents
require 'spec_helper' describe ProfilesController do describe 'routing' do it 'recognizes and generates #index' do { get: '/profiles' }.should route_to(controller: 'profiles', action: 'index') end it 'recognizes and generates #new' do { get: '/profiles/new' }.should route_to(controller: 'profiles', action: 'new') end it 'recognizes and generates #show' do { get: '/profiles/1' }.should route_to(controller: 'profiles', action: 'show', id: '1') end it 'recognizes and generates #edit' do { get: '/profiles/1/edit' }.should route_to(controller: 'profiles', action: 'edit', id: '1') end it 'recognizes and generates #create' do { post: '/profiles' }.should route_to(controller: 'profiles', action: 'create') end it 'recognizes and generates #update' do { put: '/profiles/1' }.should route_to(controller: 'profiles', action: 'update', id: '1') end it 'recognizes and generates #destroy' do { delete: '/profiles/1' }.should route_to(controller: 'profiles', action: 'destroy', id: '1') end end end
Version data entries
5 entries across 5 versions & 1 rubygems