Created
June 21, 2012 02:00
-
-
Save franzejr/2963422 to your computer and use it in GitHub Desktop.
Routing Test with Rspec
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# encoding: UTF-8 | |
require 'spec_helper' | |
describe OccurrencesController do | |
context "Show Occurrence" do | |
it "show one occurence" do | |
{ :get => "/events/1/tracks/2/occurrences/3/" }. | |
should route_to( | |
:controller => "occurrences", | |
:action => "show", | |
:event_id => "1", | |
:track_id => "2", | |
:id => "3" | |
) | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment