Sha256: cf1cb42b3d2643de970b18866f297013437bf148cd7bfa0f55a7ecce9020e374

Contents?: true

Size: 527 Bytes

Versions: 3

Compression:

Stored size: 527 Bytes

Contents

module ActiveMocker
module Mock
  module TemplateMethods

    def self.included(base)
      base.extend(ClassMethods)
    end

    module ClassMethods

      def attributes
        HashWithIndifferentAccess.new({})
      end

      def types
        ActiveMocker::Mock::HashProcess.new({}, method(:build_type))
      end

      def associations
        {}
      end

      def mocked_class
        ''
      end

      def attribute_names
        []
      end

      def primary_key
        ''
      end

    end

  end
end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
active_mocker-1.7.beta3 lib/active_mocker/mock/template_methods.rb
active_mocker-1.7.beta2 lib/active_mocker/mock/template_methods.rb
active_mocker-1.7.beta1 lib/active_mocker/mock/template_methods.rb