1
0
Fork 0
mirror of https://github.com/teamcapybara/capybara.git synced 2022-11-09 12:08:07 -05:00
Commit graph

14 commits

Author SHA1 Message Date
Jonas Nicklas
e898cc2b8e Add match option 2013-02-15 21:32:21 +01:00
Jonas Nicklas
83570f3ece Add exact config option 2013-02-15 20:02:15 +01:00
Kouhei Sutou
180f3dcb16 Suppress warnings: shadowing outer local variable
lib/capybara/spec/spec_helper.rb:49: warning: shadowing outer local variable - name
lib/capybara/spec/spec_helper.rb:49: warning: shadowing outer local variable - options
2012-12-02 15:11:29 +09:00
Jonas Nicklas
5280635f7a Clean up spec helper a bit 2012-11-28 21:08:54 +01:00
Jonas Nicklas
8abf65b4e5 Don't automatically configure RSpec in Capybara spec helper
Driver authors then have the choice how they want RSpec configured.
2012-11-28 21:02:21 +01:00
Jonas Nicklas
68d0157e34 Reset both before and after examples 2012-11-28 21:00:32 +01:00
Jonas Nicklas
56abb4ffcc Reset app host before each spec 2012-11-22 15:35:34 +01:00
Jonas Nicklas
4c6481bc36 Apparently this causes random failures
We can't have fast specs, it appears :(
2012-10-30 15:05:36 +01:00
Jonas Nicklas
fed98d2d6d Require stuff in capybara spec helper instead 2012-10-30 14:30:45 +01:00
Jonas Nicklas
875081fe56 Remove capybara/spec/session file
It doesn't do anything useful anymore
2012-10-30 14:18:48 +01:00
Jonas Nicklas
1803a9f991 Decrease wait in specs time unless spec requires js 2012-10-30 14:10:22 +01:00
Jo Liss
0b28aa2e97 For Capybara's own test suite, keep default_wait_time always at 1
Until now, we had it set at 0 for all tests that did't require `:js`.
But that would cause flickering failures when tests that didn't require
`:js` ran against Selenium, e.g. like this:

    visit '/foo' # asynchronous in Selenium
    page.should have_content 'Foo' # can fail if visit didn't finish in time

This change doubles(!) test suite run time, presumably because we are
testing for expected failures in a lot of places, causing us to retry
for the full default_wait_time period. At this point though I'm not sure
if there's a simple way to avoid the performance hit.
2012-09-10 00:53:41 +02:00
Jonas Nicklas
d2c5d1cb55 Turn that frown upside down 2012-07-24 04:40:53 +02:00
Jonas Nicklas
2462443f89 Use a custom spec helper instead of shared specs 2012-07-21 16:46:56 -04:00