Re: [rspec-users] [rspec-autotest] Autotest is missing some of my specs

2010-09-03 Thread ericindc
On Sep 3, 9:37 pm, David Chelimsky wrote: > On Sep 3, 2010, at 8:12 PM, ericindc wrote: > > > > > > > > > On Sep 3, 8:34 pm, David Chelimsky wrote: > >> On Sep 3, 2010, at 6:42 PM, ericindc wrote: > > >>> On Sep 3, 7:33 pm, ericindc wrote: > On Sep 3, 7:09 pm, David Chelimsky wrote: > >

Re: [rspec-users] [rspec-autotest] Autotest is missing some of my specs

2010-09-03 Thread David Chelimsky
On Sep 3, 2010, at 8:12 PM, ericindc wrote: > > > On Sep 3, 8:34 pm, David Chelimsky wrote: >> On Sep 3, 2010, at 6:42 PM, ericindc wrote: >> >> >> >> >> >> >> >>> On Sep 3, 7:33 pm, ericindc wrote: On Sep 3, 7:09 pm, David Chelimsky wrote: >> > On Sep 3, 2010, at 6:07 PM, e

Re: [rspec-users] [rspec-autotest] Autotest is missing some of my specs

2010-09-03 Thread ericindc
On Sep 3, 8:34 pm, David Chelimsky wrote: > On Sep 3, 2010, at 6:42 PM, ericindc wrote: > > > > > > > > > On Sep 3, 7:33 pm, ericindc wrote: > >> On Sep 3, 7:09 pm, David Chelimsky wrote: > > >>> On Sep 3, 2010, at 6:07 PM, ericindc wrote: > > On Sep 3, 7:04 pm, David Chelimsky wrote: >

Re: [rspec-users] [rspec-autotest] Autotest is missing some of my specs

2010-09-03 Thread David Chelimsky
On Sep 3, 2010, at 6:42 PM, ericindc wrote: > > > On Sep 3, 7:33 pm, ericindc wrote: >> On Sep 3, 7:09 pm, David Chelimsky wrote: >> >> >> >> >> >>> On Sep 3, 2010, at 6:07 PM, ericindc wrote: >> On Sep 3, 7:04 pm, David Chelimsky wrote: > On Sep 3, 2010, at 6:02 PM, ericindc

Re: [rspec-users] there should be one test or two?

2010-09-03 Thread J. B. Rainsberger
On Fri, Aug 27, 2010 at 02:43, Zhenning Guan wrote: > in real world, when user deposit money into their bank, bank have money > and can check deposit record. so what would it be in rspec? I prefer two specs, because you are checking two unrelated things: bank account balance and transaction reco

Re: [rspec-users] [rspec-autotest] Autotest is missing some of my specs

2010-09-03 Thread ericindc
On Sep 3, 7:33 pm, ericindc wrote: > On Sep 3, 7:09 pm, David Chelimsky wrote: > > > > > > > On Sep 3, 2010, at 6:07 PM, ericindc wrote: > > > > On Sep 3, 7:04 pm, David Chelimsky wrote: > > >> On Sep 3, 2010, at 6:02 PM, ericindc wrote: > > > >>> Any idea why autotest would miss some of my te

Re: [rspec-users] [rspec-autotest] Autotest is missing some of my specs

2010-09-03 Thread ericindc
On Sep 3, 7:09 pm, David Chelimsky wrote: > On Sep 3, 2010, at 6:07 PM, ericindc wrote: > > > On Sep 3, 7:04 pm, David Chelimsky wrote: > >> On Sep 3, 2010, at 6:02 PM, ericindc wrote: > > >>> Any idea why autotest would miss some of my tests?  I run autotest and > >>> everything passes, but ra

Re: [rspec-users] Factories vs. stubs/mocks

2010-09-03 Thread J. B. Rainsberger
On Mon, Aug 30, 2010 at 14:09, Rob Biedenharn > And THAT is the problem with using mocks (or stubs) for this.  You run the > very real risk of specifying the implementation details in the structure of > the spec/test.  There is a problem when you've limited the refactoring that > can be done withou

Re: [rspec-users] [rspec-autotest] Autotest is missing some of my specs

2010-09-03 Thread ericindc
I purposefully broke the test and everything passes. Running rake spec, however, caught the error. I am running a Rails 3 app on OS X and RVM 1.8.7-p302 and the the following: rspec (2.0.0.beta.20) rspec-core (2.0.0.beta.20) rspec-expectations (2.0.0.beta.20) rspec-mocks (2.0.0.beta.20) rspec-ra

Re: [rspec-users] [rspec-autotest] Autotest is missing some of my specs

2010-09-03 Thread David Chelimsky
On Sep 3, 2010, at 6:07 PM, ericindc wrote: > On Sep 3, 7:04 pm, David Chelimsky wrote: >> On Sep 3, 2010, at 6:02 PM, ericindc wrote: >> >>> Any idea why autotest would miss some of my tests? I run autotest and >>> everything passes, but rake spec results in 2 failures. The 2 >>> failures are

Re: [rspec-users] [rspec-autotest] Autotest is missing some of my specs

2010-09-03 Thread ericindc
On Sep 3, 7:04 pm, David Chelimsky wrote: > On Sep 3, 2010, at 6:02 PM, ericindc wrote: > > > Any idea why autotest would miss some of my tests?  I run autotest and > > everything passes, but rake spec results in 2 failures.  The 2 > > failures are from the model spec that is not being included wh

Re: [rspec-users] [rspec-autotest] Autotest is missing some of my specs

2010-09-03 Thread David Chelimsky
On Sep 3, 2010, at 6:02 PM, ericindc wrote: > Any idea why autotest would miss some of my tests? I run autotest and > everything passes, but rake spec results in 2 failures. The 2 > failures are from the model spec that is not being included when run > in autotest. Are you sure that the model s

[rspec-users] [rspec-autotest] Autotest is missing some of my specs

2010-09-03 Thread ericindc
Any idea why autotest would miss some of my tests? I run autotest and everything passes, but rake spec results in 2 failures. The 2 failures are from the model spec that is not being included when run in autotest. ___ rspec-users mailing list rspec-user

Re: [rspec-users] how to invoke multiple controllers in the same describe block?

2010-09-03 Thread Pat Maddox
Lille wrote: Hi, I seek to authenticate and then test other routing in RSpec, but the standard RSpec vernacular... describe SomeController do it "blah-blah" do get :new ... end end ...doesn't seem to allow me to post my login data, as in the following pseudo-code: describe

Re: [rspec-users] how to invoke multiple controllers in the same describe block?

2010-09-03 Thread David Chelimsky
On Sep 3, 2010, at 12:12 PM, Lille wrote: > Hi, > > I seek to authenticate and then test other routing in RSpec, but the > standard RSpec vernacular... > > describe SomeController do > > it "blah-blah" do > get :new > ... > end > > end > > ...doesn't seem to allow me to post my log

[rspec-users] how to invoke multiple controllers in the same describe block?

2010-09-03 Thread Lille
Hi, I seek to authenticate and then test other routing in RSpec, but the standard RSpec vernacular... describe SomeController do it "blah-blah" do get :new ... end end ...doesn't seem to allow me to post my login data, as in the following pseudo-code: describe SomeController do