Original code ignored client#options[:context_path]. This addresses the issue. Have also added an RSpec to test that the URL is correctly formed. All tests pass.
I use RubyMine which has automatically created a .rakeTasks - have added to the .gitignore. Feel free to remove from the pull request.
Original code ignored client#options[:context_path]. This addresses the issue. Have also added an RSpec to test that the URL is correctly formed. All tests pass.
I use RubyMine which has automatically created a .rakeTasks - have added to the .gitignore. Feel free to remove from the pull request.