Re: [rspec-users] [Cucumber, Rails] Testing arbitrary post action parameters

2009-01-18 Thread Pat Maddox
On Sat, Jan 17, 2009 at 6:47 PM, James Byrne wrote: > When I used the form that Pat provided > put users_url(user), :user => {:administrator => true} The reason this didn't work originally is because it was supposed to be user_url, not users_url. My most recent post had the fix, but I forgot to

Re: [rspec-users] [OT] please prefix your subject lines

2009-01-18 Thread waseem ahmad
On Sun, Jan 18, 2009 at 1:26 AM, Ben Mabey wrote: > On 1/17/09 12:46 PM, Matt Wynne wrote: > >> >> I thought this was worth preserving so I stuck it up on the RSpec wiki: >> >> http://wiki.github.com/dchelimsky/rspec/rspec-mailing-list >> >> >> Good idea. I have linked to that page from Cucumbe

Re: [rspec-users] [Cucumber] Struggling with "multiple step definitions"

2009-01-18 Thread Bart Zonneveld
On 18 jan 2009, at 01:25, aslak hellesoy wrote: On Sat, Jan 17, 2009 at 10:48 PM, Bart Zonneveld > wrote: Hey gang, I find myself struggling with multiple step definitions in cucumber all the time. I regularly test the contents of my flash[:notice] in steps, since I think that's part of th

Re: [rspec-users] driving rspec from a Ruby script

2009-01-18 Thread Ed Keith
Pat Maddox wrote: > On Sat, Jan 17, 2009 at 6:48 AM, Ed Keith wrote: > What about...Ruby? > > I think it would make a lot of sense to define a couple hashes/objects > that represent each compiler. If you're just using different strings, > you can use a hash. > > gcc = {:name => 'gcc', :command

Re: [rspec-users] Cucumber Scenario Outlines Output Insufficient

2009-01-18 Thread Andrew Premdas
My problem doesn't seem to be covered by these tickets 2009/1/17 Joseph Wilk > aslak hellesoy wrote: > >> >> >> On Sat, Jan 17, 2009 at 5:08 AM, Andrew Premdas > aprem...@gmail.com>> wrote: >> >>I'm having problems knowing what a scenario outline I've created >>is doing. In particular I

Re: [rspec-users] App can't start on production server due to RSpec missing

2009-01-18 Thread Jonathan Linowes
On Jan 17, 2009, at 2:14 PM, Mark Wilden wrote: On Sat, Jan 17, 2009 at 5:42 AM, Jonathan Linowes wrote: On Jan 16, 2009, at 4:15 PM, Fernando Perez wrote: I run rspec on my dev machine, but obviously not on my production machine, what would be the nicest way to handle such scenario? At th

Re: [rspec-users] Cucumber Scenario Outlines Output Insufficient

2009-01-18 Thread Aslak Hellesøy
Den 18. jan.. 2009 kl. 16.11 skrev Andrew Premdas : My problem doesn't seem to be covered by these tickets You still haven't given us a concrete example of what you think is useful output. Are you going to? Aslak 2009/1/17 Joseph Wilk aslak hellesoy wrote: On Sat, Jan 17, 2009 at

Re: [rspec-users] Do people write specs for the code in their steps? How?

2009-01-18 Thread Matthias Hennemeyer
A year back or so i wrote a helper_method "step_eval(stepname, stepgroupname)" for the old storyrunnerframework that still works with the current rspec gem. The method has just 9 loc and think it would be even less with cucumber. Here is an executable script: http://pastie.org/363852 Matthia

Re: [rspec-users] Time for seperate cucumber mailing list?

2009-01-18 Thread Andrew Premdas
2009/1/17 Kero van Gelder > >> Because traffic is increasing > > That's a bad reason to split a list. > > >> Because cucumber really is a seperate mature topic now. > > > > Good point. Can any newbies to the scene comment if this is confusing? > > It is mature. > But is it separate? > It is sep

Re: [rspec-users] Cucumber Scenario Outlines Output Insufficient

2009-01-18 Thread Andrew Premdas
It took a little time :) 2009/1/18 Aslak Hellesøy > > > Den 18. jan.. 2009 kl. 16.11 skrev Andrew Premdas : > > My problem doesn't seem to be covered by these tickets > > > You still haven't given us a concrete example of what you think is useful > output. Are you going to? > > Aslak > > 2009/1/

Re: [rspec-users] Cucumber Scenario Outlines Output Insufficient

2009-01-18 Thread Andrew Premdas
I have output issues both with scenario outlines and using step tables. I'll deal with scenario outline in this mail. This will have to be an html mail as I need color to say what I want to say, I'll also use a real world example so this will be a bit long Currently the output of my scenario outli

Re: [rspec-users] Reorganize documentation for Cucumber at Github

2009-01-18 Thread Andrew Premdas
I'd just like to point out that the Github wiki tool is somewhat challenged by a project with so much good documentation like cucumber has. The lack of search, and the layout is really poor. Might it be better to host a more able wiki on another site, and use the github wiki to point to this extern

Re: [rspec-users] Time for seperate cucumber mailing list?

2009-01-18 Thread Andrew Premdas
2009/1/17 Matt Wynne > My thoughts: > On 17 Jan 2009, at 04:18, Andrew Premdas wrote: > > Because traffic is increasing >> > > I don't mind, I would most likely still get both lists into my inbox anyway > > Because cucumber really is a seperate mature topic now. >> > > Good point. Can any newbi

Re: [rspec-users] Time for seperate cucumber mailing list?

2009-01-18 Thread Mark Wilden
I do think there should be two separate lists, since RSpec and Cucumber are two separate topics. I've thought so ever since Cucumber began to generate significant interest. I don't think it's giving Cucumber its due to have its users post to a list called 'rspec-users'. Could someone explain why t

[rspec-users] Cucumber dying on decrement_open_transactions

2009-01-18 Thread Wincent Colaiuta
I am trying to convert from Story Runner to Cucumber so have started with a really minimal story, but am dying with exceptions in ActiveRecord's decrement_open_transactions method. I started took my shortest story and trimmed off steps until I got it down to the minimal case that aborts:

Re: [rspec-users] [Cucumber] Scenario Outlines Output Insufficient

2009-01-18 Thread Joseph Wilk
Andrew Premdas wrote: I have output issues both with scenario outlines and using step tables. I'll deal with scenario outline in this mail. This will have to be an html mail as I need color to say what I want to say, I'll also use a real world example so this will be a bit long Currently the

Re: [rspec-users] driving rspec from a Ruby script

2009-01-18 Thread Matt Wynne
On 18 Jan 2009, at 13:29, Ed Keith wrote: My problem is that I do not like the following line in Ruby : system spec spec1.rb it looks very inefficient, so I am looking for a better solution. I think you might be able to just do this instead: load 'spec1.rb' Does that look any bett

Re: [rspec-users] Cucumber dying on decrement_open_transactions

2009-01-18 Thread Ben Mabey
On 1/18/09 10:18 AM, Wincent Colaiuta wrote: I am trying to convert from Story Runner to Cucumber so have started with a really minimal story, but am dying with exceptions in ActiveRecord's decrement_open_transactions method. I started took my shortest story and trimmed off steps until I got it

Re: [rspec-users] Time for seperate cucumber mailing list?

2009-01-18 Thread James Byrne
Mark Wilden wrote: > Could someone explain why two lists would be a bad idea? On the other > hand, if this list should be for RSpec and Cucumber, shouldn't it be renamed? I think that bad and good does not really apply to this sort of thing. Perhaps comfortable and uncomfortable more closely de

Re: [rspec-users] Cucumber dying on decrement_open_transactions

2009-01-18 Thread Mark Wilden
On Sun, Jan 18, 2009 at 9:18 AM, Wincent Colaiuta wrote: > I am trying to convert from Story Runner to Cucumber so have started with a > really minimal story, but am dying with exceptions in ActiveRecord's > decrement_open_transactions method. I started took my shortest story and > trimmed off s

Re: [rspec-users] Reorganize documentation for Cucumber at Github

2009-01-18 Thread Tim Walker
This is great news. One possible way to do this incrementally on the github wiki would be to create a subwiki (page?) called "the cucumber book" (TCB) which has an organization and a little governnace around change that is further defined just like what Aslak has so generously created. From there t

Re: [rspec-users] [Cucumber] Scenario Outlines Output Insufficient

2009-01-18 Thread Andrew Premdas
You misunderstood I bit of my post, I've nested a comment. Its towards the end of the post. 2009/1/18 Joseph Wilk > Andrew Premdas wrote: > > I have output issues both with scenario outlines and using step tables. > I'll deal with scenario outline in this mail. This will have to be an html > ma

Re: [rspec-users] Cucumber dying on decrement_open_transactions

2009-01-18 Thread Ben Mabey
On 1/18/09 10:18 AM, Wincent Colaiuta wrote: I am trying to convert from Story Runner to Cucumber so have started with a really minimal story, but am dying with exceptions in ActiveRecord's decrement_open_transactions method. I started took my shortest story and trimmed off steps until I got it

Re: [rspec-users] autospec is not picking latest changes

2009-01-18 Thread Peter Jaros
On Wed, Jan 14, 2009 at 4:28 PM, Fernando Perez wrote: > I am facing a similar problem. Actually what happens, is that when I > edit specs and then save, then autospec detects it and runs the specs, > but when I edit the application's code only, then autospec doesn't run. > Is that a normal behav

Re: [rspec-users] Time for seperate cucumber mailing list?

2009-01-18 Thread Bart Zonneveld
On 18 jan 2009, at 18:49, Mark Wilden wrote: Could someone explain why two lists would be a bad idea? On the other hand, if this list should be for RSpec and Cucumber, shouldn't it be renamed? How'bout splitting this list up into a more "beginners" oriented version, and a discussion one?

Re: [rspec-users] Time for seperate cucumber mailing list?

2009-01-18 Thread Pat Maddox
This is not a high-volume list at all. I don't see what all the fuss is about. If you don't want to see cucumber or rspec or mock, add that to your filter and have it sent straight to the trash. No sense in complicating things when there isn't an actual problem. Pat

Re: [rspec-users] Time for seperate cucumber mailing list?

2009-01-18 Thread James Byrne
Bart Zonneveld wrote: > > How'bout splitting this list up into a more "beginners" oriented > version, and a discussion one? > This list is called rspec-users, so let's let this be the starting > point of questions like "I can't get rspec/cucumber/whatyouhaving to > work", and have a rspec-discuss

Re: [rspec-users] Reorganize documentation for Cucumber at Github

2009-01-18 Thread Fernando Perez
Andrew Premdas wrote: > I'd just like to point out that the Github wiki tool is somewhat > challenged Yeah I also think that the github wiki is showing its limits. It works when the project only requires a few pages of documentation, but not for Cucumber. Github should only be used for what Git

Re: [rspec-users] Time for seperate cucumber mailing list?

2009-01-18 Thread Tom Cloyd
James Byrne wrote: Bart Zonneveld wrote: How'bout splitting this list up into a more "beginners" oriented version, and a discussion one? This list is called rspec-users, so let's let this be the starting point of questions like "I can't get rspec/cucumber/whatyouhaving to work", and have a r

Re: [rspec-users] App can't start on production server due to RSpec missing

2009-01-18 Thread Scott Taylor
Andrew Premdas wrote: If your using capistrano you could delete this file when deploying. Or just not version control it: git rm -rf --cached lib/tasks/rspec.rake echo "lib/tasks/rspec.rake" >> .gitignore Scott 2009/1/16 Scott Taylor > On Jan 16, 2009,

Re: [rspec-users] Putting shared specs in a separate file

2009-01-18 Thread LesFreeman
Hi all, Thanks for the great replies. This one was a total dunce cap mistake. I had somehow gotten the include for the shared files in before the include for rspec. Duh. I'm interested in the macros idea. I'll have to look into that more. Thanks again, Les On Jan 17, 3:48 pm, Nick Hoffman wr

Re: [rspec-users] Time for seperate cucumber mailing list?

2009-01-18 Thread aslak hellesoy
On Sun, Jan 18, 2009 at 11:05 PM, Pat Maddox wrote: > This is not a high-volume list at all. I don't see what all the fuss > is about. If you don't want to see cucumber or rspec or mock, add > that to your filter and have it sent straight to the trash. No sense > in complicating things when th

[rspec-users] [Cucumber, Webrat] I should see behaves strangely with html

2009-01-18 Thread Fernando Perez
Hi, In my tests, I check to see if a given html tag such as ... has the expected value, sometimes it works sometimes it tells me it couldn't find the string, although I see it printed out in the error screen. I think it comes form the fact that double-quotes are escaped and slashes too, and some

[rspec-users] [ANN] Cucumber 0.1.16

2009-01-18 Thread aslak hellesoy
Cucumber 0.1.16 is out. This is a small bugfix release that should make all the Webrat woes go away for Cucumber/Rails users. After you upgrade your gems to Cucumber 0.1.16 and Webrat 0.4.0 - remember to change the webrat code to this in your env.rb: require 'webrat' Webrat.configure do |config|

Re: [rspec-users] cucumber rake file question

2009-01-18 Thread Tom Cloyd
David Chelimsky wrote: On Thu, Jan 15, 2009 at 9:16 AM, Pat Maddox wrote: On Thu, Jan 15, 2009 at 4:07 AM, Tom Cloyd wrote: Real beginner question here. I don't really know rake, so I'm stumbling. As I set a dir to hold my feature files, etc., I'm simply copying the files structure I

Re: [rspec-users] Reorganize documentation for Cucumber at Github

2009-01-18 Thread aslak hellesoy
On Mon, Jan 19, 2009 at 12:01 AM, Fernando Perez wrote: > Andrew Premdas wrote: > > I'd just like to point out that the Github wiki tool is somewhat > > challenged > Yeah I also think that the github wiki is showing its limits. It works > when the project only requires a few pages of documentation

Re: [rspec-users] [Cucumber, Webrat] I should see behaves strangely with html

2009-01-18 Thread Pau Cor
Can you please post the contents of your step definition? -- Posted via http://www.ruby-forum.com/. ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

[rspec-users] [Cucumber] CukeTV

2009-01-18 Thread aslak hellesoy
Dave Hoover just published a screencast, so I decided to make my own TV channel. It's called CukeTV, and the whole program is up on http://cukes.info/ It has one episode. Enjoy! Aslak (::) ___ rspec-users mailing list rspec-users@rubyforge.org http://ru