lib/bogus/injector.rb in bogus-0.0.4 vs lib/bogus/injector.rb in bogus-0.1.0

- old
+ new

@@ -42,9 +42,19 @@ def class_methods(klass) inject(ClassMethods, klass: klass) end + def active_record_accessors(klass) + inject(ActiveRecordAccessors, klass: klass) + end + + def method_copiers + copiers = [method(:class_methods), method(:instance_methods)] + copiers << method(:active_record_accessors) if configuration.fake_ar_attributes + copiers + end + def have_received_matcher inject(HaveReceivedMatcher) end def interactions_repository