[rspec-users] [webrat] click link by title doesn't work

Andrew Premdas apremdas at gmail.com
Sat Mar 14 15:54:49 EDT 2009


Doh!, thanks alot :).

2009/3/14 Balint Erdi <lists at ruby-forum.com>

> Andrew Premdas wrote:
>
> >
> > When /^I follow view (\w+) details link$/ do |object|
> >   click_link "#{object}_details}"
> > end
>
> I think the problem is that you have an extra } in the title of the link
> you are looking for. It should just be:
>
> When /^I follow view (\w+) details link$/ do |object|
>  click_link "#{object}_details"
> end
>
> Does this solve your problem?
> Balint
> --
> Posted via http://www.ruby-forum.com/.
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20090314/9494016c/attachment-0001.html>


More information about the rspec-users mailing list