Re: [rspec-users] Constant resolution fails in describes inside of modules using rspec 2 on ruby 1.9.1

2010-11-03 Thread Justin Ko
Use ruby 1.9.2 - sorry on my iphone On Nov 3, 4:49 pm, Rhett Sutphin wrote: > Hi, > > I've converted a couple of my smaller libraries' spec suites to rspec 2 with > no trouble.  (I'm enjoying the new version -- thanks to all involved.)  I'm > trying to convert one a larger suite now and I've r

[rspec-users] Constant resolution fails in describes inside of modules using rspec 2 on ruby 1.9.1

2010-11-03 Thread Rhett Sutphin
Hi, I've converted a couple of my smaller libraries' spec suites to rspec 2 with no trouble. (I'm enjoying the new version -- thanks to all involved.) I'm trying to convert one a larger suite now and I've run into two problems on ruby 1.9.1 (but not 1.8.7) related to constant resolution in de

Re: [rspec-users] Cucumber - before scenario outline, but just one time

2010-11-03 Thread Jon Kruger
Didn't know there was one. I'll do that, thanks. -- Posted via http://www.ruby-forum.com/. ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] Rspec-2 around/before(:all) hooks

2010-11-03 Thread Mack T.
Any ideas on how to create models in the before(:suite) block in a transaction, then not commit that transaction and roll it back in the after(:suite) block? -- Posted via http://www.ruby-forum.com/. ___ rspec-users mailing list rspec-users@rubyforge.

Re: [rspec-users] Cucumber - before scenario outline, but just one time

2010-11-03 Thread David Chelimsky
On Nov 3, 2010, at 12:04 PM, Jon Kruger wrote: > If I have a Background section and a Scenario Outline, the Background > runs once before each example in the scenario outline. Is there a hook > that before the Scenario Outline, but not before each example? Please post Cucumber questions to the C

Re: [rspec-users] Rspec-2 around/before(:all) hooks

2010-11-03 Thread Mack T.
I should have mentioned this before, but I'm using fixtures in these specs. When I took all of the fixtures out, I get the same before(:all) behavior that you got. With them in, it seems whatever happens in the before(:all) is rolled back before any examples run. Can you reproduce that behavior

[rspec-users] Cucumber - before scenario outline, but just one time

2010-11-03 Thread Jon Kruger
If I have a Background section and a Scenario Outline, the Background runs once before each example in the scenario outline. Is there a hook that before the Scenario Outline, but not before each example? Jon -- Posted via http://www.ruby-forum.com/. _

Re: [rspec-users] Rake task for focused examples

2010-11-03 Thread Lailson Bandeira
Humm, I did not know about the run_all_when_everything_filtered option. It's very useful for me… -- LAILSON BANDEIRA http://lailsonbandeira.com/ On Wed, Nov 3, 2010 at 11:12 AM, Toni Tuominen wrote: > Ok, thanks. That functionality is enough for me for now at least. > > - Toni > > On Wed, Nov 3

Re: [rspec-users] Rake task for focused examples

2010-11-03 Thread Toni Tuominen
Ok, thanks. That functionality is enough for me for now at least. - Toni On Wed, Nov 3, 2010 at 2:40 PM, David Chelimsky wrote: > On Nov 3, 2010, at 1:08 AM, Toni Tuominen wrote: > >> Hi, >> >> Is it possible to make a rake task to run examples with a certain >> filter on? In this case I want to

Re: [rspec-users] Rake task for focused examples

2010-11-03 Thread David Chelimsky
On Nov 3, 2010, at 1:08 AM, Toni Tuominen wrote: > Hi, > > Is it possible to make a rake task to run examples with a certain > filter on? In this case I want to run rake spec:focused and run only > the examples with :focus => true. Not yet. Right now (2.0.1) the only way to define filters is in

Re: [rspec-users] Hiding Test-Unit Generators ??

2010-11-03 Thread David Chelimsky
On Nov 2, 2010, at 10:59 PM, Arco wrote: > Just curious if this was ever fixed?? The rails ticket (linked below) says it is still open. If you want to stay informed about it, just go to the ticket and click "Watch Ticket". You'll get an email any time it is updated. Cheers, David > On Jul 13,

Re: [rspec-users] Not sure why let is not doing the same thing as traditional test

2010-11-03 Thread Nadal
That worked. Thanks a lot. Wish you speedy recovery Justin. take care. On Nov 2, 10:13 pm, Justin Ko wrote: > I'm under the weather so I won't be able to give you a thorough > answer. > > #let - The block is executed when you call it. > #let! - The block is "wrapped" in a before(:each) filter.

[rspec-users] Rake task for focused examples

2010-11-03 Thread Toni Tuominen
Hi, Is it possible to make a rake task to run examples with a certain filter on? In this case I want to run rake spec:focused and run only the examples with :focus => true. - Toni ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.o