spec/gitlab/shell_spec.rb in gitlab-3.4.0 vs spec/gitlab/shell_spec.rb in gitlab-3.5.0
- old
+ new
@@ -53,17 +53,17 @@
end
context "called with an argument" do
it "should return an Array of matching commands" do
completed_cmds = @comp.call 'group'
expect(completed_cmds).to be_a Array
- expect(completed_cmds.sort).to eq(['group', 'group_members', 'groups'])
+ expect(completed_cmds.sort).to eq(['group', 'group_members', 'group_search', 'groups'])
end
end
end
describe ".parse_input" do
context "with arguments" do
- it "should set command & arguements" do
+ it "should set command & arguments" do
Gitlab::Shell.parse_input('create_branch 1 "api" "master"')
expect(Gitlab::Shell.command).to eq('create_branch')
expect(Gitlab::Shell.arguments).to eq(['1', 'api', 'master'])
end
end