Re: [rspec-users] initializer require weirdness only within rspec?

2012-02-22 Thread David Chelimsky
On Feb 22, 2012, at 10:01 PM, "Patrick J. Collins" wrote: > So, I've got the following structure: > > # config/application.rb > config.autoload_paths += ["#{Rails.root}/lib"] > > # initializers/core_ext.rb > require "core_ext/array.rb" > require "core_ext/hash.rb" > require "core_ext/numer

[rspec-users] initializer require weirdness only within rspec?

2012-02-22 Thread Patrick J. Collins
So, I've got the following structure: # config/application.rb config.autoload_paths += ["#{Rails.root}/lib"] # initializers/core_ext.rb require "core_ext/array.rb" require "core_ext/hash.rb" require "core_ext/numeric.rb" require "core_ext/float.rb" require "core_ext/object.rb" # lib/

Re: [rspec-users] Advice on using Rspec as a data validation engine

2012-02-22 Thread Bill Christian
I have a working prototype. However, I am having trouble instrumenting the automation. Are there existing examples or libraries that execute tests outside of a console? ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/

Re: [rspec-users] should_receive_chain

2012-02-22 Thread Justin Ko
On Feb 22, 2012, at 9:00 AM, Matt Wynne wrote: > > On 22 Feb 2012, at 15:41, David Chelimsky wrote: > >> On Tue, Feb 21, 2012 at 2:48 PM, Mike Pack wrote: >>> Yup, I find myself doing this all the time. I think it should be considered >>> that too deep of a stub chain could be a sign of poor >

Re: [rspec-users] should_receive_chain

2012-02-22 Thread Matt Wynne
On 22 Feb 2012, at 15:41, David Chelimsky wrote: > On Tue, Feb 21, 2012 at 2:48 PM, Mike Pack wrote: >> Yup, I find myself doing this all the time. I think it should be considered >> that too deep of a stub chain could be a sign of poor >> abstraction/information hiding. Could lead to bad practi

Re: [rspec-users] should_receive_chain

2012-02-22 Thread David Chelimsky
On Tue, Feb 21, 2012 at 2:48 PM, Mike Pack wrote: > Yup, I find myself doing this all the time. I think it should be considered > that too deep of a stub chain could be a sign of poor > abstraction/information hiding. Could lead to bad practices? On the > flipside, this would be super helpful when

Re: [rspec-users] should_receive_chain

2012-02-22 Thread Mike Pack
Yup, I find myself doing this all the time. I think it should be considered that too deep of a stub chain could be a sign of poor abstraction/information hiding. Could lead to bad practices? On the flipside, this would be super helpful when dealing with Railsy stubs because of long scope chains