spec/gitlab/help_spec.rb in gitlab-3.5.0 vs spec/gitlab/help_spec.rb in gitlab-3.6.0

- old
+ new

@@ -1,9 +1,8 @@ require 'spec_helper' describe Gitlab::Help do - describe ".ri_cmd" do context "ri command found" do it "should return the path to RI" do allow(Gitlab::Help).to receive(:`).with(/which ri/).and_return('/usr/bin/ri') expect(Gitlab::Help.ri_cmd).to eq('/usr/bin/ri') @@ -11,14 +10,13 @@ end context "ri command NOT found" do it "should raise" do allow(Gitlab::Help).to receive(:`).with(/which ri/).and_return('') - expect{Gitlab::Help.ri_cmd}.to raise_error RuntimeError + expect { Gitlab::Help.ri_cmd }.to raise_error RuntimeError end end - end describe ".change_help_output!" do before do @cmd = "create_branch" @@ -38,7 +36,6 @@ it "should return the full namespace for a command" do expect(@namespace).to be_a String expect(@namespace).to eq("Gitlab::Client::Repositories.#{@cmd}") end end - end