Abishek, Your problem is that you are able to see the sucess message when testing from browser but not through cucumber? I think you did not code completely the steps definition.
Then /^a invitation message should be sent to "([^\"]*)"$/ do |arg1| > And "I should see \"Invitation sent successfully\"" > end > In this you need some form action (mostly through webrat) like 'When I press Send' Send in more details if you need further help. Satyajit On Mon, Nov 30, 2009 at 8:01 AM, Abhishek shukla <[email protected]>wrote: > Any help? > > Thanks > Abhishek > > > On Mon, Nov 30, 2009 at 6:25 PM, Abhishek shukla <[email protected]>wrote: > >> Hello Friends, >> >> The following error I am getting when Testing the app >> >> Then a invitation message should be sent to "[email protected]" # >> features/step_definitions/office_staff_steps.rb:5 >> expected the following element's content to include "Invitation sent >> successfully": >> window.location.href = "/office_staffs"; >> (Spec::Expectations::ExpectationNotMetError) >> >> Then /^a invitation message should be sent to "([^\"]*)"$/ do |arg1| >> And "I should see \"Invitation sent successfully\"" >> end >> >> And the same is working fine on the browser. >> >> Let me know if someone has the same problem. >> >> Thanks >> Abhis >> >> >> > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<rubyonrails-talk%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > -- Satyajit -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

