Sha256: 8e89556f09ba01e46353e8378d4598578ee74cbbfa3d505b23b8f89b7ba5a7de
Contents?: true
Size: 539 Bytes
Versions: 1
Compression:
Stored size: 539 Bytes
Contents
require 'spec_helper' describe Gitlab::Client do it { should respond_to :namespaces } describe ".namespaces" do before do stub_get("/namespaces", "namespaces") @namespaces = Gitlab.namespaces end it "should get the correct resource" do expect(a_get("/namespaces")).to have_been_made end it "should return an array of namespaces" do expect(@namespaces).to be_an Array expect(@namespaces.first.path).to eq("john") expect(@namespaces.first.kind).to eq("user") end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gitlab-3.5.0 | spec/gitlab/client/namespaces_spec.rb |