# File lib/dm-core/spec/shared/adapter_spec.rb, line 3 3: def self.adapter_supports?(*methods) 4: 5: # FIXME obviously this needs a real fix! 6: # -------------------------------------- 7: # Probably, delaying adapter_supports? 8: # to be executed after DataMapper.setup 9: # has been called will solve our current 10: # problem with described_type() being nil 11: # for as long as DataMapper.setup wasn't 12: # called 13: return true if ENV['ADAPTER_SUPPORTS'] == 'all' 14: 15: methods.all? do |method| 16: # TODO: figure out a way to see if the instance method is only inherited 17: # from the Abstract Adapter, and not defined in it's class. If that is 18: # the case return false 19: 20: # CRUD methods can be inherited from parent class 21: described_type.instance_methods.any? { |instance_method| method.to_s == instance_method.to_s } 22: end 23: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.