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 |
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
require 'diffy'; File.open(Rails.root.join('diff'), 'w') {|f| f.write Diffy::Diff.new event_json, expected_json} |
NewerOlder