Sha256: c178f224a68028708e177704bd5e12b3da3468b0460a4a0458ef537402b9ef12

Contents?: true

Size: 403 Bytes

Versions: 2

Compression:

Stored size: 403 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 "should get the correct resource" do
      expect(a_get("/keys/1")).to have_been_made
    end

    it "should return 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.2.0 spec/gitlab/client/keys_spec.rb
gitlab-4.1.0 spec/gitlab/client/keys_spec.rb