Re: [rspec-users] Possible improvements to routing spec API

2010-07-06 Thread Wincent Colaiuta
El 07/07/2010, a las 01:16, Lalish-Menagh, Trevor escribió: > Hi David, > > You make a good point. I was talking with a coworker about this > problem, and he suggested a simpler format, that I think will coincide > some with Wincent's thoughts. Here is my next stab > (http://gist.github.com/46606

[rspec-users] Setting up rspec-rails for hacking

2010-07-06 Thread Lalish-Menagh, Trevor
I am sure most of you could do this easily, but I wanted to write down how I got there in any case, so here are my instructions on how to set up rspec-rails to hack on: http://trevmex.com/post/779078048/how-to-start-hacking-a-ruby-project Enjoy, Trevor -- Trevor Lalish-Menagh 484.868.6150 mobile

Re: [rspec-users] Possible improvements to routing spec API

2010-07-06 Thread Lalish-Menagh, Trevor
Hi David, You make a good point. I was talking with a coworker about this problem, and he suggested a simpler format, that I think will coincide some with Wincent's thoughts. Here is my next stab (http://gist.github.com/466064): describe "routing" do it "recognizes and generates #index" do g

Re: [rspec-users] Rspec2 Beta Changelog ?

2010-07-06 Thread David Chelimsky
On Jul 6, 2010, at 11:00 AM, Arco wrote: > Is there a change log for the Rspec2 beta? Just the commit logs. > > I couldn't find one in the source or wiki... ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/r

[rspec-users] Rspec2 Beta Changelog ?

2010-07-06 Thread Arco
Is there a change log for the Rspec2 beta? I couldn't find one in the source or wiki... ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] Possible improvements to routing spec API

2010-07-06 Thread David Chelimsky
On Jul 5, 2010, at 2:59 PM, Lalish-Menagh, Trevor wrote: > OK, I will chime in here, since I think I might have opened up this > can of worms. :) > > I agree with David that we should stick with wrapping the Rails public > APIs. That is: assert_generates, assert_recognizes, and assert_routing > (h

Re: [rspec-users] rspec rake tasks fail inside active record

2010-07-06 Thread David Chelimsky
On Jul 6, 2010, at 6:49 AM, andreyr wrote: > Hi, > > i have a problem that any of my rspec rake tasks fail with the following > error: > rake -f unittests.rake spec > ** Invoke spec (first_time) > ** Execute spec > C:/Ruby18/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/core_ext/l

[rspec-users] rspec rake tasks fail inside active record

2010-07-06 Thread andreyr
Hi, i have a problem that any of my rspec rake tasks fail with the following error: rake -f unittests.rake spec ** Invoke spec (first_time) ** Execute spec C:/Ruby18/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/core_ext/logger.rb:53: undefined method `datetime_format=' for class

Re: [rspec-users] Testing render :update

2010-07-06 Thread Jarl Friis
David Chelimsky wrote: > > Looks like action_pack calls render twice (the 2nd time in > action_controller/metal/implicit_render.rb:10:in `default_render'), so > we've got to stub the :render call twice: > > page = double('page') > controller.stub(:render) > controller.stub(:render).with(:update