Re: [rspec-users] autotest?

2009-05-21 Thread Kero van Gelder
> Is there some configuration I need to do to get rid of unit/functional > tests and only run rspec+cucumber? This eplains all there is to explain (though terse and not from your use case) http://zentest.rubyforge.org/ZenTest/Autotest.html and you now have to add code from that to your .auto

Re: [rspec-users] how to deal with redirect_to on cucumber?

2009-05-21 Thread Matt Wynne
On 20 May 2009, at 16:43, Zhenning Guan wrote: I have a controller name forums and a action like this: def show redirect_to forum_topics_path(:forum_id => params[:id]) end my scenario is (not completed) == Scenario: User input data correct When I run to the forum 1 -- When /^I

Re: [rspec-users] autotest?

2009-05-21 Thread Kero van Gelder
> > Is there some configuration I need to do to get rid of unit/functional > > tests and only run rspec+cucumber? [...] > I guess I should add this in some form to the rspec wiki ;) Done: http://wiki.github.com/dchelimsky/rspec/autotest-integration Bye, Kero. ___ How can I change the world

Re: [rspec-users] Cucumber vs Rails Fixtures

2009-05-21 Thread Aslak Hellesøy
Ben Mabey wrote: http://wiki.github.com/aslakhellesoy/cucumber/fixtures Ding! That would have been my next click in my Googling. Let's hope this thread pushes that up. > http://groups.google.com/group/cukes What, no gmane yet?? (-: I would have preferred: "I have set up GMane" Thank

Re: [rspec-users] how to deal with redirect_to on cucumber?

2009-05-21 Thread aslak hellesoy
Instead of answering Cucumber questions on this list, please redirect people to the new one: http://www.nabble.com/-Cucumber--ANN%3A-New-Google-Group-for-Cucumber-td23602831.html Aslak On Thu, May 21, 2009 at 9:34 AM, Matt Wynne wrote: > > On 20 May 2009, at 16:43, Zhenning Guan wrote: > >> I h

[rspec-users] rspec-rails: how to run checks?

2009-05-21 Thread Michael Schuerig
I'm trying to run the specs of the rspec-rails master branch, but both plain rake as well as rake spec fail. The default task fails because there is no cucumber.yml. rake spec fails, when it requires a file that is not part of the repo: rspec-rails/spec/spec_helper.rb refers to require File.ex

Re: [rspec-users] Cucumber vs Rails Fixtures

2009-05-21 Thread aslak hellesoy
> >> Ben Mabey wrote: >> >>> http://wiki.github.com/aslakhellesoy/cucumber/fixtures >> >> Ding! That would have been my next click in my Googling. Let's hope this >> thread pushes that up. >> >> > http://groups.google.com/group/cukes >> >> What, no gmane yet?? (-: >> > I would have preferred: "I ha

Re: [rspec-users] autotest?

2009-05-21 Thread Denis Haskin
Cool. Scott, Kero -- thanks. dwh Kero van Gelder wrote: Is there some configuration I need to do to get rid of unit/functional tests and only run rspec+cucumber? [...] I guess I should add this in some form to the rspec wiki ;) Done: http://wiki.github.com/dchelimsky/rs

Re: [rspec-users] Error in executing controller spec

2009-05-21 Thread Amit Kulkarni
David Chelimsky wrote: > On Wed, May 20, 2009 at 2:47 AM, Amit Kulkarni > wrote: It is not the case that i will always run spec from the root project.So >> Thank a lot. >> But is the case that all controller specs are run from the root >> directory. >> I had had written spec models and it ru

Re: [rspec-users] [Rspec] Problems with autospec

2009-05-21 Thread David Chelimsky
On Wed, May 20, 2009 at 1:12 PM, Denis Haskin wrote: > Is this fabled .autotest file fully documented somewhere?  It keeps getting > referenced in lots of answers and doc, but I haven't located complete doc on > it.  I'm probably not looking in the right place... I'm not aware of a single definit

Re: [rspec-users] rspec-rails: how to run checks?

2009-05-21 Thread David Chelimsky
On Thu, May 21, 2009 at 4:26 AM, Michael Schuerig wrote: > > I'm trying to run the specs of the rspec-rails master branch, but both > plain rake as well as rake spec fail. Right now the only way to run them is in the context of the rspec-dev suite: http://github.com/dchelimsky/rspec-dev I added

Re: [rspec-users] autotest?

2009-05-21 Thread David Chelimsky
On Thu, May 21, 2009 at 2:27 AM, Kero van Gelder wrote: >> > Is there some configuration I need to do to get rid of unit/functional >> > tests and only run rspec+cucumber? > > [...] >> I guess I should add this in some form to the rspec wiki ;) > > Done: >   http://wiki.github.com/dchelimsky/rspec

[rspec-users] before(:all)

2009-05-21 Thread lawrence.pit
Hi All, When I execute database actions within a before(:each) they are rolled back after each example test has run. I expected that if I execute db actions within a before(:all) they would all be rolled back after all examples finished running. This appears not to be the case, in my case. Is ther

Re: [rspec-users] [Cucumber] Fail a scenario from After or AfterStep

2009-05-21 Thread aslak hellesoy
> > On 20 May 2009, at 09:33, aslak hellesoy wrote: > >>> >>> On 20 May 2009, at 00:04, aslak hellesoy wrote: >>> > Any further thoughts on this, Aslak? I'd prefer to go with a solution > in > line with the future direction of Cucumber if possible. > Sorry, forgot to get b

Re: [rspec-users] rspec-rails: how to run checks?

2009-05-21 Thread Michael Schuerig
On Thursday 21 May 2009, David Chelimsky wrote: > On Thu, May 21, 2009 at 4:26 AM, Michael Schuerig wrote: > > I'm trying to run the specs of the rspec-rails master branch, but > > both plain rake as well as rake spec fail. > > Right now the only way to run them is in the context of the rspec-dev

Re: [rspec-users] before(:all)

2009-05-21 Thread David Chelimsky
On Wed, May 20, 2009 at 10:27 PM, lawrence.pit wrote: > Hi All, > > When I execute database actions within a before(:each) they are rolled > back after each example test has run. I expected that if I execute db > actions within a before(:all) they would all be rolled back after all > examples fini

Re: [rspec-users] autotest?

2009-05-21 Thread Scott Taylor
Kero van Gelder wrote: Is there some configuration I need to do to get rid of unit/functional tests and only run rspec+cucumber? [...] I guess I should add this in some form to the rspec wiki ;) Done: http://wiki.github.com/dchelimsky/rspec/autotest-integration +1.

Re: [rspec-users] Cucumber vs Rails Fixtures

2009-05-21 Thread Phlip
aslak hellesoy wrote: http://groups.google.com/group/cukes What, no gmane yet?? (-: I would have preferred: "I have set up GMane" Netiquette: I would _not_ set someone else's group up on GMane - even if it were just a Google Group... -- Phlip http://flea.sourceforge.net/resume.htm

Re: [rspec-users] autotest?

2009-05-21 Thread Kero van Gelder
> >> > Is there some configuration I need to do to get rid of unit/functional > >> > tests and only run rspec+cucumber? > > > > [...] > >> I guess I should add this in some form to the rspec wiki ;) > > > > Done: > >   http://wiki.github.com/dchelimsky/rspec/autotest-integration > > Thanks Kero. I

Re: [rspec-users] autotest?

2009-05-21 Thread David Chelimsky
On Thu, May 21, 2009 at 10:34 AM, Kero van Gelder wrote: >> >> > Is there some configuration I need to do to get rid of unit/functional >> >> > tests and only run rspec+cucumber? >> > >> > [...] >> >> I guess I should add this in some form to the rspec wiki ;) >> > >> > Done: >> >   http://wiki.gi

Re: [rspec-users] Using resource_controller (make_resourceful etc) and tes

2009-05-21 Thread Fernando Perez
Andrew Premdas wrote: > Hi all, > > Trying to get some opinions about the use of such plugins and in > particular > about how they test, and how we test with them. Can they work well with > BDD > or do they do to much magic and create difficulties for features and > tests 5 months after the ini

Re: [rspec-users] Controller spec: testing that scope is set

2009-05-21 Thread Michael Schuerig
On Sunday 19 April 2009, Michael Schuerig wrote: > In a Rails controller I set the scope on a model class in an around > filter. I have defined expectations on the model classes, and > ideally, I would add a further expectation for the scope. Is this > already possible in some way? How would I go a