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

Edward Ocampo-Gooding edward.og at gmail.com
Tue Aug 21 12:54:24 EDT 2007

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? Whoaaaaa...

That totally makes sense. I also found out about Object#instance_of? yesterday.

Thanks for the tip!


More information about the rspec-users mailing list