Re: [rspec-users] added new cool matcher into my framework WatirSplash - #in

2011-04-25 Thread Jarmo Pertman
No opinions on this anymore? Jarmo ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] added new cool matcher into my framework WatirSplash - #in

2011-04-20 Thread Jarmo Pertman
On Apr 19, 4:08 pm, David Chelimsky wrote: > OK - I think I understand this better from this example. The idea here is > that the matcher should keep asking if div.text == "after" until it returns > true or 2 seconds have passed, whichever comes first, after which it fails. > Correct? If so, th

Re: [rspec-users] added new cool matcher into my framework WatirSplash - #in

2011-04-19 Thread David Chelimsky
On Apr 19, 2011, at 3:00 AM, Jarmo Pertman wrote: > On Apr 18, 5:59 pm, David Chelimsky wrote: >> What do you think of within(n).seconds { ... }? > > I'm not sure i understand it fully taking into account the examples > above. Let me try to write them below: > expect { >link.click > }.to cha

Re: [rspec-users] added new cool matcher into my framework WatirSplash - #in

2011-04-19 Thread Jarmo Pertman
On Apr 18, 5:59 pm, David Chelimsky wrote: > What do you think of within(n).seconds { ... }? I'm not sure i understand it fully taking into account the examples above. Let me try to write them below: expect { link.click }.to change {div.text}.from("before").to("after").within(2).seconds link

Re: [rspec-users] added new cool matcher into my framework WatirSplash - #in

2011-04-18 Thread David Chelimsky
On Apr 18, 2011, at 9:39 AM, Jarmo Pertman wrote: > On Apr 18, 4:21 pm, David Chelimsky wrote: >>> but it doesn't >>> conflict with matcher's #in anyway. >> >> It conflicts with the name :) It's a problem when we have one name that >> means completely different things in different contexts. >

Re: [rspec-users] added new cool matcher into my framework WatirSplash - #in

2011-04-18 Thread Jarmo Pertman
On Apr 18, 4:21 pm, David Chelimsky wrote: > > but it doesn't > > conflict with matcher's #in anyway. > > It conflicts with the name :) It's a problem when we have one name that means > completely different things in different contexts. It depends :) That's the point of OOP that the methods wit

Re: [rspec-users] added new cool matcher into my framework WatirSplash - #in

2011-04-18 Thread David Chelimsky
On Apr 18, 2011, at 7:49 AM, Jarmo Pertman wrote: > On Apr 17, 6:58 pm, Justin Ko wrote: >> On Sun, Apr 17, 2011 at 10:01 AM, David Chelimsky >> wrote: >>> On Apr 16, 2011, at 4:56 PM, Jarmo Pertman wrote: >> Hello! >> I've just added a new cool matcher #in into my framework WatirSpl

Re: [rspec-users] added new cool matcher into my framework WatirSplash - #in

2011-04-18 Thread Matt Wynne
On 18 Apr 2011, at 13:49, Jarmo Pertman wrote: > What does the "matcher extension" mean? E.g. some separate gem, which > adds that method? > > Didn't know that ActiveSupport adds #in? to Object, but it doesn't > conflict with matcher's #in anyway. I think the point is that it clashes conceptual

Re: [rspec-users] added new cool matcher into my framework WatirSplash - #in

2011-04-18 Thread Jarmo Pertman
What does the "matcher extension" mean? E.g. some separate gem, which adds that method? Didn't know that ActiveSupport adds #in? to Object, but it doesn't conflict with matcher's #in anyway. Jarmo On Apr 17, 6:58 pm, Justin Ko wrote: > On Sun, Apr 17, 2011 at 10:01 AM, David Chelimsky wrote: >

Re: [rspec-users] added new cool matcher into my framework WatirSplash - #in

2011-04-17 Thread Justin Ko
On Sun, Apr 17, 2011 at 10:01 AM, David Chelimsky wrote: > On Apr 16, 2011, at 4:56 PM, Jarmo Pertman wrote: > > > Hello! > > > > I've just added a new cool matcher #in into my framework WatirSplash > > and thought that this could be integrated into RSpec directly actually > > if there's any inter

Re: [rspec-users] added new cool matcher into my framework WatirSplash - #in

2011-04-17 Thread David Chelimsky
On Apr 16, 2011, at 4:56 PM, Jarmo Pertman wrote: > Hello! > > I've just added a new cool matcher #in into my framework WatirSplash > and thought that this could be integrated into RSpec directly actually > if there's any interest. > > WatirSplash uses Watir (or Watir-like) frameworks for testin