test/mock/dummy_class.rb in rubyless-0.4.0 vs test/mock/dummy_class.rb in rubyless-0.5.0
- old
+ new
@@ -2,11 +2,11 @@
require File.dirname(__FILE__) + '/dummy_module'
require File.dirname(__FILE__) + '/property_column'
class Dummy < RubyLess::ActiveRecordMock
include DummyModule
- include RubyLess::SafeClass
+ include RubyLess
attr_reader :name
safe_method [:ancestor?, Dummy] => Boolean
safe_method :parent => {:class => 'Dummy', :special_option => 'foobar'},
@@ -14,11 +14,10 @@
:project => 'Dummy',
:image => 'Dummy',
:id => {:class => Number, :method => :zip},
:name => String,
:foo => :bar,
- [:width, {:mode => String, :type => String, 'nice' => Boolean}] => String,
- [:width] => String
+ [:width, {:mode => String, :type => String, 'nice' => Boolean}] => String
safe_context :spouse => 'Dummy',
:husband => {:class => 'Dummy', :context => {:clever => 'no'}}
safe_attribute :age, :friend_id, :log_at, :format