Sha256: a9e74dbdf37e43c53a80984a3475e0c3c07da9a3fda40693f7ae353ecdc2cdd3
Contents?: true
Size: 545 Bytes
Versions: 33
Compression:
Stored size: 545 Bytes
Contents
require 'test_helper' require 'symmetric-encryption' module Kaui class TenantTest < ActiveSupport::TestCase test "basic" do SymmetricEncryption.load!('config/symmetric-encryption.yml', 'test') t = Tenant.new(:name => 'archibald', :api_key => 'kk', :api_secret => 's$per$ecret!', :kb_tenant_id => 'e87a41c8-bc04-4de7-914e-514028b39af9') t.save result = Tenant.find_by_name('archibald') assert_not_nil result assert_equal t, result assert_equal t.api_secret, result.api_secret end end end
Version data entries
33 entries across 33 versions & 1 rubygems