Re: [rspec-users] i cannot seem to use at_least

2012-09-27 Thread deepak
@ben i did read the discussion for issue#133. But i did not get the argument that at_least(0) should be a stub. @ myronmarston comment at the end, cleared that up for me After reading it again, i came up with https://gist.github.com/3792506 am a rspec noob so pl

Re: [rspec-users] load global variable so I can access in spec files

2012-09-27 Thread S Ahmed
I do have it in my spec_helper, does it have to be inside the RSpec.config block? On Wed, Sep 26, 2012 at 11:17 PM, Andy Lindeman wrote: > On Wed, Sep 26, 2012 at 10:25 PM, S Ahmed wrote: > > How can I do this? > > If it's truly something that just needs to be loaded once and then is > used wit

Re: [rspec-users] load global variable so I can access in spec files

2012-09-27 Thread Andy Lindeman
Not if it's a constant. You'll need to make sure it starts with a capital letter for it to be interpreted as such by Ruby; otherwise it's just a local variable. On Thursday, September 27, 2012, S Ahmed wrote: > I do have it in my spec_helper, does it have to be inside the RSpec.config > block? >