Re: [rspec-users] Nosy controller specs

2008-12-12 Thread Andrew Premdas
I was agreeing! I wasn't saying that what you were saying there wasn't expressing the intent in the model, I was saying that my long ramble was saying the same thing roughly, and that this differs from the standard approach in rails of using ActiveRecord:Base class methods directly. Apologies for

Re: [rspec-users] rspec_rails and spec_server

2008-12-12 Thread Mark Wilden
Andreas's patch at http://rspec.lighthouseapp.com/attachments/69957/0001-Fixed-spec_server-to-work-with-Rails-2.2.2.patchseems to fix this. ///ark On Thu, Dec 11, 2008 at 6:01 PM, Mark Wilden m...@mwilden.com wrote: Just in case anyone can just short-circuit this, I upgraded to Rails 2.2.2

[rspec-users] Problem when testing controllers

2008-12-12 Thread Daniel Lopes
I'm having troubles to test methods on controllers, specially this method: def update @property = @user.properties.find(params[:id]) if params[:property][:owner_id].blank? @owner = Owner.create_from_user(@user) @property.owner = @owner end if

Re: [rspec-users] Problem when testing controllers

2008-12-12 Thread Pat Maddox
Daniel Lopes danielvlo...@gmail.com writes: I'm having troubles to test methods on controllers, specially this method: def update @property = @user.properties.find(params[:id]) if params[:property][:owner_id].blank? @owner = Owner.create_from_user(@user)

Re: [rspec-users] Problem when testing controllers

2008-12-12 Thread Daniel Area Criações
Thanks, now it's looks obivious. :D Atenciosamente, Daniel Lopes  Area Criações Design, Websites e Sistemas Web Visite: http://www.areacriacoes.com.br/projects http://blog.areacriacoes.com.br/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 55 (31)

[rspec-users] cucumber features HTML output bug with more than 100 steps

2008-12-12 Thread Steve Molitor
I'm having the following problem: With the format as html, the output of cucumber stops coloring successful steps green after step #100. This last line in the HTML is: script type=text/javascriptstepPassed(100)/script Steps 101 -n are colored grey. The body tag is not closed but all steps

Re: [rspec-users] cucumber features HTML output bug with more than 100 steps

2008-12-12 Thread aslak hellesoy
On Fri, Dec 12, 2008 at 9:39 PM, Steve Molitor stevemoli...@gmail.comwrote: I'm having the following problem: With the format as html, the output of cucumber stops coloring successful steps green after step #100. This last line in the HTML is: script

Re: [rspec-users] cucumber custom formatters

2008-12-12 Thread aslak hellesoy
On Sat, Dec 13, 2008 at 12:55 AM, Emmanuel Pinault seatm...@gmail.comwrote: Hi So I built a custom formatter as the default html provided seems to lack few information (like number of scenarios that passed,failed, skipped ..) I cannot seem to load my custom scenario I called it

Re: [rspec-users] cucumber custom formatters

2008-12-12 Thread Emmanuel Pinault
Is the explanation of --format not clear? Have you tried: cucumber -r my_formatter -f MyFormatter mytest.feature Yes, I tried that too and it is not working still. I started to digg in the cli.rb and clearly there is a registration process happening in the build_formatter_broadcaster.

Re: [rspec-users] cucumber custom formatters

2008-12-12 Thread Emmanuel Pinault
OK, I think I figured out the problem. I had the following module Cucumber module Formatters class MyFormatter As soon I as removed it from that module, then it started to work. I am not seeing different call and steps in the visitor printing ... maybe a nice simple example of create a

Re: [rspec-users] cucumber custom formatters

2008-12-12 Thread aslak hellesoy
On Sat, Dec 13, 2008 at 1:22 AM, Emmanuel Pinault seatm...@gmail.comwrote: Is the explanation of --format not clear? Have you tried: cucumber -r my_formatter -f MyFormatter mytest.feature Yes, I tried that too and it is not working still. I started to digg in the cli.rb and clearly there

Re: [rspec-users] cucumber custom formatters

2008-12-12 Thread Emmanuel Pinault
Did you try -f Cucumber::Formatters::MyFormatter ? That should have worked. Yep works as well. Now that I have all the different possible hooks printed and ordering of events,. I can work on creating my template :) If you are interested I ll send you some of the improvments. I am using