Sha256: e4f0a37dd96140c478f661ef5c72434bb08c000d99ea768c750e586ac1c5f116
Contents?: true
Size: 304 Bytes
Versions: 19
Compression:
Stored size: 304 Bytes
Contents
require 'mocha/ruby_version' module Assertions def assert_method_visibility(object, method_name, visiblity) method_key = Mocha::PRE_RUBY_V19 ? method_name.to_s : method_name.to_sym assert object.send("#{visiblity}_methods").include?(method_key), "#{method_name} is not #{visiblity}" end end
Version data entries
19 entries across 19 versions & 2 rubygems