diff --git a/spec/gitlab/client/issues_spec.rb b/spec/gitlab/client/issues_spec.rb index cd227c0a0..e5a506b94 100644 --- a/spec/gitlab/client/issues_spec.rb +++ b/spec/gitlab/client/issues_spec.rb @@ -30,7 +30,7 @@ it "should return an array of user's issues" do expect(@issues).to be_an Array - expect(@issues.first.closed).to be_false + expect(@issues.first.closed).to be_falsey expect(@issues.first.author.name).to eq("John Smith") end end diff --git a/spec/gitlab/client/repositories_spec.rb b/spec/gitlab/client/repositories_spec.rb index 471173b5b..f58e315d0 100644 --- a/spec/gitlab/client/repositories_spec.rb +++ b/spec/gitlab/client/repositories_spec.rb @@ -28,15 +28,15 @@ describe ".create_tag" do before do stub_post("/projects/3/repository/tags", "tag") - @tag = Gitlab.create_tag(3,'v1.0.0','2695effb5807a22ff3d138d593fd856244e155e7') + @tag = Gitlab.create_tag(3, 'v1.0.0', '2695effb5807a22ff3d138d593fd856244e155e7') end it "should get the correct resource" do - a_post("/projects/3/repository/tags").should have_been_made + expect(a_post("/projects/3/repository/tags")).to have_been_made end it "should return information about a new repository tag" do - @tag.name.should == 'v1.0.0' + expect(@tag.name).to eq("v1.0.0") end end diff --git a/spec/gitlab/objectified_hash_spec.rb b/spec/gitlab/objectified_hash_spec.rb index 9da35f714..db45711df 100644 --- a/spec/gitlab/objectified_hash_spec.rb +++ b/spec/gitlab/objectified_hash_spec.rb @@ -17,7 +17,7 @@ end it "should have an alias #to_h" do - expect(@oh.respond_to?(:to_h)).to be_true + expect(@oh.respond_to?(:to_h)).to be_truthy end end end