debian-mirror-gitlab/spec/lib/gitlab/kubernetes/kubeconfig/entry/user_spec.rb
2021-10-27 15:23:28 +05:30

14 lines
340 B
Ruby

# frozen_string_literal: true
require 'spec_helper'
RSpec.describe Gitlab::Kubernetes::Kubeconfig::Entry::User do
describe '#to_h' do
let(:name) { 'name' }
let(:token) { 'token' }
subject { described_class.new(name: name, token: token).to_h }
it { is_expected.to eq({ name: name, user: { token: token } }) }
end
end