Re: [rspec-users] Rspec for this class

2012-01-08 Thread aslak hellesoy
On Sun, Jan 8, 2012 at 8:18 PM, umair iqbal li...@ruby-forum.com 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,

Re: [rspec-users] cucumber is_admin? testing

2011-11-24 Thread aslak hellesoy
On Thu, Nov 24, 2011 at 11:12 AM, Alex Whiteland li...@ruby-forum.com 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

Re: [rspec-users] cucumber is_admin? testing

2011-11-23 Thread aslak hellesoy
On Wed, Nov 23, 2011 at 3:10 PM, Alex Whiteland li...@ruby-forum.com 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

Re: [rspec-users] cucumber is_admin? testing

2011-11-23 Thread aslak hellesoy
On Wed, Nov 23, 2011 at 4:19 PM, Alex Whiteland li...@ruby-forum.com 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 5:55 PM, Alex Whiteland li...@ruby-forum.com 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

Re: [rspec-users] newbie cucumber tutorial

2011-11-16 Thread aslak hellesoy
On Wed, Nov 16, 2011 at 5:34 PM, Vin MR li...@ruby-forum.com 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

Re: [rspec-users] newbie cucumber tutorial

2011-11-16 Thread aslak hellesoy
On Wed, Nov 16, 2011 at 5:45 PM, Chris Habgood chabg...@gmail.com 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 li...@ruby-forum.com wrote: I'm new with Ruby and Cucumber.  I've tried this simple test, but it

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 sahmed1...@gmail.com 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)

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 sahmed1...@gmail.com 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

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 lboc...@yahoo.com.br 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

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 li...@ruby-forum.com wrote: Hello. I know that's not RSpec, but it belong to BDD. I have some problem with cucumber. When I run all commands

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

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 programmer2...@gmail.com 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

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 sqa...@gmail.com wrote: On May 18, 11:08 am, Audrey A Lee audrey.lee.is...@gmail.com 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

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 ramon.ta...@gmail.com 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

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 li...@ruby-forum.com 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

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 RSpec

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 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? In any

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. li...@ruby-forum.com wrote: Inspired by the latest railscast I tried to do some table diffing: But my problem is that the haml generated table

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 dchelim...@gmail.com 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,

Re: [rspec-users] Need Help

2009-10-07 Thread aslak hellesoy
On Wed, Oct 7, 2009 at 10:24 PM, Andrew Premdas aprem...@gmail.com wrote: 2009/9/25 Mithun Perera li...@ruby-forum.com 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

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 you run

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 since 0.0.1. There are

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 to use cp

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:

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] 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 message and

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 intention was *not* to use -p along with additional arguments, although cucumber lets you do it by merging stuff

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 m...@mattwynne.net wrote: On 20 May 2009, at 16:43, Zhenning

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 have set up GMane Thanks

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 ko...@sietsma.com wrote: Hi - sorry for the cross-list post, but this issue happens only with cucumber and jruby, and I'm not 100%

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 features/after_block_exceptions.feature for a good example of the style we

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

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 testcase

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

2009-05-19 Thread aslak hellesoy
/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 have one more favour to ask: Can you show me an example

Re: [rspec-users] cucumber-java

2009-05-18 Thread aslak hellesoy
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 start using the wiki instead. Any objections? Cheers! Raymond Barlow 2009/5/16 aslak hellesoy aslak.helle...@gmail.com Hi all

Re: [rspec-users] cucumber-java

2009-05-18 Thread aslak hellesoy
On Mon, May 18, 2009 at 10:02 AM, aslak hellesoy aslak.helle...@gmail.com wrote: On Sun, May 17, 2009 at 12:01 AM, Raymond Barlow rbar...@raymanoz.com wrote: OK, that seemed to help a bit. That installed a bunch of stuff, and then I did the mvn clean package in the examples directory

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 htmlfeatures.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 passed, failed

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

2009-05-18 Thread aslak hellesoy
2009/5/15 aslak hellesoy aslak.helle...@gmail.com: 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

Re: [rspec-users] cucumber-java

2009-05-18 Thread aslak hellesoy
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. Cheers! Raymond Barlow 2009/5/16 aslak hellesoy aslak.helle...@gmail.com Hi all, Does anyone have an example of how to get the cucumber-java

[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 + 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

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 mattvanh...@gmail.com wrote: I'm probably missing something really obvious, but I just upgraded cucumber,

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

2009-05-15 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

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, how

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 remember here... I'm not sure. I saw

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 recognised (see second

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 table values

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 500 is raised. I would clear the file before

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|     table.hashes.each

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 only thing that

[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|        |EUR|        

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 if it is

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 no longer

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

2009-05-12 Thread aslak hellesoy
[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, at 05:29, Jones, Gareth wrote: Hi, I’ve knocked together a JUnit xml

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 thus be argued -

Re: [rspec-users] Sharing common Cuke steps

2009-05-09 Thread aslak hellesoy
On Fri, May 8, 2009 at 10:24 AM, aslak hellesoy aslak.helle...@gmail.com 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 Cucumber gem? Yes. It becomes too big

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 funfx

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 stuff that I

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 to build a library of common, generally useful steps

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 ingowe...@gmail.com 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] Features failing to run correctly under 0.3.2

2009-05-07 Thread aslak hellesoy
aslak hellesoy aslak.helle...@gmail.com On Wed, May 6, 2009 at 9:20 AM, Andrew Premdas aprem...@gmail.com 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

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 that's the

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 Then /.../ do

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 aprem...@gmail.com 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

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

[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 ___

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

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 m...@mikedoel.com 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,

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 li...@ruby-forum.com 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

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:

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 li...@ruby-forum.com 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

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 you can file

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

2009-04-29 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 scenarios.

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

2009-04-29 Thread aslak hellesoy
On Sun, Apr 26, 2009 at 6:32 AM, aslak hellesoy aslak.helle...@gmail.comwrote: 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 and I've been introducing a java team to real

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 li...@ruby-forum.comwrote: 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

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

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? A java

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-users

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 caption ...' 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 this

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 li...@ruby-forum.com 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

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 aslak.helle...@gmail.comwrote: On Sat, Apr 25, 2009 at 5:00 PM, Phlip phlip2...@gmail.com wrote: Aslak Hellesøy wrote: require File.dirname(__FILE__) + '/../test_helper' class CukeFeatureParser ActiveSupport::TestCase def

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, which

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

2009-04-28 Thread aslak hellesoy
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 aslak.helle...@gmail.com wrote: Hi -- is it possible to set before and after blocks for individual feature files? Yes. Use tagged

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

2009-04-28 Thread aslak hellesoy
, 7:08 am, aslak hellesoy aslak.helle...@gmail.com wrote: 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

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

2009-04-27 Thread aslak hellesoy
Hi, I am planning to use cucumber-java for my java project for automated testing. I would like to know if there is any option in cucumber, by which we can explicitly provide dependency among running scenarios. For example: There is not, and there probably never will be. With any testing

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 phlip2...@gmail.com 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 =

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: I know this is

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 aprem...@gmail.com 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

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 rick.denat...@gmail.comwrote: On Mon, Apr 27, 2009 at 8:13 AM, Rick DeNatale rick.denat...@gmail.com wrote: On Sun, Apr 26, 2009 at 11:38 PM, Ben Mabey b...@benmabey.com wrote: Rick DeNatale wrote: I finally plunked down for the beta RSpec

[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] 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 and Så

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 with .NET

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

2009-04-27 Thread aslak hellesoy
to make the change. I would do something like this: http://gist.github.com/102586 2009/4/27 aslak hellesoy aslak.helle...@gmail.com On Mon, Apr 27, 2009 at 2:00 PM, Andrew Premdas aprem...@gmail.comwrote: Currently I have a very simple constants implementation being loaded as a Rails

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 eclipse

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 that, and the

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

2009-04-27 Thread aslak hellesoy
of this thread: http://www.nabble.com/AfterCurrentScenario-block-td23100686.html Andrew 2009/4/27 aslak hellesoy aslak.helle...@gmail.com 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

  1   2   3   4   5   >