Re: [rspec-users] any idea why spec_server gets 'cannot remove Object' error?

2009-07-01 Thread Tim Harper
Hi, On Thu, Jun 25, 2009 at 5:03 AM, Tom Hoen wrote: > I tried to vote a +1, but get this after clicking the Comment button: > >   There was a problem serving the requested page. > >   Now you're wondering, "what can I do about it!?!". Well... That's lame. votes have been coming in on other issue

Re: [rspec-users] Integrate or isolate views?

2009-07-01 Thread Matt Wynne
On 1 Jul 2009, at 18:14, Zach Dennis wrote: On Wed, Jul 1, 2009 at 1:10 PM, Pat Maddox wrote: On Sun, Jun 28, 2009 at 11:56 AM, Sarah Allen wrote: I find that testing views independently is useful just to catch HTML errors that can sometime creep in during a re-factor. These check impor

Re: [rspec-users] Integrate or isolate views?

2009-07-01 Thread Zach Dennis
On Sun, Jun 28, 2009 at 10:32 AM, Jesse Crockett wrote: > Hello, > > I've been trying for two years to pick up BDD.  I'm making progress, > have just read through the chapters in The RSpec Book on spec'ing views > and controllers. > > What is the difference between using integrate_views and doing w

Re: [rspec-users] Integrate or isolate views?

2009-07-01 Thread Zach Dennis
On Wed, Jul 1, 2009 at 1:10 PM, Pat Maddox wrote: > On Sun, Jun 28, 2009 at 11:56 AM, Sarah Allen wrote: >> I find that testing views independently is useful just to catch HTML errors >> that can sometime creep in during a re-factor.  These check important >> details that would be more tedious usin

Re: [rspec-users] Integrate or isolate views?

2009-07-01 Thread Pat Maddox
On Sun, Jun 28, 2009 at 11:56 AM, Sarah Allen wrote: > I find that testing views independently is useful just to catch HTML errors > that can sometime creep in during a re-factor.  These check important > details that would be more tedious using cucumber +1 Pat ___

Re: [rspec-users] [Rails] Controller testing problem

2009-07-01 Thread Matt Wynne
On 1 Jul 2009, at 12:48, Fernando Perez wrote: Is there a way for RSpec to skip the filters in tests? Or to stop ApplicationController to derive from SiteController? That's a perfect use case for mocks and/or stubs. Indeed. Another way to do this is to test a special subclass of SiteContro

[rspec-users] Selenium, Rspec in ruby. Start selenium server in code

2009-07-01 Thread Kga Agk
I got it to work in ruby, but I have to start the selenium servver manualy before I runn the program. That is unesesary mutch work and complicated. Is there a way to start the selenium server inside the code and stop it at the end? Here is a code example i got to work... it is a bit messy

Re: [rspec-users] [Rails] Controller testing problem

2009-07-01 Thread Fernando Perez
> Is there a way for RSpec to skip the filters in tests? Or to stop > ApplicationController to derive from SiteController? That's a perfect use case for mocks and/or stubs. -- Posted via http://www.ruby-forum.com/. ___ rspec-users mailing list rspec-user

[rspec-users] [Rails] Controller testing problem

2009-07-01 Thread Ignacy Moryc
Hi, I'm working on a legacy app - it was created in 1.2.5 then over time ported to 2.3. It has absolutely no tests - and I'm trying to fix that in between adding new functionality. My problem right now is that my ApplicationController is running before_filters for setting different request variab

Re: [rspec-users] Integrate or isolate views?

2009-07-01 Thread Pat Maddox
If your controllers are fat, test in isolation. For skinny controllers I will sometimes forgo controller specs altogether and implicitly verify the integration through cucumber features. Sometimes there's something funky that makes the cucumber failure output difficult to interpret, and controller