Re: [rspec-users] describing a mock_model as being an instance

2007-08-21 Thread Edward Ocampo-Gooding
Courtenay wrote: > Is there a reason it needs to be more complicated than this? > > class Foo > end > > Foo.is_a?(Class) > => true > > Foo.new.is_a?(Class) > => false You can do that? Whoa... That totally makes sense. I also found out about Object#instance_of? yesterday. Thanks for the ti

Re: [rspec-users] describing a mock_model as being an instance

2007-08-19 Thread Courtenay
On 8/19/07, Edward Ocampo-Gooding <[EMAIL PROTECTED]> wrote: > David Chelimsky wrote: > > On 8/19/07, Edward Ocampo-Gooding <[EMAIL PROTECTED]> wrote: > >> Is there a built-in way of describing a mock_model as being an instance, > >> beyond > >> stubbing the eval("Object.methods - Object.new.metho

Re: [rspec-users] describing a mock_model as being an instance

2007-08-19 Thread Edward Ocampo-Gooding
David Chelimsky wrote: > On 8/19/07, Edward Ocampo-Gooding <[EMAIL PROTECTED]> wrote: >> Is there a built-in way of describing a mock_model as being an instance, >> beyond >> stubbing the eval("Object.methods - Object.new.methods") methods to throw >> NoMethodErrors? > > Huh? Can you give an exam

Re: [rspec-users] describing a mock_model as being an instance

2007-08-19 Thread David Chelimsky
On 8/19/07, Edward Ocampo-Gooding <[EMAIL PROTECTED]> wrote: > Is there a built-in way of describing a mock_model as being an instance, > beyond > stubbing the eval("Object.methods - Object.new.methods") methods to throw > NoMethodErrors? Huh? Can you give an example of what you are trying to ach

[rspec-users] describing a mock_model as being an instance

2007-08-19 Thread Edward Ocampo-Gooding
Is there a built-in way of describing a mock_model as being an instance, beyond stubbing the eval("Object.methods - Object.new.methods") methods to throw NoMethodErrors? Edward ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.or