diff options
Diffstat (limited to 'spec/gitlab_projects_spec.rb')
-rw-r--r-- | spec/gitlab_projects_spec.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/gitlab_projects_spec.rb b/spec/gitlab_projects_spec.rb index 87c64b7..a9eb15f 100644 --- a/spec/gitlab_projects_spec.rb +++ b/spec/gitlab_projects_spec.rb @@ -62,6 +62,14 @@ describe GitlabProjects do end end + describe :exec do + it 'should puts message if unknown command arg' do + gitlab_projects = build_gitlab_projects('edit-project', repo_name) + gitlab_projects.should_receive(:puts).with('not allowed') + gitlab_projects.exec + end + end + def build_gitlab_projects(*args) argv(*args) gl_projects = GitlabProjects.new |