Re: [rspec-users] Background and scenario outline interaction

2009-04-25 Thread Aslak Hellesøy
Den 25. april. 2009 kl. 00.22 skrev Jim Morris : Hi, I was surprised by this so I suspect it may be a bug. I have a Scenario Outline, and a Background in my Feature and nothing else, The Background got executed 1 more time than expected. Details are the Scenario Outline had 4 entries in th

Re: [rspec-users] But rspec can not be found

2009-04-25 Thread Tom Stuart
On 22 Apr 2009, at 14:51, Kerstin Geiling wrote: actually I had the same problems I solved it now using the old task file from rspec-rails 1.2.0 and it works. Thanks to Tom for making this issue public! I've opened a ticket in Lighthouse for this issue: http://rspec.lighthouseapp.com/projec

Re: [rspec-users] [Cucumber] call the (Treetop?) parser directly?

2009-04-25 Thread aslak hellesoy
On Sat, Apr 25, 2009 at 6:07 AM, Phlip wrote: > Cucumberists: > > The sample code: > > require 'treetop' > require 'cucumber' > require 'cucumber/parser' > require 'cucumber/parser/treetop_ext' > # too many requires because fishing around! > > include Cucumber > include Parser > include Featu

Re: [rspec-users] [Cucumber] call the (Treetop?) parser directly?

2009-04-25 Thread Phlip
aslak hellesoy wrote: Try this: require 'cucumber' Cucumber.load_language('en') p = Cucumber::Parser::FeatureParser.new f = p.parse_or_fail <<-EOF Feature: Foo Scenario: Bar Given Zap EOF Aslak Nope! Exact same error. Should I get the bench version? (It's 0.3.0 now.) -- Phlip htt

Re: [rspec-users] [Cucumber] call the (Treetop?) parser directly?

2009-04-25 Thread Phlip
Phlip wrote: aslak hellesoy wrote: Try this: require 'cucumber' Cucumber.load_language('en') p = Cucumber::Parser::FeatureParser.new f = p.parse_or_fail <<-EOF Feature: Foo Scenario: Bar Given Zap EOF Aslak Nope! Exact same error. Should I get the bench version? (It's 0.3.0 now.) T

Re: [rspec-users] [Cucumber] call the (Treetop?) parser directly?

2009-04-25 Thread Aslak Hellesøy
Den 25. april. 2009 kl. 13.10 skrev Phlip : Phlip wrote: aslak hellesoy wrote: Try this: require 'cucumber' Cucumber.load_language('en') p = Cucumber::Parser::FeatureParser.new f = p.parse_or_fail <<-EOF Feature: Foo Scenario: Bar Given Zap EOF Aslak Nope! Exact same error. Should I g

[rspec-users] automating and end to end functional test.

2009-04-25 Thread jmac
Hi, I am new to ruby and rspec. I would like to use ruby/rspec/cucumber to automate acceptance tests for a number of integrated systems at my work. I get the basics of cucumber features, but how do I chain these tests so that I can test a process from start to finish. Essentially, I want to use the

Re: [rspec-users] automating and end to end functional test.

2009-04-25 Thread David Chelimsky
On Sat, Apr 25, 2009 at 5:43 AM, jmac wrote: > Hi, > I am new to ruby and rspec. I would like to use ruby/rspec/cucumber to > automate acceptance tests for a number of integrated systems at my > work. I get the basics of cucumber features, but how do I chain these > tests so that I can test a proc

Re: [rspec-users] rspec-rails fails to find a controller name

2009-04-25 Thread David Chelimsky
On Fri, Apr 24, 2009 at 12:32 PM, wrote: > Hi, >        I have a problem that seems a bit strange. No matter how I specify the > controller name in a rails controller rspec I am always presented with > > 'HostController Retrieving /host via GET should redirect if not logged in' > FAILED > Contr

Re: [rspec-users] rspec-rails fails to find a controller name

2009-04-25 Thread David Chelimsky
On Sat, Apr 25, 2009 at 8:25 AM, David Chelimsky wrote: > On Fri, Apr 24, 2009 at 12:32 PM,   wrote: >> Hi, >>        I have a problem that seems a bit strange. No matter how I specify >> the controller name in a rails controller rspec I am always presented with >> >> 'HostController Retrieving /

Re: [rspec-users] [Cucumber] call the (Treetop?) parser directly?

2009-04-25 Thread Phlip
Aslak Hellesøy wrote: require File.dirname(__FILE__) + '/../test_helper' class CukeFeatureParser < ActiveSupport::TestCase def test_parser require 'cucumber' Cucumber.load_language('en') p = Cucumber::Parser::FeatureParser.new f = p.parse_or_fail <<-EOF Feature: Foo Scenario: Bar Given

[rspec-users] jruby require 'jcode' problem and cucumber 1.2.0

2009-04-25 Thread Steve Molitor
After upgrading to cucumber 0.3.0 from 0.1.16 I'm getting this error when I try to run a feature: /Users/steve/src/jruby-1.2.0/lib/ruby/1.8/jcode.rb:66:in `end_regexp': too short multibyte code string: /[\xc0-\xdf][\x80-\xbf]|[\xe0-\xef][\x80-\xbf][\x80-\xbf]$/ (RegexpError) from /Users/steve/src/j

Re: [rspec-users] BDD for C#?

2009-04-25 Thread Brandon Olivares
> -Original Message- > From: rspec-users-boun...@rubyforge.org [mailto:rspec-users- > boun...@rubyforge.org] On Behalf Of Ben Mabey > Sent: Saturday, April 25, 2009 2:12 AM > To: rspec-users > Subject: Re: [rspec-users] BDD for C#? > > Brandon Olivares wrote: > > Hi, > > > > I know this

Re: [rspec-users] BDD for C#?

2009-04-25 Thread Phlip
Brandon Olivares wrote: I know this is slightly off topic, but I'm having trouble finding something, and wondered if anyone here had experience with any BDD frameworks for C#. Why not replicate Cucumber in C#? Not port or link, replicate. It's only like ~10 features, right? I don't know C#,

[rspec-users] Cucumber/RSpec for an existing Rails project - generate rspec models and controllers?

2009-04-25 Thread Lee Longmore
Hi, I would like to use Cucumber and RSpec for my existing Rails project. I am now reasonably comfortable with the use of these, having studied the RSpec Book and various online resources. I am however unsure about one thing... Given that I have several existing models and controllers in my c