Re: [rspec-users] cucumber and openid

2008-09-01 Thread aslak hellesoy
On Mon, Sep 1, 2008 at 9:25 PM, Priit Tamboom [EMAIL PROTECTED] wrote: Hi! I'm new to Cucumber/Story Runner, but not so new to Rspec in general. I googled a lot before posting :-) I would like to mock openid consumer however I'm running out of ideas how to access session. I know I should

Re: [rspec-users] Cucumber: GivenScenario doesn't seem to work

2008-09-01 Thread aslak hellesoy
On Mon, Sep 1, 2008 at 7:12 PM, Matt Wynne [EMAIL PROTECTED] wrote: I'm hardly a story-runner expert, so I may be making a dumb mistake here... I'm trying to get one scenario to run another as part of its Given clause. It looks like this: Scenario: Admin user merges two venues GivenScenario

Re: [rspec-users] Cucumber: Before(:all)

2008-09-02 Thread aslak hellesoy
On Tue, Sep 2, 2008 at 3:50 PM, Matt Wynne [EMAIL PROTECTED] wrote: Is there a way right now to run some setup code once after environment.rb has loaded but before all the scenarios are run? Yes. Just use Ruby :-) Put it at the main level in one of your ruby files under steps/ And how about

Re: [rspec-users] Cucumber: Before(:all)

2008-09-02 Thread aslak hellesoy
On Tue, Sep 2, 2008 at 4:53 PM, Matt Wynne [EMAIL PROTECTED] wrote: On 2 Sep 2008, at 15:24, aslak hellesoy wrote: On Tue, Sep 2, 2008 at 3:50 PM, Matt Wynne [EMAIL PROTECTED] wrote: Is there a way right now to run some setup code once after environment.rb has loaded but before all

Re: [rspec-users] RSpec sundry questions

2008-09-02 Thread aslak hellesoy
On Tue, Sep 2, 2008 at 11:05 PM, Greg Hauptmann [EMAIL PROTECTED] wrote: Hi, Q1 - Can I assume that the core testing framework (e.g. rails unit testing versus RSpec) is a kind of separate issue to whether you using mocking or not? i.e. you could use Mocha with either the rails unit test

Re: [rspec-users] story vs feature (was Documentation for Plain-Text Stories)

2008-09-04 Thread aslak hellesoy
On Thu, Sep 4, 2008 at 3:37 PM, Rick DeNatale [EMAIL PROTECTED] wrote: On Sat, Aug 30, 2008 at 2:31 PM, Scott Taylor [EMAIL PROTECTED] wrote: On Aug 30, 2008, at 2:12 PM, Tero Tilus wrote: 2008-08-30 17:02, Matt Wynne: RuBehave Now _that's_ cool! I love it! Personally, I always liked

Re: [rspec-users] Best practices for sharing state between story steps?

2008-09-09 Thread aslak hellesoy
On Tue, Sep 9, 2008 at 2:21 PM, Dan North [EMAIL PROTECTED] wrote: Hi Jim. I guess I'm not a purist then - that looks fine to me, and it's probably something I would consider doing too. The thing to bear in mind is that there is magic going on when you run steps. Each step in a scenario is

Re: [rspec-users] cucumber - mark a step as pending

2008-09-09 Thread aslak hellesoy
On Tue, Sep 9, 2008 at 7:16 PM, David Chelimsky [EMAIL PROTECTED] wrote: Aslak - I think Matt is looking for this: Given /blah/ do pending end I'm not crazy about this feature. We already have a pending mechanism for steps (not defining them). What does this bring to the table over just

Re: [rspec-users] cucumber - mark a step as pending

2008-09-09 Thread aslak hellesoy
On Tue, Sep 9, 2008 at 7:52 PM, Matt Wynne [EMAIL PROTECTED] wrote: Yeah the trouble is it fails with the following error: Spec::Example::ExamplePendingError Which cucumber doesn't understand as anything other than a complete fail. Our workaround we've arrived at (thanks Aslak for pointing

Re: [rspec-users] Cucumber and fixtures/FixtureReplacement

2008-09-09 Thread aslak hellesoy
On Tue, Sep 9, 2008 at 7:45 PM, Matt Wynne [EMAIL PROTECTED] wrote: Remember these things should use transactions, and may do that by default - the database will be wiped clean once the features have run. FWIW, When Cucumber is used with Rails it runs all scenarios in a transaction. I haven't

Re: [rspec-users] Best practices for sharing state between story steps?

2008-09-09 Thread aslak hellesoy
On Tue, Sep 9, 2008 at 8:28 PM, Jim Morris [EMAIL PROTECTED] wrote: Dan North wrote: Hi Jim. I guess I'm not a purist then - that looks fine to me, and it's probably something I would consider doing too. I'd never call you a purist Dan ;) But I do feel less dirty now, although after

Re: [rspec-users] Best practices for sharing state between story steps?

2008-09-09 Thread aslak hellesoy
On Tue, Sep 9, 2008 at 8:52 PM, Jim Morris [EMAIL PROTECTED] wrote: aslak hellesoy wrote: The debate seems to be whether step definitions should be stateful or not. In practice this is achieved by setting one or more @variables in a step and reusing them in a different step - all within

Re: [rspec-users] cucumber - mark a step as pending

2008-09-09 Thread aslak hellesoy
On Tue, Sep 9, 2008 at 8:46 PM, David Chelimsky [EMAIL PROTECTED] wrote: On Tue, Sep 9, 2008 at 12:47 PM, aslak hellesoy [EMAIL PROTECTED] wrote: On Tue, Sep 9, 2008 at 7:16 PM, David Chelimsky [EMAIL PROTECTED] wrote: Aslak - I think Matt is looking for this: Given /blah/ do pending end

Re: [rspec-users] Best practices for sharing state between story steps?

2008-09-10 Thread aslak hellesoy
On Tue, Sep 9, 2008 at 11:31 PM, Jim Morris [EMAIL PROTECTED] wrote: aslak hellesoy wrote: There is persistent state (database) and object state (the object that serves as a context for a scenario). I'm not saying that state in and of itself is bad. However, *coupling* is bad

[rspec-users] Feature Injection

2008-09-11 Thread aslak hellesoy
Hi - just thought I'd share this great blog post by Liz Keogh with you all: http://lizkeogh.com/2008/09/10/feature-injection-and-handling-technical-stories/ Aslak ___ rspec-users mailing list rspec-users@rubyforge.org

Re: [rspec-users] save stack trace in story runner

2008-09-11 Thread aslak hellesoy
On Thu, Sep 11, 2008 at 11:47 AM, aidy lewis [EMAIL PROTECTED] wrote: Hi, I am still using story-runner and have not moved over to Cucumber. HTML files are coloured created, however I am unable to save the stack trace when errors occur. What are others doing? Will the move to Cucumber help

Re: [rspec-users] cucumber gem install

2008-09-12 Thread aslak hellesoy
On Fri, Sep 12, 2008 at 1:52 PM, aidy lewis [EMAIL PROTECTED] wrote: Hi, I am having problem with the cucumber gem install gem sources --add http://gems.github.com/ gem install aslakhellesoy-cucumber = C:\gem install aslakhellesoy-cucumber ERROR: While executing gem ... (Errno::ENOENT)

Re: [rspec-users] RCov / RSpec segfaults on Ubuntu

2008-09-13 Thread aslak hellesoy
On Sat, Sep 13, 2008 at 12:36 PM, Matt Wynne [EMAIL PROTECTED] wrote: Hi all, I appreciate that this is not an RSpec question, but I wondered if anyone out there can offer some pointers. We're using the latest versions of RSpec and RCov, and ruby --version says this (on the Ubuntu build

Re: [rspec-users] Cucumber - Ambiguous steps

2008-09-15 Thread aslak hellesoy
On Mon, Sep 15, 2008 at 2:40 PM, David Chelimsky [EMAIL PROTECTED] wrote: On Mon, Sep 15, 2008 at 3:54 AM, Joseph Wilk [EMAIL PROTECTED] wrote: Then /I should see (.*) in the page/ do |text| That should raise an AmbiguousStep error if you also have /I should see (.*)/. Oops sorry, thanks

Re: [rspec-users] Cucumber - Ambiguous steps

2008-09-15 Thread aslak hellesoy
On Mon, Sep 15, 2008 at 2:56 PM, David Chelimsky [EMAIL PROTECTED] wrote: On Mon, Sep 15, 2008 at 7:49 AM, aslak hellesoy [EMAIL PROTECTED] wrote: On Mon, Sep 15, 2008 at 2:40 PM, David Chelimsky [EMAIL PROTECTED] wrote: On Mon, Sep 15, 2008 at 3:54 AM, Joseph Wilk [EMAIL PROTECTED] wrote

Re: [rspec-users] Cucumber - Ambiguous steps

2008-09-15 Thread aslak hellesoy
On Mon, Sep 15, 2008 at 3:07 PM, Joseph Wilk [EMAIL PROTECTED] wrote: David Chelimsky wrote: On Mon, Sep 15, 2008 at 3:54 AM, Joseph Wilk [EMAIL PROTECTED] wrote: You can still use non-regular expression steps in Cucumber: I've been unable to think of a good example where I would want only a

Re: [rspec-users] Cucumber - Ambiguous steps

2008-09-15 Thread aslak hellesoy
On Mon, Sep 15, 2008 at 3:27 PM, David Chelimsky [EMAIL PROTECTED] wrote: On Mon, Sep 15, 2008 at 8:21 AM, David Chelimsky [EMAIL PROTECTED] wrote: On Mon, Sep 15, 2008 at 8:13 AM, aslak hellesoy [EMAIL PROTECTED] wrote: On Mon, Sep 15, 2008 at 3:07 PM, Joseph Wilk [EMAIL PROTECTED] wrote

Re: [rspec-users] Cucumber - Ambiguous steps

2008-09-15 Thread aslak hellesoy
On Mon, Sep 15, 2008 at 4:00 PM, David Chelimsky [EMAIL PROTECTED] wrote: On Mon, Sep 15, 2008 at 8:55 AM, Joseph Wilk-2 [EMAIL PROTECTED] wrote: I like this much better. -Guiding people to use regexen properly is better than redefining their semantics. Well put. Do you mind if I add this

Re: [rspec-users] Cucumber - stub! or mock?

2008-09-15 Thread aslak hellesoy
On Mon, Sep 15, 2008 at 11:01 PM, Joseph Wilk [EMAIL PROTECTED] wrote: Tim Glen wrote: 1. Is there a way to stub out the model to return some fixture-type records? 2. Does anyone have an idea as to how we could refactor this into a better pattern? Those 2 projects are pretty specific to the

Re: [rspec-users] help on skipping a before_filter for a story

2008-09-17 Thread aslak hellesoy
On Tue, Sep 9, 2008 at 2:33 AM, Eric Harris-Braun [EMAIL PROTECTED] wrote: Hi folks, I'm hoping for a bit of help on best-practices for skipping a There are no practices for this (or anything else) that are better than any other practice. before_filter when running a particular step.

Re: [rspec-users] [ANN] Cucumber Textmate Bundle

2008-09-17 Thread aslak hellesoy
On Wed, Sep 17, 2008 at 8:42 PM, Ben Mabey [EMAIL PROTECTED] wrote: Hey all, I am in the process of porting my RSpec Story Textmate bundle over to Cucumber. So far I have the syntax highlighting, file switching, and running of the features and single scenarios done. So not all the

Re: [rspec-users] webrat the way to go?

2008-09-17 Thread aslak hellesoy
On Tue, Sep 9, 2008 at 6:42 AM, DyingToLearn [EMAIL PROTECTED] wrote: Hi, Here is the short version of my question: For stories, is webrat the way to go? How many of you use webrat? How many don't? I use it and love it. When it doesn't do what I need (rarely) it's trivial to drop down an

Re: [rspec-users] rspec on javascript links

2008-09-17 Thread aslak hellesoy
On Tue, Sep 9, 2008 at 1:21 AM, saltzmanjoelh [EMAIL PROTECTED] wrote: I have a lot of AJAX calls that make new divs or update information on the page. Is there anyway to test and if the right infomation has been received or displayed after an onclick action? If that makes sense?... If you

Re: [rspec-users] [ANN] Cucumber Textmate Bundle

2008-09-17 Thread aslak hellesoy
On Wed, Sep 17, 2008 at 10:56 PM, Ben Mabey [EMAIL PROTECTED] wrote: aslak hellesoy wrote: On Wed, Sep 17, 2008 at 8:42 PM, Ben Mabey [EMAIL PROTECTED] wrote: Hey all, I am in the process of porting my RSpec Story Textmate bundle over to Cucumber. So far I have the syntax highlighting, file

Re: [rspec-users] [ANN] Cucumber Textmate Bundle

2008-09-17 Thread aslak hellesoy
On Wed, Sep 17, 2008 at 11:35 PM, Ben Mabey [EMAIL PROTECTED] wrote: aslak hellesoy wrote: On Wed, Sep 17, 2008 at 10:56 PM, Ben Mabey [EMAIL PROTECTED] wrote: aslak hellesoy wrote: On Wed, Sep 17, 2008 at 8:42 PM, Ben Mabey [EMAIL PROTECTED] wrote: Hey all, I am in the process

Re: [rspec-users] Prepare for newbie-ness

2008-09-17 Thread aslak hellesoy
On Tue, Sep 16, 2008 at 7:00 PM, Martin Streicher [EMAIL PROTECTED] wrote: A few questions from someone new to rspec. 1/ I have several complex yet largely independent models using rspec to test internals and computation methods. I am about to tackle models that have several ties to each

Re: [rspec-users] Including matchers in Cucumber

2008-09-22 Thread aslak hellesoy
On Mon, Sep 22, 2008 at 1:21 PM, Ashley Moran [EMAIL PROTECTED] wrote: Hi Where do you include matcher modules in Cucumber so they don't pollute Object? ie so module TwitterMatchers class HaveUserStatus # ... end def have_user_status(user, status)

Re: [rspec-users] plans for cucumber

2008-09-23 Thread aslak hellesoy
On Tue, Sep 23, 2008 at 2:07 PM, Brandon Keepers [EMAIL PROTECTED] wrote: On Mon, Sep 22, 2008 at 9:52 AM, David Chelimsky [EMAIL PROTECTED] wrote: Hey all, Let's make this official. We're planning to replace the RSpec Story Runner with Cucumber. The rspec-1.1.5 release will still include

Re: [rspec-users] Story Runner = Cucumber(duplicate steps)!

2008-09-23 Thread aslak hellesoy
On Tue, Sep 23, 2008 at 6:18 PM, aidy lewis [EMAIL PROTECTED] wrote: Hi, I am currently moving over my Watir Story Runner tests over to Cucumber. However, I have a verification_steps.rb that holds these two steps Then the user is at '$title' page do |title|

Re: [rspec-users] Running cucumber distributed across hardware

2008-09-24 Thread aslak hellesoy
On Wed, Sep 24, 2008 at 7:31 AM, Bryan Helmkamp [EMAIL PROTECTED] wrote: On Mon, Sep 22, 2008 at 9:57 PM, Scott Taylor [EMAIL PROTECTED] wrote: Let me know if you come up with something - I'd be interested in contributing to such a project. I started working on a project I'm calling Testjour

Re: [rspec-users] Cucumber: listing redundant step matchers

2008-09-24 Thread aslak hellesoy
On Wed, Sep 24, 2008 at 10:30 AM, Matt Wynne [EMAIL PROTECTED] wrote: Is there any way currently to list out the step matchers that were never used when you run a set of features? This would help me keep our step files tidy. If not, some pointers to how I might write such a thing would be cool

Re: [rspec-users] webrat the way to go?

2008-09-24 Thread aslak hellesoy
On Wed, Sep 24, 2008 at 9:43 PM, Fernando Perez [EMAIL PROTECTED] wrote: I'd like to know: in a nutshell what's the difference between Webrat and Cucumber? They do completely different things. Webrat is a library that allows you to interact with a Rails web app using a high level API similar

Re: [rspec-users] Language configuration in cucumber

2008-09-26 Thread aslak hellesoy
On Fri, Sep 26, 2008 at 1:19 PM, Juanma Cervera [EMAIL PROTECTED] wrote: I have just installed cucumber in a rails application following the instructions in the wiki http://github.com/aslakhellesoy/cucumber/wikis/ruby-on-rails How I have to specify the configuration option for using cucumber

Re: [rspec-users] Language configuration in cucumber

2008-09-26 Thread aslak hellesoy
/066b1c9f133322e2a8cf2e3ef9cbd98ac4f3cb75 Aslak And all works. aslak hellesoy wrote: On Fri, Sep 26, 2008 at 1:19 PM, Juanma Cervera [EMAIL PROTECTED] wrote: ruby script/cucumber --help There you should see that you can use --language es. You can put this in your tasks/cucumber.rake file

Re: [rspec-users] RSpec makes me want to write better code

2008-09-27 Thread aslak hellesoy
On Sat, Sep 27, 2008 at 10:32 PM, David Chelimsky [EMAIL PROTECTED] wrote: On Sat, Sep 27, 2008 at 2:29 PM, Mark Wilden [EMAIL PROTECTED] wrote: On Sat, Sep 27, 2008 at 11:26 AM, Dan North [EMAIL PROTECTED] wrote: It seems these conversations come up time and again because Rails overloads the

Re: [rspec-users] webrat the way to go?

2008-09-29 Thread aslak hellesoy
On Mon, Sep 29, 2008 at 8:46 AM, Willem van den Ende [EMAIL PROTECTED] wrote: On Sun, 2008-09-28 at 22:24 +0200, Willem van den Ende wrote: snip When I go to invitation/new, I see the Subject field, but WebRat doesn't... : snip When I fill in Subject with My invitation subject

Re: [rspec-users] webrat the way to go?

2008-09-29 Thread aslak hellesoy
On Mon, Sep 29, 2008 at 9:07 AM, Willem van den Ende [EMAIL PROTECTED] wrote: Hi Aslak, thanks for responding (more below). On Mon, 2008-09-29 at 08:48 +0200, aslak hellesoy wrote: On Mon, Sep 29, 2008 at 8:46 AM, Willem van den Ende [EMAIL PROTECTED] wrote: On Sun, 2008-09-28 at 22:24

Re: [rspec-users] rspec-ui overlap with cucumber?

2008-09-29 Thread aslak hellesoy
On Mon, Sep 29, 2008 at 11:29 AM, Priit Tamboom [EMAIL PROTECTED] wrote: Hi! I'm using cucumber + selenium and I love it. However I'm looking to add some methods (example: click_and_wait etc) to the lib. Therefore looked around a bit and I got two questions: Firstly about rspec-ui, I'm a

Re: [rspec-users] Lot's o' questions about Cucumbert

2008-09-29 Thread aslak hellesoy
On Mon, Sep 29, 2008 at 3:14 PM, Fernando Perez [EMAIL PROTECTED] wrote: Thanks Dave, I am starting to understand better the workflow to adopt with cucumber and webrat. By the way I am having some issues with the: I should see ... regexp. If what I want to see has double quotes or brackets,

Re: [rspec-users] Cucumber::ArityMismatchError

2008-09-30 Thread aslak hellesoy
On Tue, Sep 30, 2008 at 3:59 PM, aidy lewis [EMAIL PROTECTED] wrote: Hi, We are receiving an ArityMismatchError when we feel we have a valid RegEx error C:/svnprojects/olc_stories/lib/framework/common_steps/verification_steps.rb:48:in `/verify the email with the subject of '[\w\x2E\-\s]*'/'

Re: [rspec-users] Cucumber: please make gem install aslakhellesoy-cucumber or gem install cucumber work again

2008-09-30 Thread aslak hellesoy
On Tue, Sep 30, 2008 at 9:02 PM, Evan David Light [EMAIL PROTECTED] wrote: Subject says most of it. I'd love to use Cucumber in my project but I need to be able to install it in a Rails app and by a particular version number. You can do that with git pull and git checkout. Would it help if

Re: [rspec-users] Cucumber: please make gem install aslakhellesoy-cucumber or gem install cucumber work again

2008-10-01 Thread aslak hellesoy
On Wed, Oct 1, 2008 at 5:11 PM, Chris Flipse [EMAIL PROTECTED] wrote: On Tue, Sep 30, 2008 at 5:20 PM, aslak hellesoy [EMAIL PROTECTED] wrote: On Tue, Sep 30, 2008 at 9:02 PM, Evan David Light [EMAIL PROTECTED] wrote: Subject says most of it. I'd love to use Cucumber in my project but I

Re: [rspec-users] [ANN] Cucumber Textmate Bundle

2008-10-01 Thread aslak hellesoy
On Wed, Oct 1, 2008 at 5:54 PM, Ben Mabey [EMAIL PROTECTED] wrote: Matt Wynne wrote: Is it possible to rename the project maybe? I know you can have dots in the name - e.g. http://github.com/thoughtworks/cruisecontrol.rb though I think I may have heard this was a restriction that was lifted

Re: [rspec-users] Cucumber: please make gem install aslakhellesoy-cucumber or gem install cucumber work again

2008-10-01 Thread aslak hellesoy
On Wed, Oct 1, 2008 at 7:03 PM, Luis Lavena [EMAIL PROTECTED] wrote: On Wed, Oct 1, 2008 at 12:30 PM, Chris Flipse [EMAIL PROTECTED] wrote: On Wed, Oct 1, 2008 at 11:20 AM, aslak hellesoy [EMAIL PROTECTED] wrote: On Wed, Oct 1, 2008 at 5:11 PM, Chris Flipse [EMAIL PROTECTED] wrote: On Tue

Re: [rspec-users] Slides from my talk on Cucumber + Celerity + RSpec tonight

2008-10-01 Thread aslak hellesoy
On Thu, Oct 2, 2008 at 5:30 AM, Ashley Moran [EMAIL PROTECTED] wrote: Hi all Just ran a session known as a huddle in GeekUp terms. GeekUp[1] is a group of monthly events in North West England. The Sheffield one starts with a huddle every month, which is intended to have more audience

Re: [rspec-users] Newbie's question about generated features by cucumber in Rails

2008-10-04 Thread aslak hellesoy
On Sat, Oct 4, 2008 at 6:22 PM, Lian Liming [EMAIL PROTECTED] wrote: Hi all, I am new to rspec and trying to use cucumber to learn writingfeatures. I follow the wiki page http://github.com/aslakhellesoy/cucumber/wikis/ruby-on-rails to start my first feature. The command ruby

[rspec-users] Cucumber 0.1.7 released

2008-10-05 Thread aslak hellesoy
I just released 0.1.7 as a gem. (As usual, it will take a few hours before it rsyncs around the world). Changes are here: http://github.com/aslakhellesoy/cucumber/tree/v0.1.7/History.txt Thanks to everyone who's contributed with feedback and patches! Cheers, Aslak

Re: [rspec-users] cucumber and html reports

2008-10-07 Thread aslak hellesoy
On Tue, Oct 7, 2008 at 6:47 PM, David Chelimsky [EMAIL PROTECTED] wrote: On Tue, Oct 7, 2008 at 11:39 AM, aidy lewis [EMAIL PROTECTED] wrote: Hi, Is there anyway I can cycle through all the features in a folder and pipe to html through the command line? For this:

Re: [rspec-users] cucumber and html reports

2008-10-07 Thread aslak hellesoy
On Tue, Oct 7, 2008 at 6:39 PM, aidy lewis [EMAIL PROTECTED] wrote: Hi, Is there anyway I can cycle through all the features in a folder and pipe to html through the command line? For this: C:\SvnProjects\my_application\features cucumber *.feature --format html my_application.htm I am

Re: [rspec-users] cucumber and html reports

2008-10-07 Thread aslak hellesoy
On Tue, Oct 7, 2008 at 7:14 PM, aidy lewis [EMAIL PROTECTED] wrote: Guys. On 07/10/2008, aidy lewis [EMAIL PROTECTED] wrote: Thanks for your response. That doesn't seem to report for me (maybe it is because one of my tests fails - throws an exception and then writes to the console

Re: [rspec-users] cucumber and fixtures

2008-10-08 Thread aslak hellesoy
On Wed, Oct 8, 2008 at 3:16 PM, Daniel Higginbotham [EMAIL PROTECTED] wrote: Is it possible to use spec fixtures with Cucumber, and if so, how? Google for cucumber fixtures http://www.ruby-forum.com/topic/165215 http://www.ruby-forum.com/topic/165777 Thanks, Daniel Higginbotham -- Posted

Re: [rspec-users] Rspec @ UC Berkley

2008-10-10 Thread aslak hellesoy
On Fri, Oct 10, 2008 at 10:51 AM, Dan North [EMAIL PROTECTED] wrote: That's actually a pretty awesome endorsement. We should put something on the website: Who is using rspec? Good idea! Thanks for doing that, Dan :-) Aslak 2008/10/9 Pat Maddox [EMAIL PROTECTED] Scott Taylor [EMAIL

Re: [rspec-users] Any Plans on Tag support in Cucumber

2008-10-14 Thread aslak hellesoy
On Tue, Oct 14, 2008 at 8:47 AM, wei wei [EMAIL PROTECTED] wrote: Hi, ThoughtWorks just released the auto test toolset Twist, the tagging feature seems pretty useful, http://studios.thoughtworks.com/twist-agile-test-automation/twist-features-and-benefits Tags allow you to organize test

Re: [rspec-users] [cucumber] Is it possbile to access scenario name in steps?

2008-10-14 Thread aslak hellesoy
On Tue, Oct 14, 2008 at 6:40 PM, wei wei [EMAIL PROTECTED] wrote: One of my examples now is like below ### 1001.feature Feature: 1001 1001 is the internal id for QAs to identify case Scenario: 1001 Given the title is function1_1001 . ### function1.steps Given /the title

Re: [rspec-users] Cucumber: Migrating RSpec Story Listeners to Cucumber

2008-10-14 Thread aslak hellesoy
On Tue, Oct 14, 2008 at 9:52 PM, Zach Dennis [EMAIL PROTECTED] wrote: On Tue, Oct 14, 2008 at 3:39 PM, David Chelimsky [EMAIL PROTECTED] wrote: On Tue, Oct 14, 2008 at 1:49 PM, aslak hellesoy [EMAIL PROTECTED] wrote: On Tue, Oct 14, 2008 at 5:29 PM, Michael Latta [EMAIL PROTECTED] wrote: Why

Re: [rspec-users] Cucumber: Migrating RSpec Story Listeners to Cucumber

2008-10-14 Thread aslak hellesoy
On Tue, Oct 14, 2008 at 5:29 PM, Michael Latta [EMAIL PROTECTED] wrote: Why use a cucumber_scenario method when the After method could just pass it to the block? Good idea! Michael On Oct 14, 2008, at 1:31 AM, aslak hellesoy wrote: On Tue, Oct 14, 2008 at 9:38 AM, Thomas Marek [EMAIL

Re: [rspec-users] extend Cucumber's arguments

2008-10-15 Thread aslak hellesoy
On Wed, Oct 15, 2008 at 12:26 PM, aidy lewis [EMAIL PROTECTED] wrote: Hi, We would like to pass in some additional command line arguments into Cucumber (for example to specify which browser to run the tests with). Is there any way to extend Cucumber's arguments, or could you suggest an

Re: [rspec-users] Cucumber standard base setup?

2008-10-18 Thread aslak hellesoy
On Sat, Oct 18, 2008 at 2:34 AM, William Tozier [EMAIL PROTECTED] wrote: I'm trying to set up cucumber so we can try it in some Ruby automation scripts I'm working on. These will be straight Ruby, for use in BBEdit and TextMate (on the Mac). NOT Rails. The big early-stage stumbling block

Re: [rspec-users] Cucumber, more examples, tabular data input sets

2008-10-18 Thread aslak hellesoy
On Sat, Oct 18, 2008 at 10:25 PM, Stephen Eley [EMAIL PROTECTED] wrote: On Sat, Oct 18, 2008 at 2:13 PM, Zach Dennis [EMAIL PROTECTED] wrote: Given Joe is a staff member without the '$privilege$' privilege When I $request$ $path$ as Joe Then I am notified that access was denied My only

Re: [rspec-users] Running Cucumber with a Rails Rake task

2008-10-18 Thread aslak hellesoy
On Sat, Oct 18, 2008 at 10:33 PM, Ben Emson [EMAIL PROTECTED] wrote: Hi All I've just started experimenting with Cucumber and its great. However I wasn't quite sure how I should integrate it into my Rails application. Have you read this?

Re: [rspec-users] Too Clever?

2008-10-23 Thread aslak hellesoy
On Thu, Oct 23, 2008 at 11:20 PM, Michael Latta [EMAIL PROTECTED] wrote: That works when running one at a time. When I want to run all my specs how do I ensure the requires are applied to the appropriate features? It is not all my stories, only a subset that are dual-purposed. Do I need to

Re: [rspec-users] Too Clever?

2008-10-23 Thread aslak hellesoy
On Thu, Oct 23, 2008 at 7:20 PM, Michael Latta [EMAIL PROTECTED] wrote: It appears we were too clever, but I think this would be a reasonable use of stories. We tried to have a story file run with 2 different sets of steps to use the same story against both the UI using selenium and against

Re: [rspec-users] cucumber feature description

2008-10-26 Thread aslak hellesoy
On Sun, Oct 26, 2008 at 3:56 PM, Stephen Eley [EMAIL PROTECTED] wrote: On Sat, Oct 25, 2008 at 7:19 PM, Ben Mabey [EMAIL PROTECTED] wrote: A more qualified person may want to answer your question, but my short explanation of the change of the default narrative layout is to state the business

Re: [rspec-users] Testing item links in Webrat (was: Cucumber)

2008-10-26 Thread aslak hellesoy
On Sun, Oct 26, 2008 at 11:30 PM, Mark Thomson [EMAIL PROTECTED] wrote: I have an index template that contains a tabulated list of database items, each of which has an associated display link that enables the item to be displayed via a show action. In Cucumber I know how to test that the show

Re: [rspec-users] Should acceptance tests be run against a production environment?

2008-10-29 Thread aslak hellesoy
On Tue, Oct 28, 2008 at 6:08 PM, Pat Maddox [EMAIL PROTECTED] wrote: When you do end-to-end acceptance testing with Selenium, I think it should be run against a production environment. Not THE production environment, mind you, but simply a new Rails app running with RAILS_ENV=production.

Re: [rspec-users] Working outside-in with Cucumber and RSpec

2008-10-29 Thread aslak hellesoy
On Wed, Oct 29, 2008 at 10:32 PM, David Chelimsky [EMAIL PROTECTED] wrote: On Tue, Oct 28, 2008 at 2:32 AM, Ashley Moran [EMAIL PROTECTED] wrote: On Oct 27, 2008, at 5:20 pm, Pat Maddox wrote: When it comes to controllers specs, mocks provide the most value by isolating from the model and

Re: [rspec-users] Gems installation

2008-10-29 Thread aslak hellesoy
On Mon, Oct 27, 2008 at 3:54 PM, Juanma Cervera [EMAIL PROTECTED] wrote: Hello. I have a problem trying to use cucumber with webrat. I thought I could use the gems versions of rspec, rspec-rails, cucumber and webrat, in fact I think that I could manage to do it two weeks ago, but now that I

Re: [rspec-users] Cucumber step FIT-like tables

2008-10-30 Thread aslak hellesoy
On Tue, Oct 28, 2008 at 11:43 AM, aidy lewis [EMAIL PROTECTED] wrote: Hi Alsak, 2008/10/27 Aslak Hellesøy [EMAIL PROTECTED]: What version/revision? I am on 0.1.7; I guess I need to upgrade. If this is the case, will I need to use the Trunk or is there a gem? Changelog:

Re: [rspec-users] [Cucumber]: require features from mutliple folders

2008-10-30 Thread aslak hellesoy
On Wed, Oct 29, 2008 at 4:39 PM, aidy lewis [EMAIL PROTECTED] wrote: Hi, I have different projects with features related to those projects in different folders /project_1 /project_2 /steps The steps cover both projects How do I get Cucumber to require all features within both

Re: [rspec-users] Cucumber changes between 0.1.8 and edge

2008-11-01 Thread aslak hellesoy
On Sat, Nov 1, 2008 at 6:02 AM, Pau Cor [EMAIL PROTECTED] wrote: When I run `rake features` after adding cucumber v0.1.8 to my rails app (as a plugin), I get success. But when I upgrade to edge, I get this error:

Re: [rspec-users] Caboosers drop RSpec

2008-11-04 Thread aslak hellesoy
On Tue, Nov 4, 2008 at 4:20 PM, Steven Baker [EMAIL PROTECTED] wrote: Never let the facts get it the way of a good headline? This is typical of rubyflow. I wouldn't worry about it too much. It was only a matter of time before the unfortunate political climate of the Rails community started

Re: [rspec-users] Caboosers drop RSpec

2008-11-04 Thread aslak hellesoy
On Tue, Nov 4, 2008 at 10:39 AM, Tom Stuart [EMAIL PROTECTED] wrote: Hi, Any responses to http://blog.caboo.se/articles/2008/11/4/we-ve-stopped-using-rspec ? How much of this is due to legitimate bugs/problems versus unfortunate circumstances? Feels kind of worrying that they haven't been

Re: [rspec-users] Cucumber: Why rake features needs to call db:test:prepare?

2008-11-04 Thread aslak hellesoy
On Wed, Nov 5, 2008 at 12:16 AM, Fernando Perez [EMAIL PROTECTED] wrote: I am missing something here. Using PostgreSQL, when I remove this line from the rake task, I don't see the DB being populated although I do invoke create! on some models. Vanilla Rails test:* tasks do the same, as do the

Re: [rspec-users] Caboosers drop RSpec

2008-11-04 Thread aslak hellesoy
On Wed, Nov 5, 2008 at 1:01 AM, Ashley Moran [EMAIL PROTECTED] wrote: On Nov 04, 2008, at 11:09 pm, Dr Nic wrote: On Nov 5, 1:55 am, Luis Lavena [EMAIL PROTECTED] wrote: Given a problem I have with RSpec And I post to the mailing list When noone answer my post And has been N days since I

Re: [rspec-users] cucumber docs

2008-11-06 Thread aslak hellesoy
On Thu, Nov 6, 2008 at 11:51 PM, Tim Walker [EMAIL PROTECTED] wrote: Thanks guys, I may have overlooked some of the stuff there. A lot of what I was looking for was in the Step Organization page. Still not clear on some of the dynamic substitutions and syntax, etc. I just jotted down some

Re: [rspec-users] rspec gem vs rspec plugin vs rspec-rails plugin ???

2008-11-07 Thread aslak hellesoy
On Fri, Nov 7, 2008 at 12:56 PM, aslak hellesoy [EMAIL PROTECTED] wrote: On Fri, Nov 7, 2008 at 11:23 AM, Greg Hauptmann [EMAIL PROTECTED] wrote: so just to be clear are you saying: * rspec gem = All that is need for Ruby on Rails Rspec work * 'rspec plugin' = not needed (functionality

Re: [rspec-users] rspec gem vs rspec plugin vs rspec-rails plugin ???

2008-11-07 Thread aslak hellesoy
On Fri, Nov 7, 2008 at 11:23 AM, Greg Hauptmann [EMAIL PROTECTED] wrote: so just to be clear are you saying: * rspec gem = All that is need for Ruby on Rails Rspec work * 'rspec plugin' = not needed (functionality in gem) * 'rspec-rails' plugin = not needed (functionality in gem) is this

Re: [rspec-users] Sharing the little dialects we write in Cucumber

2008-11-08 Thread aslak hellesoy
On Sat, Nov 8, 2008 at 11:01 AM, Matt Wynne [EMAIL PROTECTED] wrote: The common_webrat.rb steps file that comes with cucumber when you add it to rails really inspired our team. We've extended it a fair bit to do various other things to check the content of a page such as [1] which enable us

Re: [rspec-users] Installing rspec, cucumber, et al.

2008-11-11 Thread aslak hellesoy
On Tue, Nov 11, 2008 at 9:00 PM, James B. Byrne [EMAIL PROTECTED] wrote: I am confused. I ran this in my rails project root: $ git submodule status 3b76fda741dfe2de84b4d5a33766653589ad36fb vendor/plugins/rspec (1.1.4-22-g3b76fda) 5adb47e5bed39569b435fadf8c34bd836d4287d3

Re: [rspec-users] Cucumber Scaffolds

2008-11-12 Thread aslak hellesoy
On Wed, Nov 12, 2008 at 5:17 PM, James B. Byrne [EMAIL PROTECTED] wrote: I have installed all of the various bit and pieces for rspec and cucumber and have used: script/generate feature Frooble name color description To create a dummy feature and related steps. Now, while I have been

Re: [rspec-users] Cucumber: The Mysteries of Before(), After(), World() etc

2008-11-12 Thread aslak hellesoy
On Wed, Nov 12, 2008 at 2:12 PM, Matt Wynne [EMAIL PROTECTED] wrote: My use case is that I want to be able to use a Logging::Logger[1] within my scenario code. I can create the logger explicitly within the step block, but this is a hackaround. I think I could monkey-patch

Re: [rspec-users] Cucumber: The Mysteries of Before(), After(), World() etc

2008-11-13 Thread aslak hellesoy
On Thu, Nov 13, 2008 at 3:59 PM, Peter Jaros [EMAIL PROTECTED] wrote: On Wed, Nov 12, 2008 at 8:59 AM, David Chelimsky [EMAIL PROTECTED] wrote: On Wed, Nov 12, 2008 at 7:30 AM, aslak hellesoy [EMAIL PROTECTED] wrote: World do world = Object.new world.extend(Logging::Logger) world end

Re: [rspec-users] Selecting a date with Webrat

2008-11-13 Thread aslak hellesoy
On Thu, Nov 13, 2008 at 8:20 PM, David Chelimsky [EMAIL PROTECTED] wrote: On Thu, Nov 13, 2008 at 1:14 PM, Ben Mabey [EMAIL PROTECTED] wrote: Mike Sassak wrote: Hi, I'm writing a scenario that needs to select date values from a form created with Rails' form_for() method, and I'm looking for

Re: [rspec-users] `add_scenario': wrong, number of arguments (1 for 2)

2008-11-18 Thread aslak hellesoy
On Wed, Nov 19, 2008 at 2:46 AM, Bret Pettichord [EMAIL PROTECTED] wrote: Ben Mabey wrote: Are you using the latest cucumber from github? Yes. I did a git pull and reproduced the error right before reporting it. This was fixed three days ago (!?)

Re: [rspec-users] `add_scenario': wrong, number of arguments (1 for 2)

2008-11-18 Thread aslak hellesoy
On Wed, Nov 19, 2008 at 3:03 AM, Bret Pettichord [EMAIL PROTECTED] wrote: Ben Mabey wrote: If that is not the issue please open a ticket on Lighthouse. I tried. lighthouse error elaborate? ___ rspec-users mailing list

Re: [rspec-users] `add_scenario': wrong, number of arguments (1 for 2)

2008-11-19 Thread aslak hellesoy
On Wed, Nov 19, 2008 at 5:23 PM, Bret Pettichord [EMAIL PROTECTED] wrote: aslak hellesoy wrote: On Wed, Nov 19, 2008 at 2:46 AM, Bret Pettichord [EMAIL PROTECTED] wrote: Ben Mabey wrote: Are you using the latest cucumber from github? Yes. I did a git pull and reproduced the error

Re: [rspec-users] specifying which button webrat should press

2008-11-19 Thread aslak hellesoy
On Thu, Nov 20, 2008 at 4:32 AM, Pau Cor [EMAIL PROTECTED] wrote: I was writing a feature in which I had webrat push a button. However, there are many buttons on this page with the same text. I wanted to specify which one would be push in as close a way I could to the way a person would

Re: [rspec-users] LinkedIn Group

2008-11-20 Thread aslak hellesoy
On Thu, Nov 20, 2008 at 11:57 AM, Erik Terpstra [EMAIL PROTECTED] wrote: I really like the idea of LinkedIn BDD and RSpec groups. Is somebody of the core team willing to create these? Ashley Moran has already created an RSpec group: http://www.linkedin.com/groups?about=gid=1300277 Why don't

Re: [rspec-users] Missing method implementation_backtrace

2008-11-23 Thread aslak hellesoy
On Fri, Nov 21, 2008 at 4:20 AM, David Chelimsky [EMAIL PROTECTED]wrote: On Thu, Nov 20, 2008 at 5:47 PM, rubyphunk [EMAIL PROTECTED] wrote: Hi, same problem here. I always used example.implementation_backtrace in a custom formatter to find out to which spec file a passing example

Re: [rspec-users] cucumber question - uninitialized constant creating object in model

2008-11-24 Thread aslak hellesoy
On Sun, Nov 23, 2008 at 6:50 PM, Tim Walker [EMAIL PROTECTED] wrote: Sorry if this is a really basic question. Scanned the past several months archives, didn't see it. When I am running cucumber features I get the error: uninitialized constant Thing (NameError) With step code being

Re: [rspec-users] Cucumber Custom Logging

2008-11-24 Thread aslak hellesoy
On Mon, Nov 24, 2008 at 8:40 PM, James Byrne [EMAIL PROTECTED] wrote: Where and how do you put custom logger statements in cucumber? I understood (more or less) how to do this in rspec in the spec_helper file but I do not know where to start with cucumber. Are you using any particular

Re: [rspec-users] Cucumber Custom Logging

2008-11-24 Thread aslak hellesoy
On Mon, Nov 24, 2008 at 9:00 PM, James Byrne [EMAIL PROTECTED] wrote: aslak hellesoy wrote: On Mon, Nov 24, 2008 at 8:40 PM, James Byrne [EMAIL PROTECTED] wrote: Where and how do you put custom logger statements in cucumber? I understood (more or less) how to do this in rspec

Re: [rspec-users] [Cucumber] single feature run produces duplicate features in HTMl report

2008-11-24 Thread aslak hellesoy
On Mon, Nov 24, 2008 at 7:01 PM, aidy lewis [EMAIL PROTECTED]wrote: Ben, Joseph, 2008/11/24 Joseph Wilk [EMAIL PROTECTED]: aidy lewis wrote: Hi, I am running a number of features once, but for some reason, I am getting duplicate features in the HTML report. Has anyone else

Re: [rspec-users] Spec'ing via features

2008-11-25 Thread aslak hellesoy
On Tue, Nov 25, 2008 at 9:54 PM, James Byrne [EMAIL PROTECTED] wrote: Aslak Hellesøy wrote: Cucumber depends upon RSpec. No it doesn't Aslak Forgive my misapprehension. Sorry - I should never email from my iPhone. What I meant is that Cucumber itself does not have any

Re: [rspec-users] Rake features vs. cucumber features

2008-11-26 Thread aslak hellesoy
On Wed, Nov 26, 2008 at 4:56 PM, James Byrne [EMAIL PROTECTED] wrote: aslak hellesoy wrote: When this is implemented it will be easier to diagnose and fix problems like this. It will give you a hint about other --require options you might want to add. Cheers, Aslak Thank you

<    1   2   3   4   5   >