Re: [rspec-users] [cucumber] Cucumber and CI

2009-02-23 Thread Pat Maddox
On Sun, Feb 22, 2009 at 6:36 PM, Phlip wrote: > So what's the maximum number of cucumber features that anyone has ever seen > on-deck but not yet passing? That's a bad metric, exactly like excess > inventory in a warehouse. I don't know that it's bad. At the beginning of an iteration, I have mos

Re: [rspec-users] Autotest won't pickup any tests

2009-02-23 Thread Christian Hoeppner
*smacks forehead* Who would have known. Ha! I spent the entire weekend "debugging" that lib. Now, how do I create a rake task that runs autospec with a few options? On 20/02/2009, at 15:56, David Chelimsky wrote: On Fri, Feb 20, 2009 at 6:15 AM, Christian Hoeppner wrote: Hey there, I've t

[rspec-users] [cucumber ]Missing lettersm 'a' mafter rake features

2009-02-23 Thread Hoor Net
I am just starting with any testing really, but I chose this post as a tutorial. http://www.ultrasaurus.com/sarahblog/2008/12/rails-2-day-3-behavior-driven-development/comment-page-1/#comment-454 I have WinXP, so I had to install one more gem for the colors. After making my first features/tasklist

Re: [rspec-users] [cucumber ]Missing lettersm 'a' mafter rake features

2009-02-23 Thread Joseph Wilk
Hoor Net wrote: I am just starting with any testing really, but I chose this post as a tutorial. http://www.ultrasaurus.com/sarahblog/2008/12/rails-2-day-3-behavior-driven-development/comment-page-1/#comment-454 I have WinXP, so I had to install one more gem for the colors. After making my first

Re: [rspec-users] [cucumber ]Missing lettersm 'a' mafter rake features

2009-02-23 Thread Hoor Net
It works! It works! Thanks a LOT!!! Joseph Wilk wrote: > Hoor Net wrote: >> >> Take a look at the result: >> http://gist.github.com/68907 >> >> The 'a' letters ARE MISSING >> >> Any ideas? >> > Take a look at: > > http://wiki.github.com/aslakhellesoy/cucumber/troubleshooting > > -- > Jos

Re: [rspec-users] [cucumber] Cucumber and CI

2009-02-23 Thread Phlip
aslak hellesoy wrote: So what's the maximum number of cucumber features that anyone has ever seen on-deck but not yet passing? That's a bad metric, exactly like excess inventory in a warehouse. Do you mean "on filesystem"? I have used Cucumber on 5-6 projects now, and I never exceed 1. If ther

Re: [rspec-users] Autotest won't pickup any tests

2009-02-23 Thread David Chelimsky
On Mon, Feb 23, 2009 at 4:17 AM, Christian Hoeppner wrote: > *smacks forehead* Who would have known. Ha! I spent the entire weekend > "debugging" that lib. > > Now, how do I create a rake task that runs autospec with a few options? RSpec options, Autotest options, or both? > > On 20/02/2009, at

Re: [rspec-users] Cucumber 0.2 final release date?

2009-02-23 Thread aslak hellesoy
On Thu, Feb 19, 2009 at 4:49 PM, aidy lewis wrote: > Hi, > > I know this seems all take and no give, but do we have an estimated > final release date for Cucumber 0.2? > I'm afraid I can't give a release date. 0.2 is fixed(ish) scope, and therefore time can't be fixed at the same time. I have a l

Re: [rspec-users] [cucumber] Cucumber and CI

2009-02-23 Thread Andrew Premdas
I'd question the wisdom of checking into an integration server every couple of minutes. I'm not sure if you meant that but if you did then I think these sort of checkins have to be in bigger chunks. The reason is that each checkin to an intergration server is asking my colleagues to checkout my cod

Re: [rspec-users] [cucumber] Cucumber and CI

2009-02-23 Thread Mark Wilden
On Mon, Feb 23, 2009 at 6:56 AM, Andrew Premdas wrote: > I'd question the wisdom of checking into an integration server every couple > of minutes. Our mantra is ABC: Always Be Committing. So we commit anytime we feel like it, as long as it doesn't break the build. This makes life a lot easier wh

Re: [rspec-users] Autotest won't pickup any tests

2009-02-23 Thread Christian Hoeppner
I'm not really sure what options autotest has, since the website is on "coming soon", and autotest -h doesn't show any help, so I'm thinking about rspec options, like the rpsec command to use, arguments (--diff unified --color, etc). Is there a place to read up on autotest behavior and opti

Re: [rspec-users] [cucumber] Cucumber and CI

2009-02-23 Thread Phlip
Mark Wilden wrote: I'd question the wisdom of checking into an integration server every couple of minutes. Our mantra is ABC: Always Be Committing. So we commit anytime we feel like it, as long as it doesn't break the build. This makes life a lot easier when there is merging to do. In a post

Re: [rspec-users] New Google Groups for Vim and Ruby/Rails Developers

2009-02-23 Thread Bram Moolenaar
Jon Hunt wrote: > Announcement for new group for Vim users. > > http://groups.google.com/group/vim-on-rails?hl=en > > Sharing vim usage for Ruby on Rails development. Includes any platform > (Windows, Linux and Mac). Discuss anything related to Ruby and Ruby on > Rails development. (migration f

[rspec-users] How to mock an object defined in the before_filter function?

2009-02-23 Thread Evgeny Bogdanov
Hello, I am trying to implement the following scenario, but I am stuck ... The thing is I want to initialize a variable @comment when the stub function "find_comment" is called. The way I do it below doesn't work, since "before_filter :find_comment" returns true/false and @comment initialization i

[rspec-users] Setting Request Body (in stories in particular)

2009-02-23 Thread Michael Sofaer
I'm trying to set my request body in my tests (the application is a web service that takes large XML files in PUT requests). If you do this: put :update, :body => xml You get a request with an empty body, and a field in the header called "body" set to the XML. You can set the body date in contr

[rspec-users] specing send_file

2009-02-23 Thread vo.x
Hello everybody! Im wondering what is the best way of specing action with send file such as: def download log = ActivityLog.find(params[:id]) if log send_file log.path else flash[:notice] = _("Log file \"#{params[:id]}\" was not found.") redirect_to :action => 'ind

[rspec-users] Rspec and autotest for standalone projects

2009-02-23 Thread Christian Hoeppner
Hey there, I've tried using Nick Sieger's "plugin" to have autotest run my tests for gems and other non-rails stuff. However, it doesn't seem to match any tests for any files. Not being sure what was wrong, I traced the execution of RspecAutotest.run() and saw that tests_for_file() never

Re: [rspec-users] Autotest won't pickup any tests

2009-02-23 Thread David Chelimsky
On Mon, Feb 23, 2009 at 9:26 AM, Christian Hoeppner wrote: > I'm not really sure what options autotest has, since the website is on > "coming soon", and autotest -h doesn't show any help, so I'm thinking about > rspec options, like the rpsec command to use, arguments (--diff unified > --color, etc

Re: [rspec-users] Cucumber Feature Scenario critique

2009-02-23 Thread Andrew Premdas
James, Personally I think your missing the point entirely about BDD. The fundamental idea of BDD is to drive/guide the relationship between the customer and developer. So you shouldn't be having meetings with customers that arrive with " the idea of "client" being that of an ephemeral "role" assi

Re: [rspec-users] [cucumber] Cucumber and CI

2009-02-23 Thread Stephen Eley
On Mon, Feb 23, 2009 at 9:56 AM, Andrew Premdas wrote: > I'd question the wisdom of checking into an integration server every couple > of minutes. I'm not sure if you meant that but if you did then I think these > sort of checkins have to be in bigger chunks. To me the answer is just what Zach sa

Re: [rspec-users] specing send_file

2009-02-23 Thread Stephen Eley
On Fri, Feb 20, 2009 at 5:45 PM, vo.x wrote: > Hello everybody! > > Im wondering what is the best way of specing action with send file > such as: I'd probably do it on two fronts. On the unit test level, you can stub it in your setup so that it won't try to send that file every time you run test

Re: [rspec-users] [cucumber] Cucumber and CI

2009-02-23 Thread Stephen Eley
On Mon, Feb 23, 2009 at 10:22 AM, Mark Wilden wrote: > > Our mantra is ABC: Always Be Committing. So we commit anytime we feel > like it, as long as it doesn't break the build. This makes life a lot > easier when there is merging to do. I think your "doesn't break the build" condition is a lot bi

Re: [rspec-users] [cucumber] Cucumber and CI

2009-02-23 Thread James Byrne
Just on a side note, how many features / stories have people seen on their projects and how much of their project was covered by features/stories? I refrain from the terms average and typical because, there ain't no much thing. But I would be interested in getting an idea of how many feature

Re: [rspec-users] Cucumber Feature Scenario critique

2009-02-23 Thread Stephen Eley
On Mon, Feb 23, 2009 at 10:57 AM, Andrew Premdas wrote: > > The focus has to first be about getting your customer really > into producing features with you. If you achieve that then what should > happen is > > 1. You and your custoimer meet often and work (rather than just talk) > together and pro

Re: [rspec-users] Cucumber Feature Scenario critique

2009-02-23 Thread James Byrne
Andrew Premdas wrote: > > n.b. I'm expressing my opinions forcefully without much regard to tact > or diplomacy. No offense in any way is intended :) > None taken. I am trying, desperately, to move from one way of thinking to another. I expect it to be a painful process. I am afraid the way

Re: [rspec-users] send_file testing

2009-02-23 Thread Nick Hoffman
On 22/02/2009, at 3:34 PM, vo.x wrote: Hello all, Is there some best practice how to test Rails controller action which is using send_file method? Could you help me please? Vit On 23/02/2009, at 2:43 AM, vo.x wrote: Just to be clear, this is how the action looks: def download log = Act

Re: [rspec-users] Cucumber Feature Scenario critique

2009-02-23 Thread James Byrne
Stephen Eley wrote: > > ...So that's my reality. Cucumber for collaboration isn't the value > for me. I suspect that there are a *lot* of companies out there with > one-person IT departments that may fit into my situation, and > certainly a whole ton of personal projects where there was never a

Re: [rspec-users] [cucumber] Cucumber and CI

2009-02-23 Thread Stephen Eley
On Mon, Feb 23, 2009 at 11:44 AM, James Byrne wrote: > > F=31, S=165, PC=100%, TU=30, CU=21, financial services (insurance > claims) Whathuh? Wow, you really *do* work for government, don't you? >8-> That line hurts me to look at and I'm not going to try to put my answer in that format. Since

Re: [rspec-users] How to mock an object defined in the before_filter function?

2009-02-23 Thread David Chelimsky
On Fri, Feb 20, 2009 at 10:17 AM, Evgeny Bogdanov wrote: > Hello, > > I am trying to implement the following scenario, but I am stuck ... > The thing is I want to initialize a variable @comment when the stub > function "find_comment" is called. > The way I do it below doesn't work, since > "before

Re: [rspec-users] [cucumber] Cucumber and CI

2009-02-23 Thread Mark Wilden
On Mon, Feb 23, 2009 at 9:09 AM, Stephen Eley wrote: > On Mon, Feb 23, 2009 at 10:22 AM, Mark Wilden wrote: >> >> Our mantra is ABC: Always Be Committing. So we commit anytime we feel >> like it, as long as it doesn't break the build. This makes life a lot >> easier when there is merging to do. >

Re: [rspec-users] [cucumber] Cucumber and CI

2009-02-23 Thread Phlip
James Byrne wrote: Just on a side note, how many features / stories have people seen on their projects and how much of their project was covered by features/stories? My current day job is old-school Rails. Some of the tests - written before I got here - used a most despicable pattern. Someo

Re: [rspec-users] [cucumber] Cucumber and CI

2009-02-23 Thread Stephen Eley
On Mon, Feb 23, 2009 at 3:22 PM, Mark Wilden wrote: > On Mon, Feb 23, 2009 at 9:09 AM, Stephen Eley wrote: >> >> I think your "doesn't break the build" condition is a lot bigger than >> you make it sound. >8-> What's the definition of "the build" in your >> work culture? Do you run all tests e

Re: [rspec-users] Cucumber Feature Scenario critique

2009-02-23 Thread James Byrne
Stephen Eley wrote: > > I'm the technology director for a non-profit academic society. My > organization has 15 employees. I'm the one who knows anything at all > about computers. When I came on, I delegated *to myself* the > responsibility of getting rid of our current excremental Web site, >

Re: [rspec-users] [cucumber] Cucumber and CI

2009-02-23 Thread James Byrne
Stephen Eley wrote: > On Mon, Feb 23, 2009 at 11:44 AM, James Byrne > wrote: >> >> F=31, S=165, PC=100%, TU=30, CU=21, financial services (insurance >> claims) > > Whathuh? Wow, you really *do* work for government, don't you? >8-> > That line hurts me to look at and I'm not going to try to put

[rspec-users] A nice general purpose step definition for adding/finding activerecord records

2009-02-23 Thread Erik Pukinskis
I thought other people might be interested in these step definitions. They allow you to write steps like: Given the following "turkeys" exist: |name |size |intelligence| |marko |big |dumb| |mello |small |smart| Or, Then the following "turkeys" should exist: ...

Re: [rspec-users] Cucumber Feature Scenario critique

2009-02-23 Thread Andrew Premdas
James, If this is the case then to do BDD well you have to simulate the dialogue between customer and developer. At the moment you are so thinking like a developer so you are starting with detailed technical features rather than general customer features. Also you're using such complicated languag

Re: [rspec-users] Cucumber Feature Scenario critique

2009-02-23 Thread Andrew Premdas
Stephen, It appears that James situation is similar to yours which is very different to what I assumed. I've written a response (rant) about addressing his problems in that context. Personally I still think that you have to start with fundamental customer produced features. As you and James are on

Re: [rspec-users] [cucumber] Cucumber and CI

2009-02-23 Thread Andrew Premdas
Comment inline 2009/2/23 Mark Wilden > On Mon, Feb 23, 2009 at 6:56 AM, Andrew Premdas > wrote: > > > I'd question the wisdom of checking into an integration server every > couple > > of minutes. > > Our mantra is ABC: Always Be Committing. So we commit anytime we feel > like it, as long as it

Re: [rspec-users] Autotest won't pickup any tests

2009-02-23 Thread lasitha
On Mon, Feb 23, 2009 at 9:26 PM, David Chelimsky wrote: > On Mon, Feb 23, 2009 at 9:26 AM, Christian Hoeppner > wrote: >> Is there a place to read up on autotest behavior and options? I couldn't >> even find a manpage, but maybe I'm not looking hard enough. > > There's not much to look at other t

Re: [rspec-users] Cucumber Feature Scenario critique

2009-02-23 Thread Stephen Eley
On Mon, Feb 23, 2009 at 7:04 PM, James Byrne wrote: >> >> I'm the technology director for a non-profit academic society.  My >> organization has 15 employees. > > I occurs to me that you might find a look at Redmine > (http://www.redmine.org) worthwhile.  If not to use then at least for > implemen

Re: [rspec-users] [cucumber] Cucumber and CI

2009-02-23 Thread Mark Wilden
On Mon, Feb 23, 2009 at 5:45 PM, Andrew Premdas wrote: >> >> Just because I push doesn't mean my coworkers have to pull. > > Yes it does, surely you can't be saying you can commit to an integration > server without pulling the code from it first I can't and I didn't. :) ///ark __

Re: [rspec-users] [cucumber] Cucumber and CI

2009-02-23 Thread Stephen Eley
On Mon, Feb 23, 2009 at 6:57 PM, James Byrne wrote: > > Total users vs. concurrent users gives a very good idea of the resources > behind a project, or at least the potential resources, together with an > idea of how important to a business that a project might be. If you say so. Personally I do