Sha256: 9980c57e5a2e587ca1fc310b9df268c770cde6599ee98d5025ed9824ce9a8d9c
Contents?: true
Size: 280 Bytes
Versions: 1
Compression:
Stored size: 280 Bytes
Contents
module Assertions def assert_method_visiblity(object, method_name, visiblity) method_key = RUBY_VERSION < '1.9' ? method_name.to_s : method_name.to_sym assert object.send("#{visiblity}_methods", false).include?(method_key), "#{method_name} is not #{visiblity}" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mocha-1.1.0 | test/assertions.rb |