test/mock/dummy_class.rb in rubyless-0.3.3 vs test/mock/dummy_class.rb in rubyless-0.3.4
- old
+ new
@@ -9,12 +9,11 @@
:children => ['Dummy'],
:project => 'Dummy',
:id => {:class => Number, :method => :zip},
:name => String,
:foo => :bar
- safe_method :defaults => {:nil => true},
- :spouse => 'Dummy',
- :husband => {:class => 'Dummy'}
+ safe_context :spouse => 'Dummy',
+ :husband => {:class => 'Dummy'}
safe_attribute :age, :friend_id, :log_at, :format
def initialize(name = 'dummy')
@name = name
\ No newline at end of file