Sha256: 5cce17437bb511e80a3c381620ec9396a814989b1558ab123f5a250fc32c1a99
Contents?: true
Size: 1.11 KB
Versions: 1
Compression:
Stored size: 1.11 KB
Contents
require 'spec_helper' describe Gitlab::Client do describe ".events" do before do stub_get("/events", "user_events") @events = Gitlab.events() end it "gets the correct resource" do expect(a_get("/events")).to have_been_made end it "it returns a response of user's events" do expect(@events).to be_a Gitlab::PaginatedResponse end end describe ".user_events" do before do stub_get("/users/1/events", "user_events") @events = Gitlab.user_events(1) end it "gets the correct resource" do expect(a_get("/users/1/events")).to have_been_made end it "returns a response of user's contribution events" do expect(@events).to be_a Gitlab::PaginatedResponse end end describe '.project_events' do before do stub_get("/1/events", "project_events") @events = Gitlab.project_events(1) end it "gets the correct resource" do expect(a_get("/1/events")).to have_been_made end it "returns a response of project's visible events" do expect(@events).to be_a Gitlab::PaginatedResponse end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gitlab-4.4.0 | spec/gitlab/client/events_spec.rb |