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

Balint Erdi lists at ruby-forum.com
Sat Mar 14 15:28:58 EDT 2009


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/.


More information about the rspec-users mailing list