Re: [rspec-users] Mock or Stub strategy for validates_uniqueness_of

2007-07-25 Thread Daniel N
On 7/25/07, Mikel Lindsaar <[EMAIL PROTECTED]> wrote: Kyle, That is a good point. We are after the behaviour, not the implementation. Regards Mikel On 7/25/07, Daniel N <[EMAIL PROTECTED]> wrote: > > > > On 7/25/07, Kyle Hargraves <[EMAIL PROTECTED]> wrote: > > Daniel N wrote: > > > On 7/25

[rspec-users] MockCov: Proof of concept

2007-07-25 Thread Ian Leitch
Hey list, RSpec is great, I've been using it at work for a couple of months now. One gripe I have is that I find it hard to know exactly to what extent my code is covered by the specs. I am aware of RCov and Heckle; they're great, but I'd like to demonstrate another perspective of coverage analys

Re: [rspec-users] Mock or Stub strategy for validates_uniqueness_of

2007-07-25 Thread Ashley Moran
On 24 Jul 2007, at 14:49, Daniel N wrote: > That looks like the kind of thing I was initially thinking of, but > I started to think that having all those objects being created in a > non-related spec could lead to trouble. If I change what makes any > of those objects valid, these supposed

Re: [rspec-users] Mock or Stub strategy for validates_uniqueness_of

2007-07-25 Thread Ashley Moran
On 25 Jul 2007, at 01:07, Kyle Hargraves wrote: > Going through reflect_on_association feels too much like specifying > the > use of a particular implementation, rather than the desired outcome. I second that. I agree that you should only test the code you write, but unfortunately(!) you ge

Re: [rspec-users] MockCov: Proof of concept

2007-07-25 Thread Marcus Ahnve
Really cool - I have asked myself that question several times. /Marcus On 7/25/07, Ian Leitch <[EMAIL PROTECTED]> wrote: > Hey list, > > RSpec is great, I've been using it at work for a couple of months now. One > gripe I have is that I find it hard to know exactly to what extent my code > is cov

[rspec-users] autotest loosing RAILS_ROOT Constant?

2007-07-25 Thread Mikel Lindsaar
I am having a weird error that I have not had before... I'm bouncing it off the list to see if anyone else has had it, or to give me some pointers about how to find it. Basically, AUTOTEST will run (RSpec mode), fine, then suddenly, will complain that RAILS_ROOT is undefined. Then I stop and rest

Re: [rspec-users] autotest loosing RAILS_ROOT Constant?

2007-07-25 Thread Mikel Lindsaar
Don't fear... chalk this up to an error casued between the screen and keyboard... The specs that were causing this problem had a missing spec_helper.rb line. duh! Regards Mikel On 7/26/07, Mikel Lindsaar <[EMAIL PROTECTED]> wrote: > I am having a weird error that I have not had before... I'm