Skip to content

Instantly share code, notes, and snippets.

@jonleighton
Created September 2, 2010 16:04
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 jonleighton/562479 to your computer and use it in GitHub Desktop.
Save jonleighton/562479 to your computer and use it in GitHub Desktop.
class MyTestController < ApplicationController
def test_stuff
# bla
end
end
# Add to config/routes.rb...
#
# if Rails.env.test?
# map.connect '/:controller/:action/:id'
# end
describe "my test" do
controller_name :my_test
it "bla" do
get :test_stuff
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment