On Sep 6, 2013, at 10:49 AM, Tamara Temple <[email protected]> wrote:

> 
> On Sep 5, 2013, at 2:50 AM, Andrei G <[email protected]> wrote:
> 
>> Hi,
>> 
>> I am having an issue with this code[1].
>> Testing in cucumber if there is no parameter :shot breaks. Somehow the shout 
>> parameter it's returning the whole params hash. This thing happens everytime 
>> when the parameter has the same name as the controller.
>> There are any conventions or something?
>> You can find my cucumber output at [2].
>> 
>> [1] https://github.com/otzy007/params-bug 
>> [2] http://showterm.io/ff7e3cdff6d69f4ab3308 
>> 
>> Andrei
> 
> 
> So, looking at this error message:
> 
> Then the JSON response should have "errors" with the text "No shout message" 
> # cucumber-api-steps-0.10/lib/cucumber/api_st
> eps.rb:48                                                                     
>                                                 
>      expected ["Done"] to include "No shout message" 
> (RSpec::Expectations::ExpectationNotMetError)                           
>      features/shout.feature:25:in `Then the JSON response should have 
> "errors" with the text "No shout message"'
> 
> I don't see why it would be looking for ["Done"] — on the other hand, I can't 
> see your step definitions.

No, nevermind, I see what is happening. I can't explain why, necessarily. I'm 
digging deeper.


-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/19612FC5-B347-4AE3-9B18-E71B1DBCD5D8%40gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to