Sha256: 8620efcb9a9f531fb5298684f901326d040c0708bbf6520d95161a8df3bfa993

Contents?: true

Size: 242 Bytes

Versions: 6

Compression:

Stored size: 242 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)
  end
end

Version data entries

6 entries across 3 versions & 2 rubygems

Version Path
apl-library-0.0.90 vendor/bundle/ruby/1.9.1/gems/mocha-1.0.0/test/assertions.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/apl-library-0.0.90/vendor/bundle/ruby/1.9.1/gems/mocha-1.0.0/test/assertions.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/apl-library-0.0.90/vendor/bundle/ruby/2.1.0/gems/mocha-1.0.0/test/assertions.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/mocha-1.0.0/test/assertions.rb
mocha-1.0.0 test/assertions.rb
mocha-1.0.0.alpha test/assertions.rb