Sha256: 85d7a675f9be2facecd37dd5c5da4861ff3a07ddc60c5c995fd538c2aa549941
Contents?: true
Size: 477 Bytes
Versions: 14
Compression:
Stored size: 477 Bytes
Contents
require File.expand_path('../../spec_helper', __FILE__) permutations = %w(mock proxy instance_of).permutation.map { |parts| parts.join('.') } permutations.each do |permutation| describe permutation, is_mock: true, is_proxy: true, is_instance_of: true do include_context 'mock + instance_of' include ProxyDefinitionCreatorHelpers define_method(:double_definition_creator_for) do |object, &block| eval(permutation + '(object, &block)') end end end
Version data entries
14 entries across 14 versions & 1 rubygems