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
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
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
>
>
> > -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:
> >
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
> -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
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,
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
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
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
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
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
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
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
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
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
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
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
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
> 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
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
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:
> -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
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:
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
>
> > -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
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
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
> 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
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_
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
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
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
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, '
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
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
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
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
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
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
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
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
> 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
& 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
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
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
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
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
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
> 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
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
> 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
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
>
> 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
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
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
> 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.
>
> 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
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
> -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
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/.
_
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.
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
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
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
> -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
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
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
>
>
> 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
69 matches
Mail list logo