Sha256: 24a5c11e6df507228252ad885304a643bbce6116c2ab952aa429e16a4a764efa
Contents?: true
Size: 618 Bytes
Versions: 10
Compression:
Stored size: 618 Bytes
Contents
# require 'codeclimate-test-reporter' # ::CodeClimate::TestReporter.start require 'coveralls' Coveralls.wear! require 'bundler/setup' Bundler.setup require 'rspec' require 'libis-services' def check_container(expected, result) case expected when Array expect(result).to be_a Array expected.each_with_index { |value, i| check_container(value, result[i]) } when Hash expect(result).to be_a Hash expected.each_key do |key| expect(result[key]).not_to be_nil check_container(expected[key], result[key]) end else expect(result).to eq expected end end
Version data entries
10 entries across 10 versions & 1 rubygems