[rspec-users] [Cucumber] host!

2009-02-21 Thread Mark Wilden
I'm trying to set a specific host that all my Cucumber steps should use. Putting 'host! "beta.rupture.local"' in Before in env.rb doesn't produce any errors, but it doesn't seem to be making the next request use that host, either. If I explicitly create a step whose definition includes 'host! "bet

Re: [rspec-users] Mocking base class methods

2009-02-21 Thread Tobi
Zach Dennis wrote: > +1 to composition over inheritance here. Mocking at different layers > of an inheritance hierarchy sounds like trouble and screams to pull > that thing apart. Good point! I've already tried the composition approach. It solves the testabilitiy problems, but it doesn't feel rig

Re: [rspec-users] Mocking base class methods

2009-02-21 Thread Zach Dennis
On Sat, Feb 21, 2009 at 6:31 AM, Tobi wrote: > Hi! > > I need to write some wrapper classes, that derive from SWIG generated > proxy classes for some C/C++ extensions. > > The Ruby wrapper classes need to do a lot of 'super' calls to the base > classes generated by SWIG. > > The question is: Is th

Re: [rspec-users] [OT] Googled for 'cucumber page caching'

2009-02-21 Thread Phlip
Bart Zonneveld wrote: ...and found this as 4th result: http://www.cafepress.com/foodparadise/4708787 I have a husband named Dean Wormer at Faber. Still want to show me your cucumber? -- Marion Wormer ___ rspec-users mailing list rspec-users@

[rspec-users] [OT] Googled for 'cucumber page caching'

2009-02-21 Thread Bart Zonneveld
...and found this as 4th result: http://www.cafepress.com/foodparadise/4708787 cheers, bartz ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] Mocking / stubbing errors for ActiveRecord

2009-02-21 Thread Martin
Hello alltogether, thanks for your help. A mixture of stub_model and .errors.stub!() helped me to solve my problem. I also stumbled across the right arguments of have_tag. I thought it's similar to assert_select as the docs said. But it isn't. I found http://rubypond.com/articles/2008/03/31

[rspec-users] Mocking base class methods

2009-02-21 Thread Tobi
Hi! I need to write some wrapper classes, that derive from SWIG generated proxy classes for some C/C++ extensions. The Ruby wrapper classes need to do a lot of 'super' calls to the base classes generated by SWIG. The question is: Is there any way to make RSpec mock a base class and record/verify