[rspec-users] Is it possible to execute 'lets' once for all 'its'?

2011-11-14 Thread JDeville
The setup for certain integration specs is a bit slow, and I'm generally careful to make my 'it' blocks read-only. However, I also like to keep my it blocks extremely focused on just 1 thing. This has become a performance problem though, because the setup is executed for every 'it'. Is there

[rspec-users] including a module with ActiveSupport::Concern works in console/site, but not in specs

2011-06-04 Thread JDeville
I have a simple module: module Buyer extend ActiveSupport::Concern module ClassMethods def delete_occasion(fb_id, recipient_fb_id, occasion_id) # blah clah end end end I include it like this: class User include Buyer end this works when running the server, and in the conso

[rspec-users] rspec-rails not making routes accessible since I *think* 2.2.1 (Currently using 2.5)

2011-05-02 Thread JDeville
I'm trying to use: get path_to_route which had been working previously. Was this an intentional change? Can I get this behavior back, or was there a reason it was removed. Thanks all. ___ rspec-users mailing list rspec-users@rubyforge.org http://ruby

[rspec-users] Rails 3 route path helpers no longer accessible from /specs/requests/

2011-04-15 Thread JDeville
I just did a bundle update, and my integration specs stopped working. I was on Rails 3.0.5, and am now on 3.0.6. Any suggestions on how to get access to those routes back? In case the subject wasn't clear, this is what is no longer working: get sessions_path sessions_path (and every other pa

[rspec-users] tcmalloc error running rspec spec using ree

2011-02-15 Thread JDeville
I'm using ree via rvm. Everything was just installed. In autotest, the tests won't even start to run. When I run rspec spec, the tests will run, but will crash at some point here: src/tcmalloc.cc:390] Attempt to free invalid pointer: 0x10022d9a0 I'm not really sure where to look. Any recommend

Re: [rspec-users] Arrange Act Assert (AAA) style syntax for rspec2

2011-01-22 Thread JDeville
 am, David Chelimsky wrote: > On Jan 21, 2011, at 10:32 AM, JDeville wrote: > > > I'd like to be able to test w/ this methodology, and i'm having > > trouble figuring out where to hook in to rspec to do it.  Near as I > > can tell, the flow is this: > > >

Re: [rspec-users] Test Spies for RSpec 2

2011-01-21 Thread JDeville
Scott, check out Bourne. It's an add on to mocha that gives you spies. I'm using it, and like it a lot. On Dec 2 2010, 8:53 am, David Chelimsky wrote: > On Dec 2, 2010, at 1:44 AM, Scott Bellware wrote: > > > I've tried three test spy mocking frameworks for RSpec that I know of. > > Presently,

[rspec-users] Arrange Act Assert (AAA) style syntax for rspec2

2011-01-21 Thread JDeville
I'd like to be able to test w/ this methodology, and i'm having trouble figuring out where to hook in to rspec to do it. Near as I can tell, the flow is this: run all of the before filters in the order of highest to lowest context <<-- I need to run something right here run tests run all of t

[rspec-users] Inconsistent Test results w/ Autotest vs just rspec ./spec

2010-12-24 Thread JDeville
Problem --- When I run autotest against my rails 3 app, I get some errors that seem to imply that my @ variables are not be cleared for each context. It happens only in my controller tests, but that may simply be a coincidence. When autotest t