Sha256: 15c546fd43bb624ddc2a47df8a42bd2cd047884af6a3a68d00af2b4821dda594

Contents?: true

Size: 391 Bytes

Versions: 2

Compression:

Stored size: 391 Bytes

Contents

require 'spec_helper'

describe Gitlab::Client do
  describe ".key" do
    before do
      stub_get("/keys/1", "key")
      @key = Gitlab.key(1)
    end

    it "gets the correct resource" do
      expect(a_get("/keys/1")).to have_been_made
    end

    it "returns information about a key" do
      expect(@key.id).to eq(1)
      expect(@key.title).to eq("narkoz@helium")
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
gitlab-4.4.0 spec/gitlab/client/keys_spec.rb
gitlab-4.3.0 spec/gitlab/client/keys_spec.rb