Sha256: 696943acb93c6e47e2e7baeb65aabd38541d0b46025a74e20d6d1d706ab21193
Contents?: true
Size: 1.01 KB
Versions: 2
Compression:
Stored size: 1.01 KB
Contents
require 'spec_helper' describe Gitlab::Client do describe ".deployments" do before do stub_get("/projects/3/deployments", "deployments") @deployments = Gitlab.deployments(3) end it "gets the correct resource" do expect(a_get("/projects/3/deployments")).to have_been_made end it "returns a paginated response of project's deployments" do expect(@deployments).to be_a Gitlab::PaginatedResponse end end describe ".deployment" do before do stub_get("/projects/3/deployments/42", "deployment") @deployment = Gitlab.deployment(3, 42) end it "gets the correct resource" do expect(a_get("/projects/3/deployments/42")).to have_been_made end it "returns a single deployment" do expect(@deployment).to be_a Gitlab::ObjectifiedHash end it "returns information about an deployment" do expect(@deployment.id).to eq(42) expect(@deployment.deployable.commit.id).to eq("a91957a858320c0e17f3a0eca7cfacbff50ea29a") end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
gitlab-4.4.0 | spec/gitlab/client/deployments_spec.rb |
gitlab-4.3.0 | spec/gitlab/client/deployments_spec.rb |