Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rails 5 fix announcement service (#326)
* Updated tests to get announcements_controller working Changes: 1) Rails 4 -> 5, parameters no longer inherit from HashWithIndifferentAccess 2) response.json no longer is valid in Rails 5. response's class in Rails 4 is ActionController::TestResponse in Rails 5, response's class is ActionDispatch::TestResponse 3) Starting Rails 5, responses will default to 204s unless specified otherwise. And status of 204 will return response.content_type as nil * update .json method responses in test no longer an instance of ActionController::TestResponses * update typo * update comment * ActionController::TestResponse injerits from ActionDispatch::TestResponse in Rails 4. Rails 5 test responses are instances of ActionDispatch::TestResponse * update talk_service update_resource to_h
- Loading branch information