forked from publify/publify
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix library loading for BackendController and its spec.
ActionWebService::Protocol::Discovery uses write_inheritable_array to register protocols. Due to the order of library loading, during testing only, the ApplicationController class would be created before ActionWebService::Protocol::XmlRpc was registered in ActionController::Base. This meant BackendController needed to include ActionWebService::Protocol::XmlRpc again in the specs to register it. By requiring 'action_web_service' in environment.rb with the other included libraries, we make sure it is loaded early enough to avoid this. Also, some other unneccesary require statements were removed from the spec.
- Loading branch information
Showing
3 changed files
with
2 additions
and
12 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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