Re: [rspec-users] Cucumber Scaffolds

2008-11-12 Thread aslak hellesoy
On Wed, Nov 12, 2008 at 5:17 PM, James B. Byrne [EMAIL PROTECTED] wrote: I have installed all of the various bit and pieces for rspec and cucumber and have used: script/generate feature Frooble name color description To create a dummy feature and related steps. Now, while I have been

Re: [rspec-users] Cucumber Scaffolds

2008-11-12 Thread James B. Byrne
On: Wed, 12 Nov 2008 17:35:40 +0100, aslak hellesoy [EMAIL PROTECTED] wrote Do you have vendor/plugins/webrat ? If you have webrat as a gem you must require 'webrat' in env.rb Maybe the generated env.rb should have: require 'webrat' if !defined?(Webrat) Yes. That worked fine. Now I have

Re: [rspec-users] Cucumber Scaffolds

2008-11-12 Thread Mark Wilden
On Wed, Nov 12, 2008 at 9:27 AM, James B. Byrne [EMAIL PROTECTED]wrote: Feature: Manage entities # features/manage_entities.feature This is just a side note, but is manage entities really a feature? It sounds pretty vague. I'm not experienced with cucumber, so I don't know if that's typical

Re: [rspec-users] Cucumber Scaffolds

2008-11-12 Thread James B. Byrne
On Wed, November 12, 2008 12:27, James B. Byrne wrote: The features test now shows this: $ rake features ... Scenario: Register a new entity # features/manage_entities.feature:7 Given I am on the new entity page #

Re: [rspec-users] Cucumber Scaffolds [SOLVED]

2008-11-12 Thread James B. Byrne
Thanks to a suggestion from the Ruby on Rails list I checked my vendor plugins directory and discovered that I had not actually removed the older rspec and rspec-rails plugins, just detached them from git. They both are now gone and my tests are running, if not passing. But at least I am past

Re: [rspec-users] Cucumber Scaffolds

2008-11-12 Thread Andrew Premdas
A couple of tips may help here. 1) You can debug features by putting 'debugger' in the step file. Just make sure there is a line after debugger e.g ... debugger response end If there's nothing after debugger you will stop in the cucumber code, which is not what you want. 2) You can also

Re: [rspec-users] Cucumber Scaffolds

2008-11-12 Thread Mark Wilden
On Wed, Nov 12, 2008 at 10:03 PM, Andrew Premdas [EMAIL PROTECTED] wrote: 1) You can debug features by putting 'debugger' in the step file. Just make sure there is a line after debugger And require ruby-debug. ///ark ___ rspec-users mailing list