Re: [rspec-users] Can I use mocking in this way?

2010-04-03 Thread David Chelimsky
On Sat, Apr 3, 2010 at 10:45 PM, Julian Leviston wrote: > > On 04/04/2010, at 7:32 AM, David Chelimsky wrote: > >> On Sat, Apr 3, 2010 at 8:56 AM, Vojto Rinik wrote: >>> Hello RSpec users! >>> I have one abstract class and a few classes that inherit from that abstract >>> one. >> >> Ruby doesn't

Re: [rspec-users] Can I use mocking in this way?

2010-04-03 Thread Julian Leviston
Sorry I meant send AND __send__ Julian. On 04/04/2010, at 11:45 AM, Julian Leviston wrote: > > On 04/04/2010, at 7:32 AM, David Chelimsky wrote: > >> On Sat, Apr 3, 2010 at 8:56 AM, Vojto Rinik wrote: >>> Hello RSpec users! >>> I have one abstract class and a few classes that inherit from tha

Re: [rspec-users] Can I use mocking in this way?

2010-04-03 Thread Julian Leviston
On 04/04/2010, at 7:32 AM, David Chelimsky wrote: > On Sat, Apr 3, 2010 at 8:56 AM, Vojto Rinik wrote: >> Hello RSpec users! >> I have one abstract class and a few classes that inherit from that abstract >> one. > > Ruby doesn't have abstract classes. You can have a base class that you > don't

Re: [rspec-users] Can I use mocking in this way?

2010-04-03 Thread David Chelimsky
On Sat, Apr 3, 2010 at 8:56 AM, Vojto Rinik wrote: > Hello RSpec users! > I have one abstract class and a few classes that inherit from that abstract > one. Ruby doesn't have abstract classes. You can have a base class that you don't _intend_ to instantiate directly, but there's nothing stopping

[rspec-users] Can I use mocking in this way?

2010-04-03 Thread Vojto Rinik
Hello RSpec users! I have one abstract class and a few classes that inherit from that abstract one. I'd like to test if my abstract class works with RSpec, but I can't test directly abstract class (or can I?) and I don't wanna test some particular class that inherits, because I wanna test gener