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 bra

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

2008-09-29 Thread Fernando Perez
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, it seems to fail and not properly detect the string. -- Posted via http:/

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

2008-09-29 Thread David Chelimsky
On Mon, Sep 29, 2008 at 5:10 AM, Fernando Perez <[EMAIL PROTECTED]> wrote: >> Is there a way to skip database initialization? Because it takes too >> much time to run each test. > So do you handle data inside the testing environment. Let's say: Given > there are 2 products available on the site. >

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

2008-09-29 Thread David Chelimsky
On Sun, Sep 28, 2008 at 4:24 PM, Fernando Perez <[EMAIL PROTECTED]> wrote: > Thank you David, > > Is there a way to skip database initialization? Because it takes too > much time to run each test. Is there a similar way to mock objects or > create objects and have them "saved" in memory? I don't un

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

2008-09-29 Thread Fernando Perez
> Is there a way to skip database initialization? Because it takes too > much time to run each test. So do you handle data inside the testing environment. Let's say: Given there are 2 products available on the site. Currently I am using 1.upto(2) do |i|; Product.create!(:title => "title#{i}"..

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

2008-09-28 Thread Fernando Perez
Thank you David, Is there a way to skip database initialization? Because it takes too much time to run each test. Is there a similar way to mock objects or create objects and have them "saved" in memory? I don't understand how to do that. I use for instance Product.create!(:title => 'title', :

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

2008-09-28 Thread David Chelimsky
On Sun, Sep 28, 2008 at 1:55 PM, Fernando Perez <[EMAIL PROTECTED]> wrote: > Bloody keyboard! del and enter keys are too close to one another... > > So my other questions are: > > - Where does Cucumber take its DB data from? Does it use the dev DB? > Does it copy the data from my dev DB into the te

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

2008-09-28 Thread Fernando Perez
Bloody keyboard! del and enter keys are too close to one another... So my other questions are: - Where does Cucumber take its DB data from? Does it use the dev DB? Does it copy the data from my dev DB into the test DB? When I run rake features while my dev mongrel is running, I see some stuff g

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

2008-09-28 Thread Scott Taylor
On Sep 28, 2008, at 2:50 PM, Fernando Perez wrote: Is there somewhere a real documentation about using Cucumber + Webrat in a Rails project? For instance it seems that Cucumber doesn't understand the word "Given" like Story Runner does. -- How about this? http://github.com/aslakhelleso

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

2008-09-28 Thread Fernando Perez
Is there somewhere a real documentation about using Cucumber + Webrat in a Rails project? For instance it seems that Cucumber doesn't understand the word "Given" like Story Runner does. -- Posted via http://www.ruby-forum.com/. ___ rspec-users mailing l