Sha256: b7728353f3af007269bfc3d11d99ce3b265307a0a8ebec3676f560bfb6162ece

Contents?: true

Size: 896 Bytes

Versions: 4

Compression:

Stored size: 896 Bytes

Contents

require 'spec_helper'

describe 'CommentsController routes' do
  
  it "should route get /2008/02/01/a-post/comments to comments#index with year: 2008, month: 02, day: 01, slug: a-post" do
    get("/2008/02/01/a-post/comments").should route_to("enki/comments#index", :year => '2008', :month => '02', :day => '01', :slug => 'a-post')
  end

  it "should route post /2008/02/01/a-post/comments to comments#create with year: 2008, month: 02, day: 01, slug: a-post" do
    post("/2008/02/01/a-post/comments").should route_to("enki/comments#create", :year => '2008', :month => '02', :day => '01', :slug => 'a-post')
  end

  it "should route /2008/02/01/a-post/comments/nes to comments#new with year: 2008, month: 02, day: 01, slug: a-post" do
    get("/2008/02/01/a-post/comments/new").should route_to("enki/comments#new", :year => '2008', :month => '02', :day => '01', :slug => 'a-post')
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
enki-engine-0.0.5 spec/routing/comments_routing_spec.rb
enki-engine-0.0.4 spec/routing/comments_routing_spec.rb
enki-engine-0.0.3 spec/routing/comments_routing_spec.rb
enki-engine-0.0.2 spec/routing/comments_routing_spec.rb