Sha256: 8700407b77e9baf3bdef0c12cc5f6250dcb063b4608300fdfe931bab6c1d3674
Contents?: true
Size: 486 Bytes
Versions: 3
Compression:
Stored size: 486 Bytes
Contents
require "fog/schema/data_validator" module Minitest::Assertions # Compares a hash's structure against a reference schema hash and returns true # when they match. Fog::Schema::Datavalidator is used for the validation. def assert_match_schema(actual, schema, message = nil, options = {}) validator = Fog::Schema::DataValidator.new message = "expected:\n #{actual}\nto be equivalent of:\n#{schema}" assert(validator.validate(actual, schema, options), message) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
fog-core-2.6.0 | lib/fog/test_helpers/minitest/assertions.rb |
fog-core-2.5.0 | lib/fog/test_helpers/minitest/assertions.rb |
fog-core-2.4.0 | lib/fog/test_helpers/minitest/assertions.rb |