spec/gitlab/client/namespaces_spec.rb in gitlab-4.2.0 vs spec/gitlab/client/namespaces_spec.rb in gitlab-4.3.0

- old
+ new

@@ -1,20 +1,20 @@ require 'spec_helper' describe Gitlab::Client do - it { should respond_to :namespaces } + it { is_expected.to respond_to :namespaces } describe ".namespaces" do before do stub_get("/namespaces", "namespaces") @namespaces = Gitlab.namespaces end - it "should get the correct resource" do + it "gets the correct resource" do expect(a_get("/namespaces")).to have_been_made end - it "should return a paginated response of namespaces" do + it "returns a paginated response of namespaces" do expect(@namespaces).to be_a Gitlab::PaginatedResponse expect(@namespaces.first.path).to eq("john") expect(@namespaces.first.kind).to eq("user") end end