search for: be_large

Displaying 1 result from an estimated 1 matches for "be_large".

2007 Jun 11
2
DelegateClass fails
...######################################## class InheritedClass < Array def large? self.size >= 5 end end describe InheritedClass, "normal inheriting class is OK" do it ''works just fine'' do myclass = InheritedClass.new([1,2,3,4,5,6]) myclass.should be_large end end ############################################################ # rspec should work on DelegateClasses. Not sure how... ############################################################ class DelegateKlass < DelegateClass(Array) def initialize(array) @internal_array = array supe...