I have implemented a Rails controller with the wash_out gem.
My controller look like this:
class TestController < ApplicationController
include WashOut::SOAP
soap_action "int_to_string",
:args => :integer,
:return => :string
def int_to_string
render :soap => params[:value].to_s
end
end
routes.rb:
MyApp::Application.routes.draw do
wash_out :test
end
I am not sure how I can test this controller with Rspec.
Any ideas?
In this link you can find a good aproach
http://blog.johnsonch.com/2013/04/18/rails-3-soap-and-testing-oh-my/
The aproach is:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With