Re: [rspec-users] Tests that require a logged in user / session cookie

2011-08-26 Thread Matthias Siegel
On 25/08/2011, at 11:45 PM, Justin Ko wrote: > > > On Thu, Aug 25, 2011 at 7:38 AM, Matthias Siegel > wrote: > > On 25/08/2011, at 11:10 AM, Justin Ko wrote: > >> >> >> On Wed, Aug 24, 2011 at 6:40 PM, Matthias Siegel >> wrote: >> Hi, >> >> I'm fairly new to RSpec with Rails and I'm tr

Re: [rspec-users] How should I interpret RCov, code coverage?

2011-08-26 Thread Andrei Ursan
Thanks for the info and suggestions Sidu & Andrew! I've got the rails project to do some bug fixing and for adding new features. And I wanted to see some metrics before touching the code... anyway I will dig more into it - as I am new to rails and ruby but I like TDD and BDD :D. Any opinions

Re: [rspec-users] Tests that require a logged in user / session cookie

2011-08-26 Thread Phillip Koebbe
On 2011-08-25 11:42 AM, Andrew Premdas wrote: On 25 August 2011 14:38, Matthias Siegel > wrote: On 25/08/2011, at 11:10 AM, Justin Ko wrote: On Wed, Aug 24, 2011 at 6:40 PM, Matthias Siegel mailto:matthiassie...@gmail.com>> wrote: Hi,

Re: [rspec-users] slightly confusing error message

2011-08-26 Thread David Chelimsky
On Aug 24, 2011, at 11:48 AM, Rob Biedenharn wrote: > > On Aug 23, 2011, at 5:18 PM, David Chelimsky wrote: > >> >> On Aug 23, 2011, at 3:26 PM, Rob Biedenharn wrote: >> >>> On Aug 23, 2011, at 3:16 PM, David Chelimsky wrote: >>> On Aug 23, 2011, at 1:00 PM, Roger Pack wrote:

Re: [rspec-users] Tests that require a logged in user / session cookie

2011-08-26 Thread Justin Ko
On Fri, Aug 26, 2011 at 12:12 AM, Matthias Siegel wrote: > > On 25/08/2011, at 11:45 PM, Justin Ko wrote: > > > > On Thu, Aug 25, 2011 at 7:38 AM, Matthias Siegel > wrote: > >> >> On 25/08/2011, at 11:10 AM, Justin Ko wrote: >> >> >> >> On Wed, Aug 24, 2011 at 6:40 PM, Matthias Siegel < >> matthi

[rspec-users] warn on stubbing nonexistent method?

2011-08-26 Thread Roger Pack
Hello. Perhaps rspec-mocks could warn if it stubs a not yet existing method? class A end describe RSpec do it 'should' do a = A.new a.stub!(:nonexistent_method) {} end end This might help the development process by pointing out possible discrepancies between rspec tests and the code (fo

Re: [rspec-users] warn on stubbing nonexistent method?

2011-08-26 Thread David Chelimsky
On Aug 26, 2011, at 12:02 PM, Roger Pack wrote: > Hello. > Perhaps rspec-mocks could warn if it stubs a not yet existing method? See https://github.com/rspec/rspec-mocks/issues/15 Cheers, David ___ rspec-users mailing list rspec-users@rubyforge.org htt

Re: [rspec-users] warn on stubbing nonexistent method?

2011-08-26 Thread Evgeniy Dolzhenko
Roger, Check the list archives - this topic is brought up every other 3 months :) On 8/26/2011 9:02 PM, Roger Pack wrote: Hello. Perhaps rspec-mocks could warn if it stubs a not yet existing method? class A end describe RSpec do it 'should' do a = A.new a.stub!(:nonexistent_method)