Sha256: e5892c82aebc35ada3d306c93e5c3bc679af8b70e0ebaf1bd50c10124c485059

Contents?: true

Size: 565 Bytes

Versions: 1

Compression:

Stored size: 565 Bytes

Contents

if ENV["COVERAGE"]
  require "simplecov"
  SimpleCov.start do
    add_filter "/test/"
  end
end

require "bundler/setup"
require "minitest/autorun"
require "mocha/minitest"
require "omniauth/strategies/matique"

OmniAuth.config.test_mode = true

def assert_has_key(key, hash, msg = nil)
  msg = message(msg) { "Expected #{hash.inspect} to have key #{key.inspect}" }
  assert hash.has_key?(key), msg
end

def refute_has_key(key, hash, msg = nil)
  msg = message(msg) { "Expected #{hash.inspect} not to have key #{key.inspect}" }
  refute hash.has_key?(key), msg
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
omniauth-matique-0.1.9 test/test_helper.rb