On Jul 16, 2011, at 8:35 AM, kevin peter wrote:
> Hai
>
> I would like to know how to test block parameters send to method with
> arguments...
>
> Problem:
>
> Here i would like to get weather report basing on city_name.
>
> here my method name is request and i am sending :get_cities_weather
> as argument to that method.
>
> @cities_weather = request(:get_cities_weather) do
> soap.body = { weather_request =>{:city_name => "Banglore" } }
> end
>
> Issue:
>
> Here My problem is with block and i would like to know how to test block
> params i.e
>
> soap.body = { weather_request =>{:city_name => "Banglore" } }
>
> Here i need to test soap.body key name i.e "weather_request" whether i am
> sending exact key name or not??
>
> Could u please help me how to test it???????????
Hey Kevin,
It's difficult to know how to go about this without more context. Would you
post the full content (https://gist.github.com or http://pastie.org please) of
the file where this code lives? If not the full file, at least the method it is
in and notes about any instance variables and/or methods (i.e. I can guess what
'soap' might be in this case, but I have no way of knowing for certain, and
that will make a big difference in how to proceed).
Thx,
David
_______________________________________________
rspec-users mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rspec-users