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] 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

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

2008-03-29 Thread David Chelimsky
On Sat, Mar 29, 2008 at 9:23 PM, David Beckwith <[EMAIL PROTECTED]> wrote: > describe "pretending to crawl craigslist." do > > before do > @html_start = File.read( RAILS_ROOT + "/spec/fixtures/feeds/ > start_page.html" ) > @response_start = mock_model( Net::HTTP, :body => > @html_sta

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

2008-03-29 Thread David Beckwith
describe "pretending to crawl craigslist." do before do @html_start = File.read( RAILS_ROOT + "/spec/fixtures/feeds/ start_page.html" ) @response_start = mock_model( Net::HTTP, :body => @html_start, :nil? => false ) @hawlee_start = Hawlee.new(@uri_start, nil, 0) @htgrep = H