Re: [rspec-users] My argument constraints are not working.

2008-03-30 Thread David Beckwith
Yeah, I think so. The test that wasn't passing passed. I'll look at it in more detail later. Thanks for asking. D :) On Sun, Mar 30, 2008 at 12:00 PM, David Chelimsky <[EMAIL PROTECTED]> wrote: > On Sun, Mar 30, 2008 at 1:57 PM, David Beckwith <[EMAIL PROTECTED]> wrote: > > Well, it turns out

Re: [rspec-users] My argument constraints are not working.

2008-03-30 Thread Dan North
Devs, can we update the website and change all references to "David Chelimsky" to be "Chelim-baby" please? Should I post a ticket? On 30/03/2008, David Beckwith <[EMAIL PROTECTED]> wrote: > > Well, it turns out I was right. it was a newbie error. > > As soon as I wrote the test that you sugge

Re: [rspec-users] parameterized shared specs: good or bad idea?

2008-03-30 Thread Nick C
Thanks David, that looks like exactly what I was looking for - I'm just sorry I didn't think of it myself! Cheers, Nick On Sat, Mar 29, 2008 at 10:41 PM, David Chelimsky <[EMAIL PROTECTED]> wrote: > On Sat, Mar 29, 2008 at 3:03 PM, Nick C > > <[EMAIL PROTECTED]> wrote: > > > Hmm, after investigat

Re: [rspec-users] parameterized shared specs: good or bad idea?

2008-03-30 Thread Ashley Moran
On 29 Mar 2008, at 21:41, David Chelimsky wrote: There is a strategy you can use for this. Define method in a helper and use the included hook to extend the example group. To see a working example of this, which actually may solve the exact problem you're trying to solve already, check out http

Re: [rspec-users] My argument constraints are not working.

2008-03-30 Thread David Chelimsky
On Sun, Mar 30, 2008 at 1:57 PM, David Beckwith <[EMAIL PROTECTED]> wrote: > Well, it turns out I was right. it was a newbie error. > > As soon as I wrote the test that you suggested: > > describe Hawlee, "make sure the == works" do > it "Two Hawlees should be the same if their uri is th

Re: [rspec-users] My argument constraints are not working.

2008-03-30 Thread David Beckwith
Well, it turns out I was right. it was a newbie error. As soon as I wrote the test that you suggested: describe Hawlee, "make sure the == works" do it "Two Hawlees should be the same if their uri is the same." do @hawlee1 = Hawlee.new( URI.parse("http://www.google.com";), nil, 0)

Re: [rspec-users] My argument constraints are not working.

2008-03-30 Thread David Chelimsky
On Sun, Mar 30, 2008 at 1:13 PM, David Beckwith <[EMAIL PROTECTED]> wrote: > Here is the test. I just meant the test for this: "And I tested to make sure this == operator works as expected." That's the one I want to see. ___ rspec-users mailing list rsp

Re: [rspec-users] My argument constraints are not working.

2008-03-30 Thread David Beckwith
Here is the test. I'm kind of a newbie at writing tests, so it could just be a newbie mistake. (FYI, "bawal" means "prohibited" in Tagalog c.f. bawal.html below): describe "Define a blacklist function that inputs a url and returns true or false. If true, the page is on the blacklist and sho