spec/wego/client_spec.rb in wego-0.2.1 vs spec/wego/client_spec.rb in wego-0.2.2
- old
+ new
@@ -34,9 +34,9 @@
expect(resource.url).to include("/custom?#{wego_api_path(attrs)}")
end
def wego_api_path(options = {})
- params = Wego.configuration.api_keys.merge(options)
+ params = Wego.configuration.api_keys.merge(options).compact
params.map { |key, value| "#{key}=#{value}" }.join("&")
end
end