Re: [rspec-users] Executing multiple rspec scripts

2008-07-10 Thread Ben Mabey
Robert Stagner wrote: I'm new to RSpec. I've just installed the gem and begun experimenting with developing several scripts. From what I've seen thus far, it looks like it will aid our QA team in testing many web applications. Is there a way to execute multiple rspec test scripts from one cen

Re: [rspec-users] Executing multiple rspec scripts

2008-07-10 Thread Matt Darby
On Jul 10, 2008, at 7:19 PM, Robert Stagner wrote: I'm new to RSpec. I've just installed the gem and begun experimenting with developing several scripts. From what I've seen thus far, it looks like it will aid our QA team in testing many web applications. Is there a way to execute multipl

Re: [rspec-users] setting request.raw_post with rspec-rails

2008-07-10 Thread Francis Hwang
Yup, that's exactly what I needed -- thanks, Francis Hwang http://fhwang.net/ On Jul 9, 2008, at 9:53 PM, David Chelimsky wrote: On Jul 9, 2008, at 5:36 PM, Francis Hwang wrote: ... is there a way to do this? We have some REST-ish POSTs we'd like to spec out. In the controller this gets a

Re: [rspec-users] Whence "post" in a description?

2008-07-10 Thread Chris Sepic
Found the problem. Was not calling integrate_views at the start of the describe block. Chris Sepic wrote: > I'm having the same problem. Did you ever solve this? I'm using Rails > 1.2.6 - I recently ran a conversion plugin to convert my Test::Unit > tests to Rspec. Everything is working fine exc

[rspec-users] Executing multiple rspec scripts

2008-07-10 Thread Robert Stagner
I'm new to RSpec. I've just installed the gem and begun experimenting with developing several scripts. From what I've seen thus far, it looks like it will aid our QA team in testing many web applications. Is there a way to execute multiple rspec test scripts from one central file? -- Regards, R

Re: [rspec-users] Whence "post" in a description?

2008-07-10 Thread Chris Sepic
I'm having the same problem. Did you ever solve this? I'm using Rails 1.2.6 - I recently ran a conversion plugin to convert my Test::Unit tests to Rspec. Everything is working fine except this - response.body just returns the template name. Test::Unit: xhr(:post, :add_to_cart_xhr, ...) assert_m

Re: [rspec-users] rake task to run stories?

2008-07-10 Thread [EMAIL PROTECTED]
On Jul 10, 2:59 pm, Jim Morris <[EMAIL PROTECTED]> wrote: > Hi, > > Shouldn't there be a rake task in rails to run the stories? There is one, but it needs a tweak. It uses the ruby method instead of sh, so you only get output if it fails. I'll get that fixed. > and shouldn't rake spec run the sto

[rspec-users] rake task to run stories?

2008-07-10 Thread Jim Morris
Hi, Shouldn't there be a rake task in rails to run the stories? and shouldn't rake spec run the stories as well? Right now it seems I run all my specs via rake spec, but then have to run the stories by ruby stories/all.rb Am I missing something? BTW using stories for rails integration testin

[rspec-users] Baffled by error running rake rspec:models

2008-07-10 Thread Lori M Olson
In my application, we connect to 2 databases, so we make a lot of specs to test this type of interaction. When I run individual model specs using spec, or using rake spec SPEC=xxx, they run *fine*. When I run rake spec:models, all the specs which connect to the 2nd database fail on errors

[rspec-users] Persistence across steps in stories

2008-07-10 Thread Miguel Gomez
Hello. I have divided my story into several steps. I have a Given requirement in one file where I create (and save) an object. Afterwards, I have a When requirement in another "steps_for" file, which i suppossed to use this object. Now this is not working for me (neither calling the objects varia

Re: [rspec-users] Can I get RSpec NOT to abort rake on failing specs?

2008-07-10 Thread Rick DeNatale
On Wed, Jul 9, 2008 at 10:09 PM, David Chelimsky <[EMAIL PROTECTED]> wrote: > On Jul 9, 2008, at 5:52 PM, Rick DeNatale wrote: > > spec:models, views, controllers and helpers are all defined already in > vendor/plugins/rspec-rails/tasks/rspec.rake, so the next keyword is being > invoked for all of