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
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
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
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
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