Skip to content

Instantly share code, notes, and snippets.

@ajsharp
Created October 27, 2009 16:40
Show Gist options
  • Save ajsharp/219709 to your computer and use it in GitHub Desktop.
Save ajsharp/219709 to your computer and use it in GitHub Desktop.
# at the top of any controller example, you need to add in the stub_request_before_filters
# method, which will take care of everything that ApplicationController requires before
# passing the request on to the actual requested Controller#action.
#
# The stub_request_before_filters method is defined in lib/optimis_test_helpers.rb
# and is included in spec/spec_helper.rb
describe PatientsController do
before(:each) do
stub_request_before_filters
end
# ...
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment