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

[rspec-users] [rspec] loading specs as an object model without running them

2009-04-29 Thread Marty Andrews
I'd like to load all of my examples into memory without actually running them, so I can traverse the object tree and get descriptions etc.  I'm finding it tricky to figure out how to do that though. There seems to be an inherent assumption in the framework that that examples will actually run. So

Re: [rspec-users] [rspec] loading specs as an object model without running them

2009-04-29 Thread Matt Wynne
On 29 Apr 2009, at 07:23, Marty Andrews wrote: I'd like to load all of my examples into memory without actually running them, so I can traverse the object tree and get descriptions etc. I'm finding it tricky to figure out how to do that though. There seems to be an inherent assumption in the

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

2009-04-29 Thread doug livesey
Bookmarked for later research -- cheers for pointing that out! 2009/4/29 Chris Flipse cfli...@gmail.com I have a subapp that authenticates remotely, and pulls information from the main app using ActiveResource, and a token provided in a cookie, which sounds at least close to what you're

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

2009-04-29 Thread Neema Cheriyath
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 detailed report with all the required information while running

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] Cucumber: Setting Dependency among scenarios

2009-04-29 Thread Neema Cheriyath
Hi Aslak, I have created a new ticket in github for implementing hooks in cucumber_java. Please find the link: http://github.com/aslakhellesoy/cucumber_java/issues/#issue/2 Thanks, Neema -- Posted via http://www.ruby-forum.com/. ___

[rspec-users] Cucumber/Webrat/Selenium + SSL?

2009-04-29 Thread Wincent Colaiuta
Has anybody had any luck getting Cucumber, Webrat and Selenium to play nicely together for SSL sites? My test environment: - nginx front-end accepting SSL requests, proxying them to mongrel back-end - mongrel back-end accepting normal HTTP requests - application routes configured with

Re: [rspec-users] [rspec] loading specs as an object model without running them

2009-04-29 Thread David Chelimsky
On Wed, Apr 29, 2009 at 1:23 AM, Marty Andrews ma...@martyandrews.net wrote: I'd like to load all of my examples into memory without actually running them, so I can traverse the object tree and get descriptions etc.  I'm finding it tricky to figure out how to do that though. There seems to be

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

2009-04-29 Thread Clifford Heath
On 28/04/2009, at 7:23 AM, Kero van Gelder wrote: Hi list Clifford, Looks like installing hoe (which brings in rubyforge and rake) solved the problem below. I just fixed that: Thanks Aslak, that was quick, but... I had to try that, and the 0.3.1 release made that very easy. Didn't help.

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

2009-04-29 Thread WJSimacek
That did the trick. I blew out eclipse and reinstalled my Aptana directly. Re-added my RadRails Plugin and gems Cucumber, RSpec, RSpec- rails and WebRat. There was one clue I found that said when using Cucumber with windows, I should insert the line 1 $KCODE=' ' into my features/support/env.rb

Re: [rspec-users] Noob question

2009-04-29 Thread WJSimacek
There's about 3 more gems you need to install. RSpec, RSpec-rails and WebRat. There's also a great introductory article I found on-line at http://blog.rubyyot.com/2009/01/chores-a-test-driven-website/ I'm only half-step ahead of you and feel your pain. Good luck, Wayne On Apr 28, 12:47 pm,

Re: [rspec-users] [rspec] loading specs as an object model without running them

2009-04-29 Thread Marty Andrews
On 29/04/2009, at 8:54 PM, David Chelimsky wrote: On Wed, Apr 29, 2009 at 1:23 AM, Marty Andrews ma...@martyandrews.net wrote: I'd like to load all of my examples into memory without actually running them, so I can traverse the object tree and get descriptions etc. I'm finding it tricky to

Re: [rspec-users] [rspec] loading specs as an object model without running them

2009-04-29 Thread David Chelimsky
On Wed, Apr 29, 2009 at 6:09 AM, Marty Andrews ma...@martyandrews.net wrote: On 29/04/2009, at 8:54 PM, David Chelimsky wrote: On Wed, Apr 29, 2009 at 1:23 AM, Marty Andrews ma...@martyandrews.net wrote: I'd like to load all of my examples into memory without actually running them, so I

Re: [rspec-users] Noob question

2009-04-29 Thread Korny Sietsma
Presumably you only need these if you are *building* cucumber? If you just want to use cucumber, it should be as simple as gem install cucumber, and it should get all the other dependencies. On my machine it seemed to install treetop, polyglot, and presumably a few others - but I don't have

Re: [rspec-users] [rspec] loading specs as an object model without running them

2009-04-29 Thread Marty Andrews
On 29/04/2009, at 9:41 PM, David Chelimsky wrote: On Wed, Apr 29, 2009 at 6:09 AM, Marty Andrews ma...@martyandrews.net wrote: On 29/04/2009, at 8:54 PM, David Chelimsky wrote: On Wed, Apr 29, 2009 at 1:23 AM, Marty Andrews ma...@martyandrews.net wrote: I'd like to load all of my

[rspec-users] NetBeans with Cucumber module

2009-04-29 Thread aidy lewis
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.languages/0-1

Re: [rspec-users] NetBeans with Cucumber module

2009-04-29 Thread aidy lewis
Aslak, Will do, I just thought someone on the list may have tried it. Aidy 2009/4/29 aslak hellesoy aslak.helle...@gmail.com: 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

Re: [rspec-users] [rspec] loading specs as an object model without running them

2009-04-29 Thread David Chelimsky
On Wed, Apr 29, 2009 at 6:50 AM, Marty Andrews ma...@martyandrews.net wrote: On 29/04/2009, at 9:41 PM, David Chelimsky wrote: On Wed, Apr 29, 2009 at 6:09 AM, Marty Andrews ma...@martyandrews.net wrote: On 29/04/2009, at 8:54 PM, David Chelimsky wrote: On Wed, Apr 29, 2009 at 1:23 AM,

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] [rspec] loading specs as an object model without running them

2009-04-29 Thread Marty Andrews
[snip] I'm really sorry about this, but I just couldn't wait for tonight to add this: http://github.com/dchelimsky/rspec/commit/a4b3aac62e940c50077bdeb7d9ad5ee11e02116d The release *will* have to wait for tonight, but you can easily build the gem locally:

Re: [rspec-users] Noob question

2009-04-29 Thread Chris Flipse
On Wed, Apr 29, 2009 at 7:42 AM, Korny Sietsma ko...@sietsma.com wrote: Presumably you only need these if you are *building* cucumber? If you just want to use cucumber, it should be as simple as gem install cucumber, and it should get all the other dependencies. On my machine it seemed to

Re: [rspec-users] Cucumber/Webrat/Selenium + SSL?

2009-04-29 Thread Brandt Kurowski
On Apr 29, 6:04 am, Wincent Colaiuta w...@wincent.com wrote: Webrat will automatically start the Selenium Java server process and   an instance of Mongrel when a test is run. So there is no way that I   can see to force Webrat to launch the Selenium server process with the   custom Firefox

Re: [rspec-users] Cucumber - Testing ActionMailer

2009-04-29 Thread James Byrne
James Byrne wrote: I have reached this point in testing using email-spec: ... The email To: header value and the current_email_address are the same insofar as I can tell. But the email_spec matcher is not finding that address in the deliveries array. Any ideas as to what I am missing? I

[rspec-users] Is it possible to have autotest running *only* the features not the specs

2009-04-29 Thread Jean-Michel Garnier
Hi, I am joining a project which is using Rails 2.0.2, Rspec as a plugin 1.1.4 The problem is specs take 10 minutes to run and I have no time to optimize them now. I am adding cucumber features and would like to run them with autotest (ZenTest 4.0.0). Is there a way to have autotest running

Re: [rspec-users] Cucumber - Testing ActionMailer

2009-04-29 Thread Ben Mabey
James Byrne wrote: James Byrne wrote: I have reached this point in testing using email-spec: ... The email To: header value and the current_email_address are the same insofar as I can tell. But the email_spec matcher is not finding that address in the deliveries array. Any ideas

[rspec-users] [RSPEC] [CUCUMBER] have autotest running *only* the features

2009-04-29 Thread Jean-Michel Garnier
Hi, I am joining a project which is using Rails 2.0.2, Rspec as a plugin 1.1.4 The problem is specs take 10 minutes to run and I have no time to optimize them now. I am adding cucumber features and would like to run them with autotest (ZenTest 4.0.0). Is there a way to have autotest running

Re: [rspec-users] NetBeans with Cucumber module

2009-04-29 Thread Jean-Michel Garnier
http://www.pmamediagroup.com/2009/04/what-netbeans-651-can-now-recognize-my-cucumber-feature-files/ is another plugin and works well on Nb 6.5.1 JM aidy_lewis wrote: Hi, Aslak twittered this NetBeans Cucumber module : http://members.chello.at/server/modules.html I have tried to

[rspec-users] Cucumber localization

2009-04-29 Thread ik
Hello, I'm trying to localize Cucumber to work with Hebrew. I have added the needed translation to languages.yml I converted the division.feature properly. but when I used the addition.feature cucumber gives me the following error message: $ ../../../bin/cucumber --language=he

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

2009-04-29 Thread Arco
After some consideration, I agree with Aslak's and Ben's advice against keeping context across an entire feature. But I am still not convinced that it makes sense for create a new context for each row of an example table. As a newbie, I expected the Before: block would be run once before the

Re: [rspec-users] Current Evaluation of RSpec

2009-04-29 Thread Rick DeNatale
On Wed, Apr 29, 2009 at 1:09 AM, Stephen Eley sfe...@gmail.com wrote: On Tue, Apr 28, 2009 at 10:57 PM, Nicholas Van Weerdenburg vanwe...@gmail.com wrote: Looking around outside of the book, reading reviews of RSpec on the web seems tricky. Most reviews seem very dated, and as a result are

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

2009-04-29 Thread Andrew Vit
On Apr 29, 2009, at 8:45 AM, Arco wrote: But I am still not convinced that it makes sense for create a new context for each row of an example table. As a newbie, I expected the Before: block would be run once before the scenario, not once before every row of the example table. (so did Ben

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

2009-04-29 Thread Mark Wilden
On Wed, Apr 29, 2009 at 8:45 AM, Arco akl...@gmail.com wrote: Approach A --- Before: Given I have a clean database Scenario Outline: Signup Scenarios Given I start on the login page When I signup as userid Then I should see message Examples: | userid |

Re: [rspec-users] Current Evaluation of RSpec

2009-04-29 Thread Nicholas Van Weerdenburg
On Wed, Apr 29, 2009 at 12:47 PM, Rick DeNatale rick.denat...@gmail.comwrote: On Wed, Apr 29, 2009 at 1:09 AM, Stephen Eley sfe...@gmail.com wrote: On Tue, Apr 28, 2009 at 10:57 PM, Nicholas Van Weerdenburg vanwe...@gmail.com wrote: Looking around outside of the book, reading reviews of

Re: [rspec-users] Current Evaluation of RSpec

2009-04-29 Thread Rick DeNatale
On Wed, Apr 29, 2009 at 2:04 PM, Nicholas Van Weerdenburg vanwe...@gmail.com wrote: Thanks. That's what I'm trying to parse- a lot of people are inspired to blog when something is new, but less so later on, so there is a lot of 2007/early 2008 posts from basic google searches. The evolution

Re: [rspec-users] Noob question

2009-04-29 Thread John Ivanoff
the book The RSpec book has an example where they build an app with just ruby. (Describing Application Behaviour with Cucumber) You can download some sample chapters. http://www.pragprog.com/titles/achbd/the-rspec-book This has been a big help for me. also Railscast (http://railscasts.com/) has

Re: [rspec-users] Noob question

2009-04-29 Thread Korny Sietsma
True, but cucumber is useful for lots of different kinds of projects. I'm currently using it to build a java webapp, so I don't need much beyond cucumber, selenium, and selenium-client. But agreed, if I was in rails-land (sigh) then I'd want webrat and rspec-rails. - Korny p.s. I'm aware webrat

Re: [rspec-users] [rspec] loading specs as an object model without running them

2009-04-29 Thread Kero van Gelder
So basically, I want to do something like this: examples = load_examples_without_running examples.each {|example| puts example.description} [snip] I'm working into a big corporate in Australia, and they are demanding traceability of tests back to requirements. I'm already using Mingle

[rspec-users] Change in API 0.3.1 clarification

2009-04-29 Thread Manu
Hi I am looking at the change in the API in the history.txt and looks like 3 visitor method are now gone. They are replaced by one. Also for Table, the status is not passed anymore... Looking at the current HTML formatter in 0.3.1, the 3 methods are still present and so is the code .

Re: [rspec-users] [rspec] loading specs as an object model without running them

2009-04-29 Thread Marty Andrews
On 30/04/2009, at 7:59 AM, Kero van Gelder wrote: So basically, I want to do something like this: examples = load_examples_without_running examples.each {|example| puts example.description} [snip] I'm working into a big corporate in Australia, and they are demanding traceability of tests

Re: [rspec-users] Noob question

2009-04-29 Thread Ben Mabey
Korny Sietsma wrote: True, but cucumber is useful for lots of different kinds of projects. I'm currently using it to build a java webapp, so I don't need much beyond cucumber, selenium, and selenium-client. I'm curious, with your current setup do you insert data directly into your database

Re: [rspec-users] Noob question

2009-04-29 Thread Korny Sietsma
We are actively debating this very topic :) For most stuff, we create data through the UI. We have a Before block that prunes the database back to a known state before each scenario, using the ruby 'sequel' library. It's pretty fast, but it does mean we have to be careful in our selenium, that

[rspec-users] [ANN] rspec 1.2.5 Released

2009-04-29 Thread David Chelimsky
rspec version 1.2.5 has been released! * http://rspec.info * http://rubyforge.org/projects/rspec * http://github.com/dchelimsky/rspec/wikis * rspec-de...@rubyforge.org Behaviour Driven Development for Ruby. Changes: ### Version 1.2.5 / 2009-04-29 * enhancements * name argument to mock/stub

[rspec-users] [ANN] rspec-rails 1.2.5 Released

2009-04-29 Thread David Chelimsky
rspec-rails version 1.2.5 has been released! * http://rspec.info * http://rubyforge.org/projects/rspec * http://github.com/dchelimsky/rspec-rails * http://wiki.github.com/dchelimsky/rspec/rails * rspec-de...@rubyforge.org Behaviour Driven Development for Ruby on Rails. Changes: ### Version

Re: [rspec-users] Noob question

2009-04-29 Thread Ben Mabey
Korny Sietsma wrote: We are actively debating this very topic :) For most stuff, we create data through the UI. We have a Before block that prunes the database back to a known state before each scenario, using the ruby 'sequel' library. It's pretty fast, but it does mean we have to be careful

Re: [rspec-users] Noob question

2009-04-29 Thread Korny Sietsma
We did think about using JRuby to write data through the domain - unfortunately it looked fiddly, especially as there are quite a few things our ruby code wants to do that the domain doesn't cover. For example, mass deleting data - in the domain, almost everything is soft-deleted, and everything