I don't understand the point of only being able to mock one or the other. You
can mock whatever you want in Ruby, no? So it doesn't matter if we use
`Timeout` or `Time` - both are easily mockable. I find it being Timecop's
problem that it only mocks `Timeout`.
I haven't used Timecop either so i'm not familiar with the API well, but
looking at its readme it has also non-block API with methods like `.freeze` and
`.return` - this seems to be exactly the thing you need for your Cucumber tests.
Looking at the Timecop's readme it seems to be hard to believe that it does not
mock `Time` instead... are you sure that this is the problem?
Don't get me wrong - i'm not against using `Timeout` or `Time` in watir, but
i'm against using one or the other via configuration option. Just keep one :)
I would downvote yet another configuration option just because some other gem
lacks functionality. If i'm the only one against it then there's nothing to do
anymore of course :)
---
Reply to this email directly or view it on GitHub:
https://github.com/watir/watir-webdriver/pull/242#issuecomment-33942909
_______________________________________________
Wtr-development mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-development