Created
August 8, 2010 13:08
-
-
Save btelles/514006 to your computer and use it in GitHub Desktop.
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
before :all do | |
Report.make(:id => 1, :name => "some report for us") | |
Person.make(:id => 1) | |
Reports::Application.routes.draw do | |
match "/report_some_report_for_us" => "report#report_some_report_for_us", :as => :report_some_report_for_us | |
end | |
Rails.application.reload_routes! | |
end | |
it "route for every record" do | |
{:get => '/report_some_report_for_us'}.should route_to(:controller => 'report', :action => 'report_some_report_for_us') | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment