Displaying 4 results from an estimated 4 matches for "private_instance_methods".
2007 Mar 24
1
spec''ing metaprograming & rails CRUD
...''s specs should set
a bunch of instance variables (such as @comments = @post.comments)
and a bunch of instance methods in the Comments controller. How
would I spec out such a thing? I would have to use reflection in The
CRUD controller - do a bunch of no-no''s, like use
private_instance_methods, send, etc. to get to the private class methods
So It looks like I should just create a CommentsController instance,
and spec that. But now how do I practice test-first development on
the CrudController?
I have also been thinking a little bit about the specs of Rubinius.
I have no idea ho...
2012 Sep 22
4
Class, Module, Object
>> reload!
Reloading...
=> true
>> puts Class < Module
true
=> nil
>> puts Module < Class
false
=> nil
>> puts Module < Object
true
=> nil
>> puts Object < Module
false
=> nil
>> Object.parent
=> Object
The above indicates that the Class object instance inherits from the
Module object instance and the Module object instance
2006 Jul 05
2
Serialized object behaves weird
Hi!
I got a class named EinsatzFilter which I serialized to session. Before
saving to session it works afterwards I keep getting the message:
"undefined method `to_s'' for #<Person:0x38c6ab8>". "Person" is a from
ActiveRecord::Base inherited class.
Code:
class EinsatzFilter
include ApplicationHelper
attr_reader :personen, :monat, :projekte, :kunde
2007 Mar 24
0
Using spec fixtures with integration tests
...set
> a bunch of instance variables (such as @comments = @post.comments)
> and a bunch of instance methods in the Comments controller. How
> would I spec out such a thing? I would have to use reflection in The
> CRUD controller - do a bunch of no-no''s, like use
> private_instance_methods, send, etc. to get to the private class methods
>
> So It looks like I should just create a CommentsController instance,
> and spec that. But now how do I practice test-first development on
> the CrudController?
>
> I have also been thinking a little bit about the specs of...