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

2009-04-27 Thread aslak hellesoy
On Sat, Apr 25, 2009 at 5:00 PM, Phlip wrote: > 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

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

2009-04-27 Thread Aslak Hellesøy
Hi David, So I have a number of Java based web systems. The systems allow users to lodge applications for various products/services that my organisation provides. The applications usually have at least 4 or 5 pages, but may be longer depending on the info that is entered. There is alot of comm

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

2009-04-27 Thread Matt Wynne
On 27 Apr 2009, at 06:29, jmac wrote: Hi David, So I have a number of Java based web systems. The systems allow users to lodge applications for various products/services that my organisation provides. The applications usually have at least 4 or 5 pages, but may be longer depending on the info

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

2009-04-27 Thread aslak hellesoy
> > > > -Original Message- > > From: rspec-users-boun...@rubyforge.org [mailto:rspec-users- > > boun...@rubyforge.org] On Behalf Of Phlip > > Sent: Sunday, April 26, 2009 1:06 AM > > To: rspec-users@rubyforge.org > > Subject: Re: [rspec-users] BDD for C#? > > > > Brandon Olivares wrote: > >

[rspec-users] RSPEC book example in Chapter 3.

2009-04-27 Thread G. Brandon Hoyt
Hi! I'm going through the rspec book in beta form right now and hit a snag in chapter three. I am developing an application in parallel to the book example instead of writing the book example word for word. To the best of my knowledge, I have duplicated a parallel example of the book example, ch

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

2009-04-27 Thread Brandon Olivares
> -Original Message- > From: rspec-users-boun...@rubyforge.org [mailto:rspec-users- > boun...@rubyforge.org] On Behalf Of Phlip > Sent: Sunday, April 26, 2009 1:06 AM > To: rspec-users@rubyforge.org > Subject: Re: [rspec-users] BDD for C#? > > Brandon Olivares wrote: > > > I know this

Re: [rspec-users] RSPEC book example in Chapter 3.

2009-04-27 Thread Rick DeNatale
Methinks thou shoulds't have messenger.should_receive(:puts).with("Please make one of the following menu selections ") in lieu of program.should_receive(:puts).with("Please make one of the following menu selections ") Sorry, I'm just in a medieval mood this afternoon for some reason. On Sun,

Re: [rspec-users] [cucumber] Setting a constant in step definition

2009-04-27 Thread aslak hellesoy
On Mon, Apr 27, 2009 at 2:00 PM, Andrew Premdas wrote: > Currently I have a very simple constants implementation being loaded as a > Rails initialiser > > module MVOR > module Postage > THRESHOLD = BigDecimal.new('6.99') > RATE = BigDecimal.new('30.00') > end > end > > > My scenarios

Re: [rspec-users] Problems running features with Textmate Cucumber bundle

2009-04-27 Thread Rick DeNatale
On Mon, Apr 27, 2009 at 8:13 AM, Rick DeNatale wrote: > On Sun, Apr 26, 2009 at 11:38 PM, Ben Mabey wrote: >> Rick DeNatale wrote: >>> >>> I finally plunked down for the beta RSpec bundle and I'm working >>> through the initial example.  Although I'm a fairly experienced RSpec >>> user, I'm stlll

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

2009-04-27 Thread jirapong.na...@gmail.com
May be you should check out this "Getting Started With IronRuby And RSpec" http://msdn.microsoft.com/en-us/magazine/dd434651.aspx Hope this helps, -Jirapong On Apr 27, 2009, at 4:13 PM, aslak hellesoy wrote: > -Original Message- > From: rspec-users-boun...@rubyforge.org [mailto:r

Re: [rspec-users] Depot app, Demeter's law and troubles cleanly spe cing

2009-04-27 Thread Dan North
2009/4/24 Stephen Eley > On Thu, Apr 23, 2009 at 2:19 PM, Fernando Perez > wrote: > > [...] > > # Assume an article with no comments and a params structure > # have already been set up in before(:each) > > it "should make a new comment belonging to the article" do > post :create, :comment => @m

[rspec-users] [cucumber] Setting a constant in step definition

2009-04-27 Thread Andrew Premdas
Currently I have a very simple constants implementation being loaded as a Rails initialiser module MVOR module Postage THRESHOLD = BigDecimal.new('6.99') RATE = BigDecimal.new('30.00') end end My scenarios of my postage feature want to deal with two situations when the THRESHOLD has

Re: [rspec-users] Problems running features with Textmate Cucumber bundle

2009-04-27 Thread Rick DeNatale
On Sun, Apr 26, 2009 at 11:38 PM, Ben Mabey wrote: > Rick DeNatale wrote: >> >> I finally plunked down for the beta RSpec bundle and I'm working >> through the initial example.  Although I'm a fairly experienced RSpec >> user, I'm stlll learning new tricks. >> >> Anyway,  I'm going though the mast

Re: [rspec-users] Problems running features with Textmate Cucumber bundle

2009-04-27 Thread aslak hellesoy
On Mon, Apr 27, 2009 at 3:47 PM, Rick DeNatale wrote: > On Mon, Apr 27, 2009 at 8:13 AM, Rick DeNatale > wrote: > > On Sun, Apr 26, 2009 at 11:38 PM, Ben Mabey wrote: > >> Rick DeNatale wrote: > >>> > >>> I finally plunked down for the beta RSpec bundle and I'm working > >>> through the initial

[rspec-users] [Cucumber] Screencast about tags, tables and scenario outlines

2009-04-27 Thread aslak hellesoy
Ryan Batest of Railscasts fame has just released this: http://railscasts.com/episodes/159-more-on-cucumber Very very good - check it out! Aslak ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] Depot app, Demeter's law and troubles cleanly spe cing

2009-04-27 Thread David Chelimsky
On Sun, Apr 26, 2009 at 9:20 PM, Dan North wrote: > 2009/4/24 Stephen Eley >> >> On Thu, Apr 23, 2009 at 2:19 PM, Fernando Perez >> wrote: >> >> [...] >> >> # Assume an article with no comments and a params structure >> # have already been set up in before(:each) >> >> it "should make a new comm

[rspec-users] Error using Norwegian with cucumber

2009-04-27 Thread Peter Nicolai Motzfeldt
Hi I am experiencing a problem when using Cucumber with Norwegian language. I have added the files and the stacktrace on gist: http://gist.github.com/102438 The problem is that when we use Når (When) and Så (Then) in the steps file, it fails with a parser error. If we switch all Når and Så with G

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

2009-04-27 Thread Andrew Premdas
Is this with 0.3.0? If not this might have been recently fixed as I reported a similar bug recently 2009/4/24 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 execu

Re: [rspec-users] [cucumber] Setting a constant in step definition

2009-04-27 Thread David Chelimsky
On Mon, Apr 27, 2009 at 7:00 AM, Andrew Premdas wrote: > Currently I have a very simple constants implementation being loaded as a > Rails initialiser > > module MVOR >   module Postage >     THRESHOLD = BigDecimal.new('6.99') >     RATE = BigDecimal.new('30.00') >   end > end > > > My scenarios o

Re: [rspec-users] Error using Norwegian with cucumber

2009-04-27 Thread aslak hellesoy
> Hi > > I am experiencing a problem when using Cucumber with Norwegian language. I > have added the files and the stacktrace on gist: > http://gist.github.com/102438 > > The problem is that when we use Når (When) and Så (Then) in the steps file, > it fails with a parser error. If we switch all Når

Re: [rspec-users] Problems running features with Textmate Cucumber bundle

2009-04-27 Thread Rick DeNatale
On Mon, Apr 27, 2009 at 10:07 AM, aslak hellesoy wrote: > > > On Mon, Apr 27, 2009 at 3:47 PM, Rick DeNatale > wrote: >> >> On Mon, Apr 27, 2009 at 8:13 AM, Rick DeNatale >> wrote: >> > On Sun, Apr 26, 2009 at 11:38 PM, Ben Mabey wrote: >> >> Rick DeNatale wrote: >> >>> >> >>> I finally plunked

Re: [rspec-users] Problems running features with Textmate Cucumber bundle

2009-04-27 Thread Ben Mabey
Rick DeNatale wrote: On Mon, Apr 27, 2009 at 10:07 AM, aslak hellesoy wrote: On Mon, Apr 27, 2009 at 3:47 PM, Rick DeNatale wrote: On Mon, Apr 27, 2009 at 8:13 AM, Rick DeNatale wrote: On Sun, Apr 26, 2009 at 11:38 PM, Ben Mabey wrote: Rick DeNatale wrote:

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

2009-04-27 Thread Brandon Olivares
> -Original Message- > From: rspec-users-boun...@rubyforge.org [mailto:rspec-users- > boun...@rubyforge.org] On Behalf Of aslak hellesoy > Sent: Sunday, April 26, 2009 6:32 AM > To: rspec-users > Subject: Re: [rspec-users] BDD for C#? > > > > Cucumber has been working with .NET for a w

Re: [rspec-users] Problems running features with Textmate Cucumber bundle

2009-04-27 Thread Ben Mabey
Rick DeNatale wrote: On Mon, Apr 27, 2009 at 10:07 AM, aslak hellesoy wrote: On Mon, Apr 27, 2009 at 3:47 PM, Rick DeNatale wrote: On Mon, Apr 27, 2009 at 8:13 AM, Rick DeNatale wrote: On Sun, Apr 26, 2009 at 11:38 PM, Ben Mabey wrote: Rick DeNatale wrote:

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

2009-04-27 Thread jirapong.na...@gmail.com
for Acceptance testing, would you like to checkout Ben's article at - http://msdn.microsoft.com/en-us/magazine/dd453038.aspx -Jirapong On Apr 27, 2009, at 10:45 AM, Brandon Olivares wrote: -Original Message- From: rspec-users-boun...@rubyforge.org [mailto:rspec-users- boun...@rubyfo

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

2009-04-27 Thread aslak hellesoy
> > > -Original Message- > > From: rspec-users-boun...@rubyforge.org [mailto:rspec-users- > > boun...@rubyforge.org] On Behalf Of aslak hellesoy > > Sent: Sunday, April 26, 2009 6:32 AM > > To: rspec-users > > Subject: Re: [rspec-users] BDD for C#? > > > > > > > > Cucumber has been working

Re: [rspec-users] [cucumber] Setting a constant in step definition

2009-04-27 Thread Andrew Premdas
Good question. One answer is that it can change, it just needs a code change and application restart. Basic business case is that someone will set the postage threshold before the application is deployed. However they could choose any value. So I want to test what happens when the application is s

Re: [rspec-users] [cucumber] Setting a constant in step definition

2009-04-27 Thread Andrew Premdas
I guess I'll just have to use a global, perhaps trying to freeze them in production. Just thought there might be something that might be an alternative. Might have a look at using a stub if that doesn't work. Thanks for your input 2009/4/27 David Chelimsky > On Mon, Apr 27, 2009 at 7:00 AM, An

Re: [rspec-users] [cucumber] Setting a constant in step definition

2009-04-27 Thread aslak hellesoy
> Good question. One answer is that it can change, it just needs a code > change and application restart. > > Basic business case is that someone will set the postage threshold before > the application is deployed. However they could choose any value. So I want > to test what happens when the appli

Re: [rspec-users] Problems running features with Textmate Cucumber bundle

2009-04-27 Thread Rick DeNatale
On Mon, Apr 27, 2009 at 11:42 AM, Ben Mabey wrote: > > Do you happen to be explicitly requiring any of your step definitions from > your env.rb or other files?  What does your env.rb look like? > Yes, env.rb is right out of the RSpec book B4.0 'printing' p 43 $: << File.join(File.dirname(__FILE_

Re: [rspec-users] [cucumber] Setting a constant in step definition

2009-04-27 Thread Andrew Premdas
Thankyou Aslak much appreciated Andrew 2009/4/27 aslak hellesoy > > Good question. One answer is that it can change, it just needs a code >> change and application restart. >> >> Basic business case is that someone will set the postage threshold before >> the application is deployed. However th

[rspec-users] uninitialized constant ActionController running Cucumber features in Aptana/RadRails IDE

2009-04-27 Thread WJSimacek
I'm just starting on BDD. I installed the gems for webrats and cucumber. I also ran the following in the Ruby shell: >rake gems:install RAILS_EN=test >script/generate cucumber These commands seemed to create the expected features and lib folders in my project. I'm using the eclipse framework wi

Re: [rspec-users] Problems running features with Textmate Cucumber bundle

2009-04-27 Thread Ben Mabey
Rick DeNatale wrote: On Mon, Apr 27, 2009 at 11:42 AM, Ben Mabey wrote: Do you happen to be explicitly requiring any of your step definitions from your env.rb or other files? What does your env.rb look like? Yes, env.rb is right out of the RSpec book B4.0 'printing' p 43 $: << File

[rspec-users] describe 'a spec for a helper that takes a block' i.should need_to_do_this?

2009-04-27 Thread Higgaion
i have a helper like this: def swf_upload_tag( upload_url, options = {}, &block) # irelavant stuff removed button_text = capture(&block) unless button_text.blank? options.merge!( :button_text => button_text ) end # irelavant stuff removed concat( content_tag( :div, '

Re: [rspec-users] Problems running features with Textmate Cucumber bundle

2009-04-27 Thread Ben Mabey
Ben Mabey wrote: Rick DeNatale wrote: On Mon, Apr 27, 2009 at 11:42 AM, Ben Mabey wrote: Do you happen to be explicitly requiring any of your step definitions from your env.rb or other files? What does your env.rb look like? Yes, env.rb is right out of the RSpec book B4.0 'printing

[rspec-users] cucumber/webrat, need to set user in session, can't stub or mock. Fixtures?

2009-04-27 Thread doug livesey
Hi -- I'm assuming that there are excellent reasons for not enabling stubs & mocks in cucumber, but I find myself in a bit of a pickle without them. Basically, I want to write a feature that has the home page displaying if there is a logged in user (identified by a call to current_user, which in tu

Re: [rspec-users] cucumber/webrat, need to set user in session, can't stub or mock. Fixtures?

2009-04-27 Thread David Chelimsky
On Mon, Apr 27, 2009 at 3:09 PM, doug livesey wrote: > Hi -- I'm assuming that there are excellent reasons for not enabling stubs & > mocks in cucumber, but I find myself in a bit of a pickle without them. Aslak and I were discussing this very thing earlier today. There are definitely good reason

Re: [rspec-users] cucumber/webrat, need to set user in session, can't stub or mock. Fixtures?

2009-04-27 Thread doug livesey
Cheers for that -- I'll give it a try. Would all of that be in the step file? (Total cucumber newbie, sorry!) Cheers, Doug. ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] cucumber/webrat, need to set user in session, can't stub or mock. Fixtures?

2009-04-27 Thread David Chelimsky
On Mon, Apr 27, 2009 at 3:39 PM, doug livesey wrote: > Cheers for that -- I'll give it a try. > Would all of that be in the step file? Please be sure to clip the relevant parts when responding - "all of that" is only meaningful if I look at the other email in this thread. Easy on my desk top. Not

[rspec-users] Cucumber - Testing ActionMailer

2009-04-27 Thread James Byrne
I need some help with this. I have installed email-spec (courtesy of BMabey) and I have configure things thusly: Scenario: E-Mail Exchange Rates to notify parties Given a currency exchange feed from the Bank of Canada When the currency exchange retrieval script runs Then I should re

[rspec-users] [cucumber] Where does STDOUT go?

2009-04-27 Thread James Byrne
If one invokes a Ruby script from a cucumber step definition and that script contains "puts" statements then where does the output go? I have a script that when run from the command line displays "puts" output in the terminal session, but when run from a cucumber step definition produces no consol

Re: [rspec-users] [cucumber] Setting a constant in step definition

2009-04-27 Thread Matt Wynne
On 27 Apr 2009, at 19:08, Andrew Premdas wrote: Thankyou Aslak much appreciated Bear in mind that this trick will change the value of the constant FOR ALL REMAINING SCENARIOS - not just the current one. If that bothers you, have a read of this thread: http://www.nabble.com/AfterCurrentSce

Re: [rspec-users] cucumber/webrat, need to set user in session, can't stub or mock. Fixtures?

2009-04-27 Thread doug livesey
> Please be sure to clip the relevant parts when responding - "all of > that" is only meaningful if I look at the other email in this thread. > Easy on my desk top. Not so easy on my phone. Bit too used to gmail threads, sorry! Doug. ___ rspec-users m

Re: [rspec-users] cucumber/webrat, need to set user in session, can't stub or mock. Fixtures?

2009-04-27 Thread doug livesey
& that nailed it, cheers man! Doug. 2009/4/27 doug livesey > > Please be sure to clip the relevant parts when responding - "all of > > that" is only meaningful if I look at the other email in this thread. > > Easy on my desk top. Not so easy on my phone. > > Bit too used to gmail threads, sor

Re: [rspec-users] [cucumber] Where does STDOUT go?

2009-04-27 Thread Ben Mabey
James Byrne wrote: If one invokes a Ruby script from a cucumber step definition and that script contains "puts" statements then where does the output go? I have a script that when run from the command line displays "puts" output in the terminal session, but when run from a cucumber step definiti

Re: [rspec-users] [Cucumber] gem missing dependencies

2009-04-27 Thread Kero van Gelder
Hi list & Clifford, > > Looks like installing hoe (which brings in rubyforge and rake) solved the > > problem below. > > I just fixed that: > http://github.com/aslakhellesoy/cucumber/commit/23cbc9b6c54ebe1ecf568610c2696762f22f0b06 Thanks Aslak, that was quick, but... I had to try that, and the

Re: [rspec-users] cucumber/webrat, need to set user in session, can't stub or mock. Fixtures?

2009-04-27 Thread doug livesey
Except I'm now struggling with how it should work, sorry. The step for the scenario looks like this: Given /^that a user is logged in to the session$/ do controller.stub!( :current_user ).and_return( true ) end However, when I try to puts the value of current_user as called from the Application

Re: [rspec-users] cucumber/webrat, need to set user in session, can't stub or mock. Fixtures?

2009-04-27 Thread doug livesey
Refactoring the current_user method a little, then stubbing the find method in there did it. # ApplicationController def current_user User.find( session[:user_id] ) rescue nil end # Scenario step Given /^that a user is logged in to the session$/ do User.stub!( :find ).and_return( true ) end

Re: [rspec-users] cucumber/webrat, need to set user in session, can't stub or mock. Fixtures?

2009-04-27 Thread Zach Dennis
On Mon, Apr 27, 2009 at 5:24 PM, doug livesey wrote: > Refactoring the current_user method a little, then stubbing the find method > in there did it. > > # ApplicationController > def current_user >   User.find( session[:user_id] ) rescue nil > end > > # Scenario step > Given /^that a user is logg

Re: [rspec-users] uninitialized constant ActionController running Cucumber features in Aptana/RadRails IDE

2009-04-27 Thread aslak hellesoy
> I'm just starting on BDD. I installed the gems for webrats and > cucumber. > I also ran the following in the Ruby shell: > > >rake gems:install RAILS_EN=test > >script/generate cucumber > > These commands seemed to create the expected features and lib folders > in my project. > > I'm using the e

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

2009-04-27 Thread wolfmanjm
Ahh no I'm still using 0.2.0 I was going to write up a gist as an example, I actually just stopped using background and put it in the scenario outline, but I'll try it on 0.3.0 Thanks On Apr 27, 5:11 am, Andrew Premdas wrote: > Is this with 0.3.0? If not this might have been recently fixed as I

Re: [rspec-users] [Cucumber] gem missing dependencies

2009-04-27 Thread aslak hellesoy
> Hi list & Clifford, > > > > Looks like installing hoe (which brings in rubyforge and rake) solved > the problem below. > > > > I just fixed that: > > > http://github.com/aslakhellesoy/cucumber/commit/23cbc9b6c54ebe1ecf568610c2696762f22f0b06 > > Thanks Aslak, that was quick, but... > I had to try

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

2009-04-27 Thread wolfmanjm
Ok there is a different bug with 0.3.0, I'll work up a gist, but it seems that background with scenario outline now has background run before the Before hook, or maybe the before hook is not being run. The docs say background runs after the before hook. I need to debug further to see what is actu

Re: [rspec-users] [cucumber] Setting a constant in step definition

2009-04-27 Thread aslak hellesoy
> > On 27 Apr 2009, at 19:08, Andrew Premdas wrote: > > Thankyou Aslak much appreciated >> > > Bear in mind that this trick will change the value of the constant FOR ALL > REMAINING SCENARIOS - not just the current one. > I think you missed the After block. > > If that bothers you, have a read

Re: [rspec-users] cucumber/webrat, need to set user in session, can't stub or mock. Fixtures?

2009-04-27 Thread doug livesey
Yeah, I take your point, but I would need to set that up with fixtures, wouldn't I? & really I guess I should be seeding the session with a User id & letting all of the code do its work, not just stubbing the find method on ActiveRecord. I'll have a think on it -- for the moment it's quick & uncomp

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

2009-04-27 Thread wolfmanjm
Ok I confirmed that the Before hook is not run the first time through when scenario outline and Background is used. The After hook is run though. In subsequent outlines before and after run as expected. gist is here... git clone git://gist.github.com/102789.git gist-102789 http://gist.github.com/g

Re: [rspec-users] [Cucumber] gem missing dependencies

2009-04-27 Thread Kero van Gelder
> This is the umpteenth time polyglot messes up. Polyglot is broken broken > broken. Cucumber doesn't use it, but can't escape it, because Treetop > *always* loads it. I have tried to lobby the Treetop developers to make it > optional. I have sent a patch (as a treetop fork). It's still in there. >

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

2009-04-27 Thread aslak hellesoy
> Ok I confirmed that the Before hook is not run the first time through > when scenario outline and Background is used. > The After hook is run though. > In subsequent outlines before and after run as expected. > > gist is here... > git clone git://gist.github.com/102789.git gist-102789 > http://gi

Re: [rspec-users] [Cucumber] gem missing dependencies

2009-04-27 Thread aslak hellesoy
On Tue, Apr 28, 2009 at 1:14 AM, Kero van Gelder wrote: > > This is the umpteenth time polyglot messes up. Polyglot is broken broken > > broken. Cucumber doesn't use it, but can't escape it, because Treetop > > *always* loads it. I have tried to lobby the Treetop developers to make > it > > optio

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

2009-04-27 Thread Brandon Olivares
> -Original Message- > From: rspec-users-boun...@rubyforge.org [mailto:rspec-users- > boun...@rubyforge.org] On Behalf Of aslak hellesoy > Sent: Monday, April 27, 2009 11:51 AM > To: rspec-users > Subject: Re: [rspec-users] BDD for C#? > > > > I think you mean: "Does IronRuby work alo

Re: [rspec-users] [cucumber] Where does STDOUT go?

2009-04-27 Thread James Byrne
Ben Mabey wrote: > > If you are running the command with the backticks it is simply being > returned to that call. If you want to see that ouput you could add a > puts.. for example: > > puts `some_command` > Thanks -- Posted via http://www.ruby-forum.com/. _

Re: [rspec-users] [cucumber] Setting a constant in step definition

2009-04-27 Thread Matt Wynne
On 27 Apr 2009, at 22:48, aslak hellesoy wrote: On 27 Apr 2009, at 19:08, Andrew Premdas wrote: Thankyou Aslak much appreciated Bear in mind that this trick will change the value of the constant FOR ALL REMAINING SCENARIOS - not just the current one. I think you missed the After block.

Re: [rspec-users] Depot app, Demeter's law and troubles cleanly spe cing

2009-04-27 Thread Stephen Eley
On Sun, Apr 26, 2009 at 10:20 PM, Dan North wrote: > 2009/4/24 Stephen Eley >> >> Yeah, I'm a smartass. > > Well you seem to be on the right lines to me. Thank you! That means a great deal to me. -- Have Fun, Steve Eley (sfe...@gmail.com) ESCAPE POD - The Science Fiction Podcast Magazi

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

2009-04-27 Thread Dan North
Hi Brandon. I already replied on the BDD list but can I suggest you give the nbehave guys a poke, or even get involved in helping them out? If they started getting some releases out it would really help build some momentum around it. Cheers, Dan 2009/4/28 Brandon Olivares > > > > > -Origi

Re: [rspec-users] [cucumber] Where does STDOUT go?

2009-04-27 Thread Julian Leviston
It produces console output for me. Julian. On 28/04/2009, at 6:53 AM, James Byrne wrote: If one invokes a Ruby script from a cucumber step definition and that script contains "puts" statements then where does the output go? I have a script that when run from the command line displays "puts

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

2009-04-27 Thread Brandon Olivares
> -Original Message- > From: rspec-users-boun...@rubyforge.org [mailto:rspec-users- > boun...@rubyforge.org] On Behalf Of Dan North > Sent: Monday, April 27, 2009 10:00 PM > To: rspec-users > Subject: Re: [rspec-users] BDD for C#? > > Hi Brandon. > > I already replied on the BDD list bu

Re: [rspec-users] Cucumber - Testing ActionMailer

2009-04-27 Thread Ben Mabey
James Byrne wrote: I need some help with this. I have installed email-spec (courtesy of BMabey) and I have configure things thusly: Scenario: E-Mail Exchange Rates to notify parties Given a currency exchange feed from the Bank of Canada When the currency exchange retrieval script runs

Re: [rspec-users] [cucumber] Setting a constant in step definition

2009-04-27 Thread Dan North
2009/4/28 Andrew Premdas > I guess I'll just have to use a global, perhaps trying to freeze them in > production. Just thought there might be something that might be an > alternative. Might have a look at using a stub if that doesn't work. Thanks > for your input You could pass the value as a c

Re: [rspec-users] [cucumber] Setting a constant in step definition

2009-04-27 Thread aslak hellesoy
> > > 2009/4/28 Andrew Premdas > >> I guess I'll just have to use a global, perhaps trying to freeze them in >> production. Just thought there might be something that might be an >> alternative. Might have a look at using a stub if that doesn't work. Thanks >> for your input > > > You could pass t