Re: [rspec-users] [ANN/ADV] "Scripted GUI Testing With Ruby" book (uses RSpec)

2008-08-05 Thread David Chelimsky
On Tue, Aug 5, 2008 at 11:47 PM, Ian Dees <[EMAIL PROTECTED]> wrote: > Hi, all. > > The publishers have just thrown the switch to make my new book, > "Scripted GUI Testing With Ruby," available for purchase in both PDF > and "analog." Congratulations Ian! > > http://www.pragprog.com/titles/idgtr

[rspec-users] [ANN/ADV] "Scripted GUI Testing With Ruby" book (uses RSpec)

2008-08-05 Thread Ian Dees
Hi, all. The publishers have just thrown the switch to make my new book, "Scripted GUI Testing With Ruby," available for purchase in both PDF and "analog." http://www.pragprog.com/titles/idgtr The book uses RSpec heavily throughout (both example notation and the Story Runner) as it builds up a s

Re: [rspec-users] Spec Server on Windows - missing fork

2008-08-05 Thread Jim Gay
On Aug 6, 2008, at 12:04 AM, David Chelimsky wrote: On Sat, Aug 2, 2008 at 3:43 PM, Luis Lavena <[EMAIL PROTECTED]> wrote: On Sat, Aug 2, 2008 at 9:04 PM, Mark Wilden <[EMAIL PROTECTED]> wrote: spec_server is one of the hidden gems of the RSpec world. It's not completely a slam-dunk to use,

Re: [rspec-users] Spec Server on Windows - missing fork

2008-08-05 Thread David Chelimsky
On Sat, Aug 2, 2008 at 3:43 PM, Luis Lavena <[EMAIL PROTECTED]> wrote: > On Sat, Aug 2, 2008 at 9:04 PM, Mark Wilden <[EMAIL PROTECTED]> wrote: >> spec_server is one of the hidden gems of the RSpec world. It's not >> completely a slam-dunk to use, and I know people who don't use it because of >> va

Re: [rspec-users] Writing specs for a plugin module for ActionController

2008-08-05 Thread David Chelimsky
On Thu, Jul 31, 2008 at 2:02 PM, Leslie Freeman <[EMAIL PROTECTED]> wrote: > Hello, > I'm trying to spec a plugin that includes a module that adds functionality > to ActionController below is what I've come up with: > > # vendor/plugins/custom_attribute_fu/spec/active_record_spec.rb > require File.

Re: [rspec-users] HTML Story Formatter

2008-08-05 Thread David Chelimsky
On Tue, Jul 29, 2008 at 2:28 PM, Joseph Wilk <[EMAIL PROTECTED]> wrote: >> Ahh, good to know. Does that mean that the HTML isn't outputted until >> all of the scenario's are ran for a particular story? > > Exactly. It made the html much nicer but did loose that per scenario > output. I added a pro

Re: [rspec-users] Autotest Doesn't Run Old Test::Unit Tests After Install

2008-08-05 Thread David Chelimsky
On Tue, Aug 5, 2008 at 12:19 PM, Matt Wynne <[EMAIL PROTECTED]> wrote: > Hi, > > We have a biggish rails app with a bunch of 'legacy' Test::Unit tests, > but we're moving over to rspec for all our new work. > > We're going to be carrying these legacy tests around for a good while > though, so they

Re: [rspec-users] Rails controller specs and private helper methods

2008-08-05 Thread Steve Eley
On Tue, Aug 5, 2008 at 9:09 AM, Luis Lavena <[EMAIL PROTECTED]> wrote: > > Do you guys think that will be best to put the resource_class stub > inside the actions and create another context to deal with those > internals? I would. In fact, if it were really necessary to treat a generic resource a

Re: [rspec-users] Autotest quits when code has errors

2008-08-05 Thread Evan Dorn
David Chelimsky wrote: > What do you mean "it quits back to the command line"? Autotest stops running and I get a command prompt again. > There has not been a 1.1.5 release, so I'm guessing you're using code > from github, right? Yes, I'm using a version from github, in a Rails 2.1 project. rsp

Re: [rspec-users] Autotest quits when code has errors

2008-08-05 Thread Matt Wynne
Mark Wilden wrote: > > It sounds like it might be an RSpec 1.1.5 thing. I've used 1.1.4 with > autotest without seeing the problem you describe. > I get a similar-ish thing: autotest doesn't actually quit, but I get no growl notification when there's a 'compile' error, so it seems like autotes

[rspec-users] Autotest Doesn't Run Old Test::Unit Tests After Install

2008-08-05 Thread Matt Wynne
Hi, We have a biggish rails app with a bunch of 'legacy' Test::Unit tests, but we're moving over to rspec for all our new work. We're going to be carrying these legacy tests around for a good while though, so they need to play together nicely. Before I installed the rspec plugins, autotest would

[rspec-users] Rails controller specs and private helper methods

2008-08-05 Thread Luis Lavena
Hello guys, Been a while since last time I worked with Rails so is taking me a while get back to full speed. For a specific scenario I'm facing right now, I required to implement a generic REST controller that accept any kind of resource and provide a @collection or @record to work with. I take

Re: [rspec-users] Rspec doesn't pickup the status code correctly.

2008-08-05 Thread J2M
I'm not having much luck posting here, every other reply seems to go astray! So if I double post sorry! I'm using Rails 2.1 Rspec 1.1.4 Any ideas why this isn't giving the correct response in Rspec but is in the wild? On Aug 4, 4:31 pm, J2M <[EMAIL PROTECTED]> wrote: > On Aug 4, 5:16 am, Steve

Re: [rspec-users] it_should_behave_like and arguments

2008-08-05 Thread Luis Lavena
On Tue, Aug 5, 2008 at 10:12 AM, David Chelimsky <[EMAIL PROTECTED]> wrote: > On Sat, Aug 2, 2008 at 6:49 PM, Luis Lavena <[EMAIL PROTECTED]> wrote: >> Hello list, >> >> I'm trying to setup some shared specs to describe a CRUD controller >> and want to reuse the logic in it. >> >> I'm basing most o

Re: [rspec-users] it_should_behave_like and arguments

2008-08-05 Thread David Chelimsky
On Sat, Aug 2, 2008 at 6:49 PM, Luis Lavena <[EMAIL PROTECTED]> wrote: > Hello list, > > I'm trying to setup some shared specs to describe a CRUD controller > and want to reuse the logic in it. > > I'm basing most of the examples in latest David's post about it [1] > > The thing is that looking at