Re: [rspec-users] Database.truncate_all

2008-12-06 Thread David Salgado
ISTR that "destroy_all" will instantiate each object, before destroying it. If you just want to clean the database, I think "delete_all" is the one you want (it just does a "delete from [table]", if memory serves), and should be a lot quicker. David 2008/12/6 Mark Wilden <[EMAIL PROTECTED]>: > O

Re: [rspec-users] Cucumber and autospec do not work ?

2008-12-06 Thread Kero van Gelder
> I have added th tickets for you and am working on fixes for them. > Although, I think the last one needs to be discussed more so please add > your thoughts to that ticket. > > http://rspec.lighthouseapp.com/projects/16211-cucumber/tickets/117-cli-crashes-with-blank-cucumberyml > http://rspec

[rspec-users] Autospec does not work w/ cucumber features?

2008-12-06 Thread Kero van Gelder
Hi! And now for the second part of the subject of my previous mails :) $ cat cucumber.yml default: . autotest: -v . autotest-all: -v -f progress . $ cucumber -i . -f progress PP Pending Scenarios: 1) enlightenment (meditation) $ AUTOFEATURE=true autospec # bug! prompt returns immediately,

Re: [rspec-users] Indentation Conventions for Ruby and Cucumber

2008-12-06 Thread Mikel Lindsaar
On Thu, Dec 4, 2008 at 1:27 AM, Andrew Premdas <[EMAIL PROTECTED]> wrote: > Oh but cucumber features so want to be idented on the I > > Scenario: Anonymous user can not duplicate a un-activated account >Given I am an anonymous user > And a registered user Fred exists > When I signup

[rspec-users] RSpec and 1.9 Compatibility

2008-12-06 Thread Mikel Lindsaar
OK... I am making a mail library that is taking advantage of the new things in 1.9, mainly encoding and the new regex goodness. However, RSpec is not jiggy with it right now on 1.9... so I'm going to try and scratch an itch here. Has anyone started on this? I've started in terms of getting RSpec

Re: [rspec-users] RSpec and 1.9 Compatibility

2008-12-06 Thread David Chelimsky
On Sat, Dec 6, 2008 at 6:28 AM, Mikel Lindsaar <[EMAIL PROTECTED]> wrote: > OK... I am making a mail library that is taking advantage of the new things > in 1.9, mainly encoding and the new regex goodness. > However, RSpec is not jiggy with it right now on 1.9... so I'm going to try > and scratch a

[rspec-users] Update RSpec but have a problem!

2008-12-06 Thread Antonio Faust45
Hi people! I run rake spec ** Invoke spec (first_time, not_needed) and specs not started! What that's mean? Thanks! -- Posted via http://www.ruby-forum.com/. ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rs

Re: [rspec-users] Database.truncate_all

2008-12-06 Thread Mark Wilden
On Sat, Dec 6, 2008 at 2:47 AM, David Salgado <[EMAIL PROTECTED]>wrote: > ISTR that "destroy_all" will instantiate each object, before > destroying it. If you just want to clean the database, I think > "delete_all" is the one you want (it just does a "delete from > [table]", if memory serves), and

Re: [rspec-users] Database.truncate_all

2008-12-06 Thread Ben Mabey
Jeff Talbot wrote: There is a seemingly very useful line of code in the cucumber wiki that I'd like to use: After do # Scenario teardown Database.truncate_all end (from http://github.com/aslakhellesoy/cucumber/wikis/migration-from-rspec-stories) But when I run this I get an uninit

Re: [rspec-users] cucumber and autotest - running all features?

2008-12-06 Thread Peter Jaros
On Fri, Dec 5, 2008 at 4:47 AM, Matt Wynne <[EMAIL PROTECTED]> wrote: > I'll have to give autospec another shot then I guess. I have given up on it > as it takes over 7 minutes to 'boot up' with our test suite, and I find it > misses too many things it should have run, such that I have to hit CTRL

Re: [rspec-users] Autospec does not work w/ cucumber features?

2008-12-06 Thread Peter Jaros
On Sat, Dec 6, 2008 at 7:04 AM, Kero van Gelder <[EMAIL PROTECTED]> wrote: > $ AUTOFEATURE=true autospec # bug! prompt returns immediately, ZenTest > gem not a dependency? a warning that autotest was not found would be nice. Huh. The autospec command comes from RSpec; do you have this issue

Re: [rspec-users] Update RSpec but have a problem!

2008-12-06 Thread Peter Jaros
On Sat, Dec 6, 2008 at 12:00 PM, Antonio Faust45 <[EMAIL PROTECTED]> wrote: > rake spec > ** Invoke spec (first_time, not_needed) > and specs not started! Oh! I' having the same problem and I just solved it! Well, half-solved it. Rake, like make, operates on files. If you say "make somebinary

Re: [rspec-users] Update RSpec but have a problem!

2008-12-06 Thread Antonio Faust45
Thanks Pit! -- Posted via http://www.ruby-forum.com/. ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] Autospec does not work w/ cucumber features?

2008-12-06 Thread Kero van Gelder
> > $ AUTOFEATURE=true autospec # bug! prompt returns immediately, ZenTest > > gem not a dependency? a warning that autotest was not found would be nice. > > Huh. The autospec command comes from RSpec; do you have this issue > without setting AUTOFEATURE=true? Yup. But as I only have featu

Re: [rspec-users] Autospec does not work w/ cucumber features?

2008-12-06 Thread Ben Mabey
Kero van Gelder wrote: $ AUTOFEATURE=true autospec # bug! prompt returns immediately, ZenTest gem not a dependency? a warning that autotest was not found would be nice. Huh. The autospec command comes from RSpec; do you have this issue without setting AUTOFEATURE=true? Yup.

Re: [rspec-users] 'And' step definition

2008-12-06 Thread James Byrne
Mark Wilden wrote: > Thanks for your replies, David and James. I figured as much, actually, > since > you wouldn't want to have some And steps in your definition file and > some > Given steps. > > I was led astray by "Inside a step_definitions.rb file, steps (which > strictly speaking should alw

Re: [rspec-users] stepping across features

2008-12-06 Thread Andrew Premdas
Yup, very much so IMO 2008/12/5 James Byrne <[EMAIL PROTECTED]> > Andrew Premdas wrote: > > Pretty hard for me to comment with so much stuff and so little context. > > However :) > > My messages are quite long enough as it is I am afraid. > > > about a work order to produce invoices. You have to

Re: [rspec-users] Indentation Conventions for Ruby and Cucumber

2008-12-06 Thread Andrew Premdas
Original post was somewhat flippant :) To be more precise. This style is "aligning on the first letter of the second word" and basically is treating the first word as a label and the rest as content, and using indentation to differentiate (hopefully clearly) Andrew 2008/12/6 Mikel Lindsaar