Re: [rspec-users] !~ seems to not work

2011-07-29 Thread Rick DeNatale
On Thu, Jul 28, 2011 at 1:04 PM, David Chelimsky wrote: > On Jul 28, 2011, at 11:40 AM, Roger Pack wrote: > > >>> 'abc' ~! /def/ > > => true > > > > 'abc'.should !~ /def/ > > > > fails though. Seemed unexpected... > > -roger- > > This comes up from time to time but it's a bitch to google for.

Re: [rspec-users] !~ seems to not work

2011-07-29 Thread David Chelimsky
On Jul 29, 2011, at 6:04 AM, Rick DeNatale wrote: > On Thu, Jul 28, 2011 at 1:04 PM, David Chelimsky wrote: > On Jul 28, 2011, at 11:40 AM, Roger Pack wrote: > > >>> 'abc' ~! /def/ > > => true > > > > 'abc'.should !~ /def/ > > > > fails though. Seemed unexpected... > > -roger- > > This com

Re: [rspec-users] !~ seems to not work

2011-07-29 Thread Rick DeNatale
On Fri, Jul 29, 2011 at 7:59 AM, David Chelimsky wrote: > Thanks for setting things straight. Just happy to be here sir! -- Rick DeNatale Blog: http://talklikeaduck.denhaven2.com/ Github: http://github.com/rubyredrick Twitter: @RickDeNatale WWR: http://www.workingwithrails.com/person/9021-ric

[rspec-users] does anyone's rspec actually exit on the first ^C?

2011-07-29 Thread John Hinnegan
So, you start running your (full and long) rspec suite (before a checkin), and you realize you [forgot to migrate test|didn't add some config value|missed a curly brace]. You hit Ctrl+C and get this mesage Exiting... Interrupt again to exit immediately. Then the tests march on. My question is, do

Re: [rspec-users] does anyone's rspec actually exit on the first ^C?

2011-07-29 Thread David Chelimsky
On Jul 29, 2011, at 11:52 AM, John Hinnegan wrote: > So, you start running your (full and long) rspec suite (before a checkin), > and you realize you [forgot to migrate test|didn't add some config > value|missed a curly brace]. > > You hit Ctrl+C and get this mesage > Exiting... Interrupt agai

[rspec-users] How can I make before/after all a method?

2011-07-29 Thread John Hinnegan
I would like to turn this: describe TestClass do before :all do # set some config end after :all do # restore some config end # do a bunch of tests to this end into describe TestClass do with_config_value(X) # do a bunch of tests to this end Basically, I want to include before :all and after

Re: [rspec-users] How can I make before/after all a method?

2011-07-29 Thread Matt Wynne
On 29 Jul 2011, at 18:36, John Hinnegan wrote: > I would like to turn this: > > describe TestClass do > before :all do > # set some config > end > after :all do > # restore some config > end > # do a bunch of tests to this > end > > into > > describe TestClass do > with_config_value(X) >

Re: [rspec-users] How can I make before/after all a method?

2011-07-29 Thread David Chelimsky
On Jul 29, 2011, at 12:36 PM, John Hinnegan wrote: > I would like to turn this: > > describe TestClass do > before :all do > # set some config > end > after :all do > # restore some config > end > # do a bunch of tests to this > end > > into > > describe TestClass do > with_config_value(X