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.
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
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
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
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
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
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)
>
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