Created
August 6, 2014 18:10
-
-
Save jbodah/57c00eb28b50d37dd0ab to your computer and use it in GitHub Desktop.
Bypassing Rails routing
This file contains hidden or 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
should 'support custom read only mode handler methods' do | |
controller = CustomReadOnlyHandlerTestController.new | |
controller.params = HashWithIndifferentAccess.new | |
controller.request = ActionController::TestRequest.new | |
controller.response = ActionController::TestResponse.new | |
controller.expects(:my_read_only_handler).at_least_once | |
controller.process :foo | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment