debian-mirror-gitlab/spec/lib/gitlab/kubernetes/kubeconfig/entry/user_spec.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
345 B
Ruby
Raw Normal View History

2021-10-27 15:23:28 +05:30
# frozen_string_literal: true
2022-10-11 01:57:18 +05:30
require 'fast_spec_helper'
2021-10-27 15:23:28 +05:30
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