Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 25 lines (18 sloc) 0.793 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
require 'spec_helper'

describe PeopleController do

  it 'routes GET /people to people, index' do
    {:get => '/people'}.should route_to(:controller=> 'people', :action => 'index')
  end

  it 'routes GET /people/new to people, new' do
    {:get => '/people/new'}.should route_to(:controller=> 'people', :action => 'new')
  end

  it 'routes GET /people/15 to people, show' do
    {:get => '/people/15'}.should route_to(:controller=> 'people', :action => 'show', :id => '15')
  end

  it 'routes GET /people/15/edit to people, edit' do
    {:get => '/people/15/edit'}.should route_to(:controller=> 'people', :action => 'edit', :id => '15')
  end

  it 'routes POST /people to people, create' do
    {:post => '/people'}.should route_to(:controller=> 'people', :action => 'create')
  end
end
Something went wrong with that request. Please try again.