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

Version Path
mocha-1.11.2 test/assertions.rb
mocha-1.11.1 test/assertions.rb
mocha-1.11.0 test/assertions.rb
mocha-1.10.2 test/assertions.rb
mocha-1.10.1 test/assertions.rb
mocha-1.10.0 test/assertions.rb
mocha-1.10.0.beta.1 test/assertions.rb
mocha-1.10.0.alpha test/assertions.rb
mocha-1.9.0 test/assertions.rb
cocoapods-dependency-html-0.0.2 vendor/bundle/gems/mocha-1.8.0/test/assertions.rb
cocoapods-dependency-html-0.0.1 vendor/bundle/gems/mocha-1.8.0/test/assertions.rb
mocha-1.8.0 test/assertions.rb
mocha-1.7.0 test/assertions.rb
mocha-1.6.0 test/assertions.rb
mocha-1.5.0 test/assertions.rb
mocha-1.4.0 test/assertions.rb
mocha-1.3.0 test/assertions.rb
mocha-1.2.1 test/assertions.rb
mocha-1.2.0 test/assertions.rb