Sha256: 4e6404ad2302790ada8a59a4260c1aaad4600aa9ce3f8e5b436882dbf30606b1

Contents?: true

Size: 469 Bytes

Versions: 1

Compression:

Stored size: 469 Bytes

Contents

require 'spec_helper'

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

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

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

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
popolo-0.0.1 spec/routing/popolo/posts_routing_spec.rb