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

Version Path
kaui-2.1.0 test/unit/kaui/tenant_test.rb
kaui-2.0.4 test/unit/kaui/tenant_test.rb
kaui-2.0.3 test/unit/kaui/tenant_test.rb
kaui-2.0.2 test/unit/kaui/tenant_test.rb
kaui-2.0.1 test/unit/kaui/tenant_test.rb
kaui-2.0.0 test/unit/kaui/tenant_test.rb
kaui-1.4.1 test/unit/kaui/tenant_test.rb
kaui-1.4.0 test/unit/kaui/tenant_test.rb
kaui-1.3.0 test/unit/kaui/tenant_test.rb
kaui-1.2.0 test/unit/kaui/tenant_test.rb
kaui-1.1.0 test/unit/kaui/tenant_test.rb
kaui-1.0.0 test/unit/kaui/tenant_test.rb
kaui-0.16.2 test/unit/kaui/tenant_test.rb
kaui-0.16.1 test/unit/kaui/tenant_test.rb
kaui-0.16.0 test/unit/kaui/tenant_test.rb
kaui-0.15.5 test/unit/kaui/tenant_test.rb
kaui-0.15.4 test/unit/kaui/tenant_test.rb
kaui-0.15.3 test/unit/kaui/tenant_test.rb
kaui-0.15.2 test/unit/kaui/tenant_test.rb
kaui-0.15.1 test/unit/kaui/tenant_test.rb