[rspec-users] How detailed should 'error' scenarios be?

2009-07-23 Thread Nathan Benes
I'm fairly new to cucumber and rspec but so far am falling in love with both. I've read up on several different articles concerning these testing tools including the 'beta' BDD rspec/cucumber book. I saw this thread here: http://www.ruby-forum.com/topic/183428 Which concerns how small or detail

[rspec-users] How detailed should 'error' scenarios be?

2009-07-23 Thread Nathan Benes
I'm fairly new to cucumber and rspec but so far am falling in love with both. I've read up on several different articles concerning these testing tools including the 'beta' BDD rspec/cucumber book. I saw this thread here: http://www.ruby-forum.com/topic/183428 Which concerns how small or detail

[rspec-users] How much detail for error-path scenarios

2009-07-23 Thread Nathan Benes
I'm fairly new to cucumber and rspec but so far am falling in love with both. I've read up on several different articles concerning these testing tools including the 'beta' BDD rspec/cucumber book. I saw this thread here: http://www.ruby-forum.com/topic/183428 Which concerns how small or detail

[rspec-users] How detailed should error scenarios be?

2009-07-23 Thread Nathan Benes
I'm fairly new to cucumber and rspec but so far am falling in love with both. I've read up on several different articles concerning these testing tools including the 'beta' BDD rspec/cucumber book. I saw this thread here: http://www.ruby-forum.com/topic/183428 Which concerns how small or detail

Re: [rspec-users] On Mocks vs Stubs in the context of rSpec

2009-07-23 Thread David Chelimsky
On Jul 23, 7:41 pm, Ben Mabey wrote: > Marcelo de Moraes Serpa wrote:> Hello list, > > > >From what I could see, the lines between mocks and stubs are subtle, > > but the general idea I got is that mocks set expectations and stubs > > are only dummy objects/method calls. What confused me though, i

Re: [rspec-users] Rspec book review...

2009-07-23 Thread Nick Hoffman
On Thu, Jul 23, 2009 at 5:58 PM, Chris Sund wrote: > Hey everyone, > > I just thought I would provide some feedback on my experience with the > rspec book - I "just" finished it. ..snip.. > In any case, the book was great, I want to thank everyone that wrote > it, and a special thanks to Ben Mabey

Re: [rspec-users] On Mocks vs Stubs in the context of rSpec

2009-07-23 Thread Ben Mabey
Marcelo de Moraes Serpa wrote: Hello list, >From what I could see, the lines between mocks and stubs are subtle, but the general idea I got is that mocks set expectations and stubs are only dummy objects/method calls. What confused me though, is that the stub() method is an alias for mock() in S

Re: [rspec-users] On Mocks vs Stubs in the context of rSpec

2009-07-23 Thread David Chelimsky
On Thu, Jul 23, 2009 at 7:33 PM, David Chelimsky wrote: > On Thu, Jul 23, 2009 at 6:39 PM, Marcelo de Moraes > Serpa wrote: >> Hello list, > > Oi Marcelo, > >> >> >From what I could see, the lines between mocks and stubs are subtle, >> but the general idea I got is that mocks set expectations and s

Re: [rspec-users] On Mocks vs Stubs in the context of rSpec

2009-07-23 Thread David Chelimsky
On Thu, Jul 23, 2009 at 6:39 PM, Marcelo de Moraes Serpa wrote: > Hello list, Oi Marcelo, > > >From what I could see, the lines between mocks and stubs are subtle, > but the general idea I got is that mocks set expectations and stubs > are only dummy objects/method calls. What confused me though,

[rspec-users] On Mocks vs Stubs in the context of rSpec

2009-07-23 Thread Marcelo de Moraes Serpa
Hello list, >From what I could see, the lines between mocks and stubs are subtle, but the general idea I got is that mocks set expectations and stubs are only dummy objects/method calls. What confused me though, is that the stub() method is an alias for mock() in Spec::Mocks::ExampleMethods. So a

Re: [rspec-users] specs failing when using :memoize along with stubs/ message expectations

2009-07-23 Thread Barun Singh
Ok, a bit of a clarification. After some tinkering, I noticed the problem wasn't originating exactly where I thought it was (the example in my previous email doesn't actually illustrate the issue). This is the revised example with a bit more detail to give an example that fails. Also, I know my

[rspec-users] Rspec book review...

2009-07-23 Thread Chris Sund
Hey everyone, I just thought I would provide some feedback on my experience with the rspec book - I "just" finished it. I'll explain my background a little bit so you can see how I was influenced and how well I feel I absorbed the information. My background is in desktop application development

[rspec-users] specs failing when using :memoize along with stubs/ message expectations

2009-07-23 Thread Barun Singh
Some of my specs fail after adding the rails "memoize" feature to model some model methods, producing the error "Can't modify frozen class/module" (these specs all passed before). This only happens if I try to use "and_return" within my spec, and those returned values affect the output of the meth

[rspec-users] What else should I include in this model spec?

2009-07-23 Thread Chris Sund
Hey everyone, I just created a spec for an existing model I already developed prior to reading the rspec book. I have 5 examples and they are all passing. I'm just not sure what else I need to add or how I implement it. In this model I have some methods for adding existing names to an account, and

Re: [rspec-users] any idea why spec_server gets 'cannot remove Object' error?

2009-07-23 Thread nbenes
Tim Harper wrote: > >> Have you heard of anyone that has rspec/spork/cucumber etc running under >> cygwin, colinux, andLinux, or Ulteo Virtual Desktop. Do any of them >> allow for fork? > > yes, yes, yes, don't know > > cygwin is slow, I would avoid it. andLinux is a ubuntu-KDE > distributio