Sha256: 2bc9507713043269cd693b5ada1333ece4772afd868fff13f10440bba03f571d

Contents?: true

Size: 411 Bytes

Versions: 4

Compression:

Stored size: 411 Bytes

Contents

unless ERBook.const_defined? :INOCHI
  fail "ERBook must be established by Inochi"
end

ERBook::INOCHI.each do |param, value|
  const = param.to_s.upcase

  unless ERBook.const_defined? const
    fail "ERBook::#{const} must be established by Inochi"
  end

  unless ERBook.const_get(const) == value
    fail "ERBook::#{const} is not what Inochi established"
  end
end

puts "Inochi establishment tests passed!"

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
erbook-9.2.1 test/erbook.rb
erbook-9.2.0 test/erbook.rb
erbook-9.1.0 test/erbook.rb
erbook-9.0.0 test/erbook.rb