Re: [rspec-users] Rspec for this class

2012-01-08 Thread aslak hellesoy
On Sun, Jan 8, 2012 at 8:18 PM, umair iqbal wrote: > Hi All > I am new to rspec. How can I write specs for this class > Anyone please provide me the detail specs for this class > thanks > Start by asking yourself what this class does. Then try to come up with an example. Then, think about what th

Re: [rspec-users] cucumber is_admin? testing

2011-11-24 Thread aslak hellesoy
On Thu, Nov 24, 2011 at 11:12 AM, Alex Whiteland wrote: > Aslak, I send a message to group email, but I haven't answer yet. > What email did you send to? We haven't received anything from you. I'm assuming you're using a regular mail client? > -- > Posted via http://www.ruby-forum.com/. > __

Re: [rspec-users] cucumber is_admin? testing

2011-11-23 Thread aslak hellesoy
On Wed, Nov 23, 2011 at 5:55 PM, Alex Whiteland wrote: >> that is added to cucumber's world does not have access to your >> application >> controller's @current_user variable. > > So, I understand this. But how I can avoid this defect? > > If I paste def is_admin? into application_controller near

Re: [rspec-users] cucumber is_admin? testing

2011-11-23 Thread aslak hellesoy
On Wed, Nov 23, 2011 at 4:19 PM, Alex Whiteland wrote: > Aslak, but if I haven't Google Account? > You don't need one. Click "About this group", and you'll see the group's email address. Your first message will be moderated. Aslak > -- > Posted via http://www.ruby-forum.com/. >

Re: [rspec-users] cucumber is_admin? testing

2011-11-23 Thread aslak hellesoy
On Wed, Nov 23, 2011 at 3:10 PM, Alex Whiteland wrote: > I don't know where to put this post, Here: http://groups.google.com/group/cukes > but theme of this more similar to > my issue. > > I have trite signin system, like this: > >> ApplicationController: > include SessionsHelper > > private > >

Re: [rspec-users] newbie cucumber tutorial

2011-11-16 Thread aslak hellesoy
On Wed, Nov 16, 2011 at 5:45 PM, Chris Habgood wrote: > this group is for rspec > The Cucumber list -> http://groups.google.com/group/cukes > On Wed, Nov 16, 2011 at 11:34, Vin MR wrote: >> >> I'm new with Ruby and Cucumber.  I've tried this simple test, but it >> didn't work for me >> >> Give

Re: [rspec-users] newbie cucumber tutorial

2011-11-16 Thread aslak hellesoy
On Wed, Nov 16, 2011 at 5:34 PM, Vin MR wrote: > I'm new with Ruby and Cucumber.  I've tried this simple test, but it > didn't work for me > > Given > When I enter ABC on keyboard > Then ... > > > And here is the ruby code > When /^I enter "([^\"]*) on keyboard$/ do |input| That RegExp doesn

Re: [rspec-users] Cucumber and rspec, do cucumber step definitions use rspec?

2011-05-10 Thread aslak hellesoy
On Mon, May 9, 2011 at 4:12 PM, S Ahmed wrote: > Andrew, I've actually read allot of the book (but admittedly I brushed over > the cucumber sections), but I was confused at this point. > > I understand the outside in development, etc. > > What I was confused at was if the two technologies actuall

Re: [rspec-users] Cucumber and rspec, do cucumber step definitions use rspec?

2011-05-10 Thread aslak hellesoy
On Mon, May 9, 2011 at 3:00 PM, S Ahmed wrote: > I'm a bit confused as to how cucumber and rspec integrate (if they d at > all?). > > RSpec is two things: a) A runner (command line program) b) An assertion library (should, should_not, be_nil and friens) Cucumber doesn't use a) at all. If you wan

Re: [rspec-users] given-when-then-and syntax support in Rspec

2011-03-27 Thread aslak hellesoy
On Sun, Mar 27, 2011 at 11:16 PM, Rodrigo Rosenfeld Rosas wrote: > Em 27-03-2011 10:32, Matt Wynne escreveu: >> >> On 27 Mar 2011, at 03:43, Rodrigo Rosenfeld Rosas wrote: >> >>> Hi David and fellows, >>> >>> I know this subject has already been discussed here and there are already >>> some attemp

Re: [rspec-users] Cucumber problems

2011-01-20 Thread aslak hellesoy
Misha, Cucumber has its own mailing list (see http://cukes.info) Please repost your question there. Aslak On Thu, Jan 20, 2011 at 12:13 PM, Misha Ognev wrote: > Hello. I know that's not RSpec, but it belong to BDD. > > I have some problem with cucumber. When I run all commands in cucumber, > I

Re: [rspec-users] RSpec-2.0.0 is released!

2010-10-11 Thread aslak hellesoy
> ## RSpec-2.0.0 has been released! > > David, I'm so impressed how you have managed to manage a half-rewrite, updating the RSpec book (which now soon goes to print) and coordinating everything with Rails and the 80+ contributors. The upgrade process has been extremely simple for me taken into acco

Re: [rspec-users] Using RSpec and Cucumber with Rails 3 Engines

2010-06-28 Thread aslak hellesoy
On Tue, Jun 29, 2010 at 4:58 AM, Brandon Olivares wrote: > Hi, > > I recently upgraded to Rails 3 beta, a few weeks ago. One thing I would > really like to do is to develop components of my application, because some > of them I'd really like to be able to reuse on other projects. I know how to > m

Re: [rspec-users] How I make browser act-as-robot-driven ?

2010-05-20 Thread aslak hellesoy
On Thu, May 20, 2010 at 10:21 PM, Chuck van der Linden wrote: > > On May 18, 11:08 am, Audrey A Lee wrote: >> Dear list, >> >> Today I am working through the simple tutorial here: >>  http://wiki.github.com/aslakhellesoy/cucumber/ruby-on-rails >> >> It has me install Cucumber-Rails and then creat

Re: [rspec-users] Gem tutorials / setting up rspec in a gem

2010-03-30 Thread aslak hellesoy
On Tue, Mar 30, 2010 at 12:17 PM, Ramon Tayag wrote: > Hey everyone! > > A few days ago, I tried my hand at creating a gem. I've been putting it off > for a long time because of the lack of documentation (or the lack of my > Googling skills). When I search how to create gems with RSpec, I get pag

Re: [rspec-users] how to mock a Net::Http object?

2010-03-02 Thread aslak hellesoy
On Tue, Mar 2, 2010 at 9:39 AM, Zhenning Guan wrote: > one_data = Net::HTTP.post_form(URI.parse(country_site), {'country' => > "american"}) > two_data = Net::HTTP.post_form(URI.parse(visit_site), {'country' => > "english"}) > > I have a code similar like above code in my application, so how to mo

Re: [rspec-users] Cucumber Scenario syntax

2010-02-27 Thread aslak hellesoy
On Sat, Feb 27, 2010 at 5:17 AM, Ed Howland wrote: > Hi, > > Searched for this everywhere, so here goes. > > I am having trouble matching multiline strings with leading whitespace > in them using the """ operator. > > Cucumber intentionally removes all the space characters left of the leftmost tr

Re: [rspec-users] be_true and be_false are suddenly undefined

2009-12-25 Thread aslak hellesoy
ls project and used: > > $ script/generate --webrat --rspec > > > > then compared the features/support/env.rb; mine was missing: > > require 'cucumber/rails/rspec' > > > > after adding that statement, the be_true and be_falses worked fine > > then I r

Re: [rspec-users] be_true and be_false are suddenly undefined

2009-12-25 Thread aslak hellesoy
> I agree > > I did notice that my feature/support/my_env.rb (custom) had: > require 'spec' > require 'spec/rails' > > so I changed first line > require 'spec/autorun' > > You shouldn't do that. You don't want the RSpec runner to run when you're using Cucumber. In fact, you shouldn't do any RSp

Re: [rspec-users] Cucumber Cygwin

2009-11-23 Thread aslak hellesoy
> Stuck as to what dependency is calling for cucumber 0.4.4 - config/environments/cucumber.rb? (Failing that - search for the string "0.4.4" among your project's files) > we want to > stick to 0.4.3 but Cygwin installation not allowing it - OK on Mac > What's stopping you from running 0.4.4? I

Re: [rspec-users] Cucumber Cygwin

2009-11-23 Thread aslak hellesoy
> Stuck as to what dependency is calling for cucumber 0.4.4 - we want to > stick to 0.4.3 but Cygwin installation not allowing it - OK on Mac > Cucumber has its own mailing list: http://groups.google.com/group/cukes > > > /usr/bin/ruby.exe -I > "/usr/lib/ruby/gems/1.8/gems/cucumber-0.4.3/lib:lib"

Re: [rspec-users] cucumber table diff haml problem

2009-11-03 Thread aslak hellesoy
Cucumber has its own mailing list now. Can you please post there? http://groups.google.com/group/cukes Aslak On Tue, Nov 3, 2009 at 2:01 PM, Ray K. wrote: > Inspired by the latest railscast I tried to do some table diffing: > > But my problem is that the haml generated table does not produce th

Re: [rspec-users] at_exit in spec file?

2009-10-29 Thread aslak hellesoy
On Wed, Oct 28, 2009 at 4:49 PM, David Chelimsky wrote: > On Oct 28, 2009, at 10:41 AM, Student wrote: > >> I need to perform some work (shutdown mysql servers & delete their >> data directories) at the end of my tests.  Naturally, I would like to >> use at_exit.  HOWEVER, when I do, the spec file

Re: [rspec-users] Need Help

2009-10-07 Thread aslak hellesoy
On Wed, Oct 7, 2009 at 10:24 PM, Andrew Premdas wrote: > 2009/9/25 Mithun Perera > >> Mithun Perera wrote: >> > Mithun Perera wrote: >> >> Hi all, >> >> I am an university student and these days i am on training period. So i >> >> want to know about ruby on on rails "cucumber and Rspec". If some

Re: [rspec-users] "Cucumber database is not configured" error

2009-07-21 Thread aslak hellesoy
> Hi, > > Hoping someone can help me out here. Whenever I try to run cucumber > features I keep getting an error that "cucumber database is not > configured". Stack trace is below. > Please use the Cucumber list ( http://wiki.github.com/aslakhellesoy/cucumber/get-in-touch), not this one. When y

Re: [rspec-users] cucumber-java

2009-05-28 Thread aslak hellesoy
> Aslak Hellesøy wrote: regards, Trond >>> >>> I'm having the same problem as Raymond, but on Windoze. Is there another >>> version? The only I can seem to find is the 0.0.1 on >>> http://github.com/aslakhellesoy/cucumber_java/downloads >>> >> >> No more recent versions have been released

Re: [rspec-users] cucumber-java

2009-05-27 Thread aslak hellesoy
> Trond Marius Øvstetun wrote: >> I believe (someone correct me if I'm wrong..) that the version of >> cucumber_java you have installed is an older version from a central >> repository. cucumber/pico_container is the result of a recent >> refactoring >> (as is cucumber/spring). >> For me it helped

Re: [rspec-users] [rspec] http://rspec.info examples are broken

2009-05-25 Thread aslak hellesoy
> It seems that some examples at http://rspec.info are broken with > invalid html. > > For example: http://rspec.info/documentation/before_and_after.html > I assume you're referring to: http://validator.w3.org/check?uri=http%3A%2F%2Frspec.info%2Fdocumentation%2Fbefore_and_after.html&charset=(detec

Re: [rspec-users] Cucumber: Running one feature under one profile

2009-05-22 Thread aslak hellesoy
> aslak hellesoy wrote: >>> >>> Hey Folks, >>> >>> >> >> Aargh profiles. The initial intention was that you could just do >> cucumber -p foo. >> And then you wouldn't have to type a lot of arguments. >> >> The intentio

Re: [rspec-users] Latest cucumber 0.3.6 + rspec >1.2.2 broken?

2009-05-22 Thread aslak hellesoy
> Hi all, > > It looks like the following line was removed from "/lib/spec/ > expectations.rb" on April 11: > > attr_accessor :differ > > When I try to use cucumber (version 0.3.6), it tries to > call ::Spec:Expectations.differ= and fails.  There does not seem to be The actual command, error messa

Re: [rspec-users] Cucumber: Running one feature under one profile

2009-05-22 Thread aslak hellesoy
> Hey Folks, > Aargh profiles. The initial intention was that you could just do cucumber -p foo. And then you wouldn't have to type a lot of arguments. The intention was *not* to use -p along with additional arguments, although cucumber lets you do it by merging stuff together. Using profiles as

Re: [rspec-users] [Cucumber] Fail a scenario from After or AfterStep

2009-05-21 Thread aslak hellesoy
> > On 20 May 2009, at 09:33, aslak hellesoy wrote: > >>> >>> On 20 May 2009, at 00:04, aslak hellesoy wrote: >>> >>>>> Any further thoughts on this, Aslak? I'd prefer to go with a solution >>>>> in >>>>> line w

Re: [rspec-users] Cucumber vs Rails Fixtures

2009-05-21 Thread aslak hellesoy
> >> Ben Mabey wrote: >> >>> http://wiki.github.com/aslakhellesoy/cucumber/fixtures >> >> Ding! That would have been my next click in my Googling. Let's hope this >> thread pushes that up. >> >> > http://groups.google.com/group/cukes >> >> What, no gmane yet?? (-: >> > I would have preferred: "I ha

Re: [rspec-users] how to deal with redirect_to on cucumber?

2009-05-21 Thread aslak hellesoy
Instead of answering Cucumber questions on this list, please redirect people to the new one: http://www.nabble.com/-Cucumber--ANN%3A-New-Google-Group-for-Cucumber-td23602831.html Aslak On Thu, May 21, 2009 at 9:34 AM, Matt Wynne wrote: > > On 20 May 2009, at 16:43, Zhenning Guan wrote: > >> I h

Re: [rspec-users] [Cucumber] JUnit, Spring and autowiring

2009-05-20 Thread aslak hellesoy
> > We are having trouble with JUnit-tests that are doing dependency injection in > the setup of database connections. The stacktrace identifies autowiring of > sessionFactory as the problem. During bean creation of sessionFactory we get > a NoSuchMethodError; probably because of trouble when initi

Re: [rspec-users] [Cucumber] Fail a scenario from After or AfterStep

2009-05-20 Thread aslak hellesoy
> > On 20 May 2009, at 00:04, aslak hellesoy wrote: > >>> Any further thoughts on this, Aslak? I'd prefer to go with a solution in >>> line with the future direction of Cucumber if possible. >>> >> >> Sorry, forgot to get back to you Luke. >

Re: [rspec-users] [Cucumber] Fail a scenario from After or AfterStep

2009-05-20 Thread aslak hellesoy
> On May 19, 2009, at 10:43 PM, Luke Melia wrote: > >> On May 19, 2009, at 7:04 PM, aslak hellesoy wrote: >> >>> I'm convinced. We'll add an AfterStep hook. Do you want to give a stab >>> at a patch? Start by writing a feature - see >>> featur

Re: [rspec-users] Issue with jruby and cucumber step with 4 parameters

2009-05-20 Thread aslak hellesoy
The Cucumber list has moved: http://www.nabble.com/-Cucumber--ANN%3A-New-Google-Group-for-Cucumber-td23602831.html On Wed, May 20, 2009 at 5:29 AM, Korny Sietsma wrote: > Hi - sorry for the cross-list post, but this issue happens only with > cucumber and jruby, and I'm not 100% sure which has the

Re: [rspec-users] [Cucumber] Fail a scenario from After or AfterStep

2009-05-19 Thread aslak hellesoy
writing a feature - see features/after_block_exceptions.feature for a good example of the style we like... Aslak > Cheers, > Luke > > On May 15, 2009, at 5:12 PM, Luke Melia wrote: > >> On May 15, 2009, at 3:36 PM, aslak hellesoy wrote: >> >>> Thanks for doing that. I

Re: [rspec-users] Skipping the testscenario based on Given block execution.

2009-05-19 Thread aslak hellesoy
> Hi, > I think i am not clear. > My query is while running the testcases, > Some times precondition of testcase fails, when precondition itself > fails there is no point in executing the testcase further. > so , is there any way in cucumber to skip execution of scenario when > precondition of test

Re: [rspec-users] Cucumber rake/webrat issue.

2009-05-18 Thread aslak hellesoy
Hi Matthew, Please repost to the new list: http://www.nabble.com/-Cucumber--ANN%3A-New-Google-Group-for-Cucumber-td23602831.html On Mon, May 18, 2009 at 8:49 PM, Matthew Van Horn wrote: > I'm probably missing something really obvious, but I just upgraded cucumber, > rspec/rails, and webrat on a

Re: [rspec-users] Cucumber + Authorize.net CIM

2009-05-18 Thread aslak hellesoy
> Hi all, > > I'm curious how one would recommend testing authorize.net customer > information manager storage with cucumber stories. > > In my checkout process testing, my code sends user profile/card/address > information to the authorize.net test servers, which then stores the Introduce an abst

[rspec-users] [Cucumber] ANN: New Google Group for Cucumber

2009-05-18 Thread aslak hellesoy
David Chelimsky and I have decided that it's now best to create a separate mailing list for Cucumber. The RSpec mailing lists remain the same, but we're hoping that you will all move Cucumber related discussions to this new list. I have already sent an invitation to the 98 people who have provided

Re: [rspec-users] cucumber-java

2009-05-18 Thread aslak hellesoy
>>>> So, I guess I have again missed something >>>> >>>> Cheers, >>>> Raymond Barlow >>>> >>>> 2009/5/18 Trond Marius Øvstetun >>>>> >>>>> On Sun, May 17, 2009 at 12:01 AM, Raymond Barlow >&g

Re: [rspec-users] Cucumber broke my rake tasks! 0.3.5

2009-05-18 Thread aslak hellesoy
> 2009/5/15 aslak hellesoy : >>> Andrew Premdas wrote: >>>> >>>> Seem to be having a problem with the new releases 0.3.5 which >>>> completely breaks my rake tasks http://gist.github.com/112149. >>>> >>>> WIth the

Re: [rspec-users] REG: Colour setting for html logs

2009-05-18 Thread aslak hellesoy
> Anil Gollaa wrote: >> >> Hi, >> When i run some testcases using cucumber sample.feature --format >> html>features.html. >> >> 1) After execution, By default in the html file, background colour is >> black. >> How can i set the background color any other colour i want. Like we can >> set >> other

Re: [rspec-users] cucumber-java

2009-05-18 Thread aslak hellesoy
> > > On Mon, May 18, 2009 at 10:02 AM, aslak hellesoy > wrote: >> >> On Sun, May 17, 2009 at 12:01 AM, Raymond Barlow >> wrote: >> > OK, that seemed to help a bit. That installed a bunch of stuff, and then >> > I >> > did the mvn

Re: [rspec-users] cucumber-java

2009-05-18 Thread aslak hellesoy
sk 'gem' > > (See full trace by running task with --trace) > > Am I perhaps in the wrong directory when I do this? > > > > Sorry, just feeling my way around at the moment. > Sorry about the sparse documentation. I think we should yank all the README files and

Re: [rspec-users] Cucumber tables

2009-05-16 Thread aslak hellesoy
> Aslak Hellesøy wrote: > >> >> Which terms do you think we should adopt and where in the wiki should >> this be emphasized more clearly? >> >> Aslak > > The best suggestion that I can come up with is: Outline Tables for > Scenario Outlines and Inline Tables for regular scenarios. > > As far as the

Re: [rspec-users] Features running in development mode

2009-05-16 Thread aslak hellesoy
> Hi, > > On my Rails app, when I run 'rake features', it runs it in development > mode.  Which is weird.  And messes up my development database. > > What can I do to force it to run in test mode? > What Cucumber version are you on? Did you upgrade without reading the changelog? (History.txt) Asl

Re: [rspec-users] cucumber-java

2009-05-16 Thread aslak hellesoy
> Hi all, > > Does anyone have an example of how to get the cucumber-java simple example > running? I would like to use cucumber-java but cannot figure out how. > > I've gem installed cucumber and cucumber-java. When I run mvn clean package > in the simple directory, I get this error: > > 19:41:48

Re: [rspec-users] Cucumber tables

2009-05-15 Thread aslak hellesoy
> Aslak Hellesøy wrote: >>> sure that this is what I was doing, although the table followed a >>> complete scenario. �However, I have not used tables for the last couple >>> of months and am somewhat perplexed with respect to the changes. >> >> What are these changes you are talking about?? The onl

Re: [rspec-users] Cucumber tables

2009-05-15 Thread aslak hellesoy
> Chris Flipse wrote: > >> They're actually unrelated.  Most of my table matchers have no other >> regex in the expression >> >> You're not seeing anything else with the table data because you're not >> doing >> anything with the table data. >> >>  Given /the following data rates/ do |table| >>    

Re: [rspec-users] [Cucumber] Fail a scenario from After or AfterStep

2009-05-15 Thread aslak hellesoy
> On May 15, 2009, at 10:16 AM, aslak hellesoy wrote: > >> Can you show me the code you would want to put in AfterStep that would >> detect a 500 error? > > I've written a simple piece of rack middleware (included below) that will > create a file in the event a

Re: [rspec-users] Cucumber tables

2009-05-15 Thread aslak hellesoy
> Aslak Hellesøy wrote: > >> http://wiki.github.com/aslakhellesoy/cucumber/scenario-outlines >> >> Please let us know what's missing or unclear about that. >> > > That documentation is for scenario outlines.  I had gathered that one > could also simply use tables with regular scenarios where the ta

Re: [rspec-users] [ANN] rSquery 0.1.1

2009-05-15 Thread aslak hellesoy
> Hello all > > rSquery aims to reduce the difficulties involved in writing selenium tests > in cucumber environments for webapps that use jQuery. > > The project contains several methods to help you with writing javascript > commands for selenium and javascript based tests for cucumber or even rSp

Re: [rspec-users] Cucumber tables

2009-05-15 Thread aslak hellesoy
> I cannot seem to locate any documentation on how to implement the new > table syntax otherwise I would not bother the list with this. > I'm not sure what you mean by "new" table syntax. The syntax for tables hasn't really changed since it was introduced. > I wish to write something like this: >

Re: [rspec-users] Cucumber broke my rake tasks! 0.3.5

2009-05-15 Thread aslak hellesoy
> Andrew Premdas wrote: >> >> Seem to be having a problem with the new releases 0.3.5 which >> completely breaks my rake tasks http://gist.github.com/112149. >> >> WIth the >> >>  t.fork = true # Explicitly fork for cucumber 0.3.4 and rails >> >> lines added to the tasks none of my steps are recogn

Re: [rspec-users] [Cucumber] Fail a scenario from After or AfterStep

2009-05-15 Thread aslak hellesoy
> On May 15, 2009, at 4:25 AM, aslak hellesoy wrote: > >> To be honest, I don't remember what happened to AfterStep. I think we >> had it at some point, but can't see it in the codebase. Did I remove >> it? Or was that back in the pre-Cucumber days? Help me remem

Re: [rspec-users] [Cucumber] Fail a scenario from After or AfterStep

2009-05-15 Thread aslak hellesoy
> I'm trying to make sure that my cucumber selenium suite fails if my Rails > app returns any 500 response codes. I'm working on what the best way to > identify this state, but the question I'd like to put to the list is this: > If I want to check for this error condition in an After or AfterStep,

[rspec-users] [Cucumber] ANN: Cucumber 0.3.5

2009-05-14 Thread aslak hellesoy
http://github.com/aslakhellesoy/cucumber/blob/20021e90c892030c1a1b46e2d19024c3719af0ba/History.txt Thanks Joseph! ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

[rspec-users] [Cucumber] ANN: Cucumber 0.3.4

2009-05-14 Thread aslak hellesoy
http://github.com/aslakhellesoy/cucumber/blob/173506c4013a7d733c5b4924e7af3dcc49db2218/History.txt Enjoy! ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] Cucumber Tables

2009-05-13 Thread aslak hellesoy
> I am running into this situation: > > Feature 1 > >  Scenario A >    ... >    Then we should have currency exchange rates for "USD" on file >      And we should ... > > > Feature 2 > >  Scenario D >    ... >    Then we should have currency exchange rates for "USD" on file >        | code| >      

Re: [rspec-users] [cucumber] junit formatter

2009-05-12 Thread aslak hellesoy
; From: rspec-users-boun...@rubyforge.org > [mailto:rspec-users-boun...@rubyforge.org] On Behalf Of aslak hellesoy > Sent: Tuesday, 12 May 2009 7:26 PM > To: rspec-users > Cc: Songkick Developers > Subject: Re: [rspec-users] [cucumber] junit formatter > > > > > > On 12 May 2009

Re: [rspec-users] Cucumber 0.3.3 - Examples:

2009-05-12 Thread aslak hellesoy
> Am I correct when I infer that the "Examples" keyword is now only valid > in a Scenario Outline? If so, in what version did this change take > place? >From version 0.2.0 (released on 2009-03-18). See History.txt for details. Excerpt: * "More Examples" is gone. "Scenario" + "More Examples" is

Re: [rspec-users] [cucumber] junit formatter

2009-05-12 Thread aslak hellesoy
> On 12 May 2009, at 05:29, Jones, Gareth wrote: > > Hi, >> >> I’ve knocked together a JUnit xml output formatter for cucumber – we’re >> using it with Hudson and Ant, so it seemed like a good idea. It’s good >> enough for our purposes, so I thought we should release it into the wild, >> and see i

Re: [rspec-users] Sharing common Cuke steps

2009-05-11 Thread aslak hellesoy
> Hi All > > > > It seems to me that there's an opportunity for packaging together and > > sharing steps, but am curious of folks thoughts on the best way to go > about > > this. > > > > Mike > > > > Customer/Users are likely to have their 'own' language' and that > providing library steps - could

Re: [rspec-users] Sharing common Cuke steps

2009-05-09 Thread aslak hellesoy
> On Fri, May 8, 2009 at 10:24 AM, aslak hellesoy > wrote: > >> [ Matt Wynne: ] > >> So are you saying we'd put the steps in a gem, then include them using > require? > > > > Yes. > > Is there any reason not to accept them for inclusion in the C

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

2009-05-08 Thread aslak hellesoy
On Fri, May 8, 2009 at 4:30 PM, Ingo Weiss wrote: > 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? > # Yes # it is possible # anywhere Aslak > Thanks! > Ingo > >

Re: [rspec-users] Sharing common Cuke steps

2009-05-08 Thread aslak hellesoy
> > On 8 May 2009, at 09:12, aslak hellesoy wrote: > > >> >> On 8 May 2009, at 05:55, Mike Doel wrote: >> >> Cucumber is awesome and destined to rule the world. As that starts to >> happen, has there been any thought of a mechanism for the community

Re: [rspec-users] Taza with Flex

2009-05-08 Thread aslak hellesoy
> Hello, > > Can somebody help me out in how to use Taza framework with Flex > applications? Following is the script to perform operations on Flex > application, please let me know how to do the same with Taza frame work: > You have come to the wrong place - you're not even using RSpec. Try the fu

Re: [rspec-users] Sharing common Cuke steps

2009-05-08 Thread aslak hellesoy
> > On 8 May 2009, at 05:55, Mike Doel wrote: > > Cucumber is awesome and destined to rule the world. As that starts to >> happen, has there been any thought of a mechanism for the community to build >> a library of common, generally useful steps that can be used across >> projects? I've got stu

Re: [rspec-users] [cucumber] Multi-line Step Arguments

2009-05-07 Thread aslak hellesoy
> On 7 May 2009, at 21:28, keith shaw wrote: > > Hey All, >> >> I am trying to set up cucumber to use the multiline step argument. I have >> my test posted here : http://gist.github.com/108328. >> > > You need to use 'Scenario Outline', not 'Scenario' if you're using an > Examples table. I think

Re: [rspec-users] Features failing to run correctly under 0.3.2

2009-05-07 Thread aslak hellesoy
work. > > > > Andrew > > > > 2009/5/6 aslak hellesoy > >> > >> > >> On Wed, May 6, 2009 at 9:20 AM, Andrew Premdas > wrote: > >>> > >>> Having significant problems getting an upto date environment with > >>&g

[rspec-users] top posting and plain text

2009-05-06 Thread aslak hellesoy
Folks, I find it really hard to follow conversations that use top posting ( http://en.wikipedia.org/wiki/Posting_style). If you have a [Cucumber] topic, please respond with inline comments. And use plain text email - not html. Thanks, Aslak ___ rspec-us

Re: [rspec-users] [cucumber] How to DRY up table data that I'm seeing across tests ?

2009-05-06 Thread aslak hellesoy
> I have the following step that I want to re-use in several scenarios. It > looks like this: > > When I submit the form >|form_field_id |value| >|billingAddress.email|mickey_mo...@test.com| >|billingAddress.firstName|Mickey| >|billingAddress.lastName

Re: [rspec-users] Features failing to run correctly under 0.3.2

2009-05-06 Thread aslak hellesoy
On Wed, May 6, 2009 at 9:20 AM, Andrew Premdas wrote: > Having significant problems getting an upto date environment with cucumber > and rspec since 0.3.0. I have put the relevant files including a backtrace > in a gist http://gist.github.com/107586. I'd really appreciate it if > someone could t

Re: [rspec-users] Features failing to run correctly under 0.3.2

2009-05-06 Thread aslak hellesoy
> Having significant problems getting an upto date environment with cucumber > and rspec since 0.3.0. I have put the relevant files including a backtrace > in a gist http://gist.github.com/107586. I'd really appreciate it if > someone could take a look at this. > All these features ran fine using

Re: [rspec-users] Cucunber - does not honour here-document syntax?

2009-05-06 Thread aslak hellesoy
It's Ruby, not Cucumber that parses .rb files. (Even if you have ruby code that uses the Cucumber API in them). You have a Ruby syntax error. You missed the = sign after SCRIPT ;-) Aslak something_steps.rb > > TEST = 'A constant' > > puts TEST > > SCRIPT <<-'END_SCRIPT' > ... > END_SCRIPT > > Th

Re: [rspec-users] [cucumber] Bug introduced in 0.3.1

2009-05-05 Thread aslak hellesoy
> Hi List, > We didn't resolve this in the end, we rolled back to Cucumber 0.3.0; has > anyone else seen anything similar? > Nobody else has reported anything similar on this mailing list. Can you run with --backtrace on so we can see where the error is coming from? Can you also gist your features

Re: [rspec-users] cucumber - when to stub/mock

2009-05-04 Thread aslak hellesoy
> On Sun, May 3, 2009 at 10:42 PM, Mike Doel wrote: > >> >> I also make use of FakeWeb in a couple places to do a similar thing for >> the scraping of sites. > > > FWIW, so does the maintainer of FakeWeb, Chris Kampmeier (with whom I > work). > > Stubbing should be avoided when using Cucumber, if

Re: [rspec-users] cucumber - how to bootstrap outside of rails?

2009-05-03 Thread aslak hellesoy
On Sun, May 3, 2009 at 7:08 PM, James Byrne wrote: > Aslak Hellesøy wrote: > > > > > You only need this to start: > > > > +-features/ > > +-foo.feature > > > > I realize this. I am not complaining. I just think that for a modest I don't think anyone think you were complaining. Your question

Re: [rspec-users] cucumber - when to stub/mock

2009-05-03 Thread aslak hellesoy
> I'm just curious about this, since my solution involved stubbing a call to > GeoIp. > > Is there a good rule of thumb for when you make exceptions to the 'no > stubbing' philosophy of Cucumber? > This is the rule of thumb: http://wiki.github.com/aslakhellesoy/cucumber/mocking-and-stubbing-with-c

Re: [rspec-users] cucumber - how to bootstrap outside of rails?

2009-05-03 Thread aslak hellesoy
On Sun, May 3, 2009 at 1:34 PM, James Byrne wrote: > Aslak Hellesøy wrote: > >> I use mkdir and touch. > >> > > > > Me too > > Fine for those that know cucumber inside out. A bit sparse for the rest > of creation. > You only need this to start: +-features/ +-foo.feature Then you can add som

Re: [rspec-users] [Cucumber] Using Cucumber to test Erlang servers directly

2009-05-02 Thread aslak hellesoy
> I don't know if this will interest anyone, but I thought it was a > pretty cool use of Cucumber :) > OMG sooo cool. Added here: http://wiki.github.com/aslakhellesoy/cucumber/tutorials-and-related-blog-posts Aslak > > I've posted a Blog article on how I use Cucumber to test an Erlang > Server

Re: [rspec-users] [Cucumber] how to get name from scenario hook?

2009-05-01 Thread aslak hellesoy
> Hi, > > Given the hook: > > After do |scenario| > > end > > How do I get the name of the scenario from the scenario parameter? > > scenario.name doesn't work, and I looked through the source code and > it was not immediately obvious to me. > You can call to_sexp on it and get it from there. Or

Re: [rspec-users] NetBeans with Cucumber module

2009-04-29 Thread aslak hellesoy
> Hi, > > Aslak twittered this NetBeans Cucumber module : > http://members.chello.at/server/modules.html > > I have tried to manually install it, but NetBeans in complaining about: > > "Missing required modules for Plugin Cucumber Features: > Generic Languages Framework [module org.netbeans.modules

Re: [rspec-users] Cucumber: Setting Dependency among scenarios

2009-04-29 Thread aslak hellesoy
On Wed, Apr 29, 2009 at 11:10 AM, Neema Cheriyath wrote: > Thank you Aslak. > > Let me see whether I can make use of Background for implementing the > dependency issue that I mentioned. > > I think implementing hooks in cucumber_java will be useful for us, since > we can make use of that to get a

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

2009-04-28 Thread aslak hellesoy
> > > On Sun, Apr 26, 2009 at 6:32 AM, aslak hellesoy > wrote: > >> >> I recently added pure java support to Cucumber, meaning steps can be >> written in Java instead of Ruby. >> http://github.com/aslakhellesoy/cucumber_java/tree/master >> > &

Re: [rspec-users] Before and After blocks for individual feature files?

2009-04-28 Thread aslak hellesoy
> Hey Ben, > > It'd be kinda cool if there was a sort of before and after for a feature > rather than each scenario. Is there? > I think that would be particularly *un*cool actually, because people would start using it without understanding the implications. Implications: Coupled, brittle scenario

Re: [rspec-users] Before and After blocks for individual feature files?

2009-04-28 Thread aslak hellesoy
#x27;@tag') executes before each scenario > > > > Is there a way to execute a block once before each feature, but not > > before each scenario? > > > > On Apr 28, 7:08 am, aslak hellesoy wrote: > > > > > > Hi -- is it possible to set before and after bloc

Re: [rspec-users] Before and After blocks for individual feature files?

2009-04-28 Thread aslak hellesoy
tag') executes before each scenario > > Is there a way to execute a block once before each feature, but not > before each scenario? > No :-) > > > On Apr 28, 7:08 am, aslak hellesoy wrote: > > > Hi -- is it possible to set before and after blocks for individual

Re: [rspec-users] Before and After blocks for individual feature files?

2009-04-28 Thread aslak hellesoy
> Hi -- is it possible to set before and after blocks for individual feature > files? Yes. Use tagged hooks: http://wiki.github.com/aslakhellesoy/cucumber/hooks Aslak > > I've tried putting them in step files, but they just get called before > everything, like they'd been declared in env.rb, w

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

2009-04-28 Thread aslak hellesoy
Bump? On Sun, Apr 26, 2009 at 5:04 PM, aslak hellesoy wrote: > On Sat, Apr 25, 2009 at 5:00 PM, Phlip wrote: > > Aslak Hellesøy wrote: > > > >>> require File.dirname(__FILE__) + '/../test_helper' > >>> > >>> class CukeFeature

Re: [rspec-users] [cucumber] Use of Scenario Outline for validation stuff ?

2009-04-28 Thread aslak hellesoy
On Tue, Apr 28, 2009 at 11:11 AM, Jérémy Kaz wrote: > Hi there ! > I was wondering if the way I test the validation of my forms is right or > not. So here's a little example : > Imagine you have a form with some validations designed to create some > object. You want to test it using Scenario Outl

Re: [rspec-users] [cucumber] Use of Scenario Outline for validation stuff ?

2009-04-28 Thread aslak hellesoy
> Sorry about bad formating, I pasted it and haven't checked ... > > Well, you may have understood that the "<" thing is pointing to the > 'And the VAT "" ...' line, the 1st col of 2nd line in the > examples is a blank one, and the last line is cut into 2 Sorry, I'm a little lost here. Was th

Re: [rspec-users] Cucumber custome reports

2009-04-28 Thread aslak hellesoy
> > My actual question is, Is there any api that the cucumber offer which > can be accessed to get the necessary data in the run time. > http://wiki.github.com/aslakhellesoy/cucumber/hooks > > -- > Posted via http://www.ruby-forum.com/. > ___ > rspec-u

Re: [rspec-users] Cucumber custome reports

2009-04-28 Thread aslak hellesoy
> Hi, > > I need to create a custom report based on cucumber output. I am thinking > of two ways to do this. > > > 1. Either I have to write a java application to fetch the values like > execution time for each scenarios along with its name, status etc from > cucumber in runtime. Is that possible?

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

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

  1   2   3   4   5   6   7   >