Sha256: 2f631ad0a2fb4d47d53abbe9b97656d8d866621e26ceeb483df1a9c9c2b114b0

Contents?: true

Size: 795 Bytes

Versions: 10

Compression:

Stored size: 795 Bytes

Contents

require 'spec_helper'

describe AssetManager::AssetsController do
  describe 'routing' do

    it 'routes to #index' do
      get('/assets').should route_to('assets#index')
    end

    it 'routes to #new' do
      get('/assets/new').should route_to('assets#new')
    end

    it 'routes to #show' do
      get('/assets/1').should route_to('assets#show', id: '1')
    end

    it 'routes to #edit' do
      get('/assets/1/edit').should route_to('assets#edit', id: '1')
    end

    it 'routes to #create' do
      post('/assets').should route_to('assets#create')
    end

    it 'routes to #update' do
      put('/assets/1').should route_to('assets#update', id: '1')
    end

    it 'routes to #destroy' do
      delete('/assets/1').should route_to('assets#destroy', id: '1')
    end

  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
intesys_asset_manager-1.2.4 spec/routing/asset_manager/assets_routing_spec.rb
intesys_asset_manager-1.2.3 spec/routing/asset_manager/assets_routing_spec.rb
intesys_asset_manager-1.2.2 spec/routing/asset_manager/assets_routing_spec.rb
intesys_asset_manager-1.2.1 spec/routing/asset_manager/assets_routing_spec.rb
intesys_asset_manager-1.2.0 spec/routing/asset_manager/assets_routing_spec.rb
intesys_asset_manager-1.1.3 spec/routing/asset_manager/assets_routing_spec.rb
intesys_asset_manager-1.1.2 spec/routing/asset_manager/assets_routing_spec.rb
intesys_asset_manager-1.1.1 spec/routing/asset_manager/assets_routing_spec.rb
intesys_asset_manager-1.1.0 spec/routing/asset_manager/assets_routing_spec.rb
intesys_asset_manager-1.0.0 spec/routing/asset_manager/assets_routing_spec.rb