Re: [rspec-users] Testing a rails controller *outside* of spec/controllers

2010-03-10 Thread Scott Taylor
On Mar 11, 2010, at 1:26 AM, Nicolás Sanguinetti wrote: > We have an app that has "extensions" that are built as rails engines. > Each engine needs some code in the controllers, which we solved as > "include this module, call a method". In order to test it, though, we > don't want to "copy" the t

Re: [rspec-users] Testing a rails controller *outside* of spec/controllers

2010-03-10 Thread Scott Taylor
On Mar 11, 2010, at 1:26 AM, Nicolás Sanguinetti wrote: > We have an app that has "extensions" that are built as rails engines. > Each engine needs some code in the controllers, which we solved as > "include this module, call a method". In order to test it, though, we > don't want to "copy" the t

[rspec-users] Testing a rails controller *outside* of spec/controllers

2010-03-10 Thread Nicolás Sanguinetti
We have an app that has "extensions" that are built as rails engines. Each engine needs some code in the controllers, which we solved as "include this module, call a method". In order to test it, though, we don't want to "copy" the test for how that works into each engine, so the idea is to write t

[rspec-users] How to test helpers in a Sinatra app?

2010-03-10 Thread Chris Gunnels
I am using rspec and trying to test some helpers, but for some reason can't get rspec to read my methods in my helpers.rb file. I include the helpers file in the helpers spec...in the spec I run a test with a method from my helpers file and I get an error saying: undefined method for my_method Any

Re: [rspec-users] webrat methods are undefined

2010-03-10 Thread Amit Kulkarni
Hello, I recently updated rspec-rails from 1.1.12 to 1.3.0 and rspec from 1.1.12 to 1.3.0 Now while running cucumber i am facing a problem. It says as 'undefined method 'visit'' my cucumber version is 0.3.99 and webrat version is 0.7.0. Before upgrading the gem it ran well but now above error is

Re: [rspec-users] Spork in RSpec 2

2010-03-10 Thread Ashley Moran
On Mar 10, 2010, at 1:46 pm, David Chelimsky wrote: > AFAIK, no. Please add a comment to the issue saying you're working on it. Done. >> * are there any potential issues that people with RSpec 2 knowledge can >> forsee? I don't want to lose time on known gotchas. > > * You will need the othe

Re: [rspec-users] Spork in RSpec 2

2010-03-10 Thread David Chelimsky
On Wed, Mar 10, 2010 at 7:31 AM, Ashley Moran wrote: > Hi > > I've just started using RSpec 2 in Rails 3 and I'm incredibly frustrated by > the time it takes to boot Rails, it's a real TDD bottleneck.  The obvious > solution is Spork, which is currently not possible with RSpec 2 because it > la

[rspec-users] Spork in RSpec 2

2010-03-10 Thread Ashley Moran
Hi I've just started using RSpec 2 in Rails 3 and I'm incredibly frustrated by the time it takes to boot Rails, it's a real TDD bottleneck. The obvious solution is Spork, which is currently not possible with RSpec 2 because it lacks DRb support[1]. I've cloned RSpec and I'm about to start wor