Re: [rspec-users] thanks......but more question

2012-08-13 Thread Andy Lindeman
rn an HTML table of users). -- Andy Lindeman http://www.andylindeman.com/ ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

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

2012-09-26 Thread Andy Lindeman
MyClass.new(CONFIG) -- Andy Lindeman http://www.andylindeman.com/ ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

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

2012-09-27 Thread Andy Lindeman
pec.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 o

Re: [rspec-users] unexpected should_receive behaviour

2012-10-09 Thread Andy Lindeman
27;s likely that cancan is calling User.find because of load_and_authorize_resource That's likely why you see it being called twice when the stub is removed. -- Andy Lindeman http://www.andylindeman.com/ ___ rspec-users mailing list rspec-users@rub

Re: [rspec-users] .rspec ci reporter configuration file

2012-11-02 Thread Andy Lindeman
Something like: rspec --out report_$(date +%d_%m_%Y) -- Andy Lindeman http://www.andylindeman.com/ ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] Accidentally overriding exit code of specs

2012-11-29 Thread Andy Lindeman
reproducable test case? Notably, we did recently fix an issue with RSpec interacting with other frameworks that use `at_exit` and `exit` (e.g., minitest/test::unit): <https://github.com/rspec/rspec-core/pull/720> but it has not yet made it into an official release. This is an uncommon si

Re: [rspec-users] how to check with rspec if controller action set needed instance variables ?

2012-12-13 Thread Andy Lindeman
pec-rails/v/2-12/docs/controller-specs> -- Andy Lindeman http://www.andylindeman.com/ ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] undefined method `run_all' for []:Array

2013-02-07 Thread Andy Lindeman
Yes. It should be fixed. If you upgrade and still get the error, let us know! On Thursday, February 7, 2013, Doug Livesey wrote: > David Chelimsky wrote in post #971870: > > On Sun, Jan 2, 2011 at 5:42 AM, Kristian Mandrup > > > > > > wrote: > >> I'm using the latest ruby 1.9.3-head and recentl

Re: [rspec-users] RSpec in controller

2013-06-10 Thread Andy Lindeman
on gist.github.com? -- Andy Lindeman http://www.andylindeman.com/ ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] undefined local variable or method

2013-06-10 Thread Andy Lindeman
orbel/5753042#file-painting_controller_spec_2-rb > (at the bottom) works perfectly. > > In the context's before block, the painting seem not to be created. Did I do > something wrong? > > Thanks! Hi Guirec-- Can you make sure you are u

Re: [rspec-users] undefined local variable or method

2013-06-11 Thread Andy Lindeman
ore`: gem 'rspec-core', github: 'rspec/rspec-core', branch: '2-14-maintenance' Thanks! Let me know how it works out. -- Andy Lindeman http://www.andylindeman.com/ ___ rspec-users mailing list rspec-users@rubyforge.org http://rub

Re: [rspec-users] How can I find out which specs are being run programmatically?

2013-07-02 Thread Andy Lindeman
On 2013-07-02 11:17 , Daniel Doubrovkine wrote: I have a step that precompiles assets before specs are run. I don't need assets for spec groups other than views and integration. Is there a way to programmatically examine the list of files or specs (groups?) being run within a Spork.each_run or an

Re: [rspec-users] RSpec2 error codes testing

2013-08-04 Thread Andy Lindeman
On 07/20/2013 08:20 AM, Robert Lis wrote: > I have an issue with testing error codes. If a record is not found, it > raises exception ActiveRecord::RecordNotFound. The thing is, I wanna > check if 404 is returned. If I go ahead and just check : > > response.status.should == 404 > > Then this wil

Re: [rspec-users] Specifying a Celluloid actor is still alive without a negative error expectation

2013-08-13 Thread Andy Lindeman
On 08/13/2013 06:58 AM, Ash Moran wrote: > Unfortunately, as the actor is running asynchronously, the example checks the > actor's alive state before it completely dies. One way to approach this is to > use Celluloid's actor guarantees and send it another message, which will be > handled synchro