debian-mirror-gitlab/spec/lib/gitlab/kubernetes/kubeconfig/entry/user_spec.rb
2022-10-11 01:57:18 +05:30

14 lines
345 B
Ruby

# frozen_string_literal: true
require 'fast_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