On Saturday, August 17, 2013 4:08:18 PM UTC+1, Garrett Wilson wrote:
>
> Here is my test:
>
> visit accounts_path
>
> #This is the text that should be inside the paginated table
> page.should have_content('test...@mail.com')
This should work fine - capybara is pretty good at waiting for stuff to load automatically. What capybara driver are you using? The default rack_test driver won't work here because it doesn't run javascript (since there is no browser). There are several drivers that do run javascript such as selenium (which runs an actual browser) or ones like poltergeist or capybara_webkit that run a headless WebKit browser
Fred
--
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 rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/81af0786-4a65-4470-b460-fa94b6b7027d%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
No comments:
Post a Comment