Skip to content

Instantly share code, notes, and snippets.

@btelles
Created August 8, 2010 13:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save btelles/514006 to your computer and use it in GitHub Desktop.
Save btelles/514006 to your computer and use it in GitHub Desktop.
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