[rspec-users] Add comments to cucumber text features?

2009-05-08 Thread Ingo Weiss
Hi all, Often I find myself wishing there was a way to add comments to cucumber text features that are ignored by the parser. Is this possible somehow? Thanks! Ingo ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/list

[rspec-users] Best practices for developing a rails plugin (extending ActiveRecord) with rspec?

2008-12-17 Thread Ingo Weiss
Hi all, I am developing a rails plugin/gem with rspec. The plugin extends ActiveRecord, so the specs basically needs a complete environment with database access to run. What is a good way to set this up in a way that can be bundled with the plugin, maybe in the form of a stripped- down rai

Re: [rspec-users] fixtures in stories

2008-01-15 Thread Ingo Weiss
order to not have to include a 'Given language ...' in all of my stories. Is that possible? Ingo On Jan 15, 2008, at 4:07 PM, Chris Parsons wrote: > Hi Ingo, > > On 15 Jan 2008, at 14:55, Ingo Weiss wrote: > >> how/where do I load fixtures in stories? > >

[rspec-users] fixtures in stories

2008-01-15 Thread Ingo Weiss
Hi all, how/where do I load fixtures in stories? Ingo ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

[rspec-users] 'lazy' url generation in view specs

2007-11-15 Thread Ingo Weiss
Hi, I would like to use the 'lazy' style of url generation in my views, omitting parameters from my calls to url_for (and named route methods) that are then filled in from the current request parameters. Example: url_for(:action => 'index') will fill in (:controller => 'posts') if params[:c

Re: [rspec-users] stubbing out helper method in helper spec

2007-09-06 Thread Ingo Weiss
Thanks David, in this case stubbing out method1 helped me a lot with focusing on what I want to test, without being distracted by having to follow down the call stack Ingo On Sep 6, 2007, at 5:40 PM, David Chelimsky wrote: > On 9/6/07, Ingo Weiss <[EMAIL PROTECTED]> wrote: >&

[rspec-users] stubbing out helper method in helper spec

2007-09-06 Thread Ingo Weiss
Hi, I am stuck with a problem in my helper specs. Say I have a helper with two methods, method1 and method2, where method2 is calling method1 internally. How can I stub out method1 when testing method2? I guess it boils down to how I can access the helper object from within a helper spec.

[rspec-users] response.should render_layout ....

2007-09-05 Thread Ingo Weiss
Hi, is there a way to assert in rspec that a template is rendered in a specific layout? Thanks! Ingo ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

[rspec-users] fixture scenario builder

2007-08-09 Thread Ingo Weiss
Hi all, did anybody get 'fixture scenario builder' (http://errtheblog.com/post/ 7708) to work with rspec? I am getting the following error: /plugins/fixture_scenarios_builder/lib/scenario_builder.rb:8:in `scenario': undefined method `scenario' for main (NoMethodError) Ingo _

Re: [rspec-users] autotest doesn't notice file changes

2007-07-28 Thread Ingo Weiss
This works - thanks, David! Ingo On Jul 27, 2007, at 7:55 PM, David Chelimsky wrote: > Leave off -rails. Just type "autotest" ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

[rspec-users] autotest doesn't notice file changes

2007-07-27 Thread Ingo Weiss
Hi all, I am trying to use autotest with rspec and rais, and it seems to work fine when I run autotest -rails initially, but then autotest fails to recognize file changes and run tests continuously. Did I skip a step? Here is my setup: rails v1.2.3 rspec plugin v1.0.5 rspec_on_rails plugin