Sha256: 5f5d8efaf22819d247e73948e39fb941a7a8fe0b91a832c4e157e4f0b9e702be

Contents?: true

Size: 626 Bytes

Versions: 1

Compression:

Stored size: 626 Bytes

Contents

require 'spec_helper'

describe Popolo::AreasController do
  describe 'routing' do
    before :each do
      @routes = Popolo::Engine.routes
    end

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

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

    it 'routes to #nested_index' do
      get('/areas/foo/areas').should route_to('popolo/areas#nested_index', path: 'foo')
    end

    it 'routes to #nested_show' do
      get('/areas/foo/bar').should route_to('popolo/areas#nested_show', path: 'foo/bar')
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
popolo-0.0.2 spec/routing/popolo/areas_routing_spec.rb