Re: [rspec-users] straight strings?

2010-01-09 Thread Tom Stuart
On 9 Jan 2010, at 18:34, rogerdpack wrote: > I saw some tests like this the other day: > it "the nodes are the contents of the directory" do In this case I say "specify" instead. ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org

Re: [rspec-users] more verbosity for be_an?

2010-01-09 Thread Rick DeNatale
On Sat, Jan 9, 2010 at 1:33 PM, rogerdpack wrote: > >> What about something like: >> >>   expected # => Fixnum to be a kind of Fixnum Truthfully, I find this much less clear than the original message. I've got no idea what # => Fixnum means. Expected Fixnum to be kind of Fixnum makes a lot of s

[rspec-users] straight strings?

2010-01-09 Thread rogerdpack
I saw some tests like this the other day: it "the nodes are the contents of the directory" do ... end Made me wonder if the idea had been proposed to skip the it, like. "the nodes are the contents of the directory".do { ... } or what not. Thoughts? -r

Re: [rspec-users] more verbosity for be_an?

2010-01-09 Thread rogerdpack
> What about something like: > >   expected # => Fixnum to be a kind of Fixnum Still in favor of something like this... :) -rp ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] Stubbing through multiple layers

2010-01-09 Thread Matt Wynne
On 9 Jan 2010, at 12:02, David Chelimsky wrote: On Fri, Jan 8, 2010 at 9:37 PM, DeNigris Sean wrote: Hi list, I'm writing an example for a class that represents the "pickaxe" e- book, which I view in Preview.app: describe PickaxeBook do ... it "should tell whether it's ready to re

Re: [rspec-users] Stubbing through multiple layers

2010-01-09 Thread David Chelimsky
On Fri, Jan 8, 2010 at 9:37 PM, DeNigris Sean wrote: > Hi list, > > I'm writing an example for a class that represents the "pickaxe" e-book, > which I view in Preview.app: > > describe PickaxeBook do > ... >it "should tell whether it's ready to read" do >preview = stub('pr