Sha256: a79c239536c899fce5c1150d469f0c0b0796e24875487eb60317f194cccf0d8d

Contents?: true

Size: 360 Bytes

Versions: 1

Compression:

Stored size: 360 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
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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