summaryrefslogtreecommitdiff
path: root/spec/gitlab_projects_spec.rb
diff options
context:
space:
mode:
authorash <smashwilson@gmail.com>2013-05-18 19:13:24 +0000
committerash <smashwilson@gmail.com>2013-05-18 19:13:24 +0000
commitceb23a6230850f26a8c3eb2282ae25af6aa23665 (patch)
tree003234405819dc12c258c1c65aaa895234bc4380 /spec/gitlab_projects_spec.rb
parent7626d9575e5f95fcf127a0fc5fcaa4fde2585547 (diff)
downloadgitlab-shell-ceb23a6230850f26a8c3eb2282ae25af6aa23665.tar.gz
Use :warn instead of :error for invalid commands.
Diffstat (limited to 'spec/gitlab_projects_spec.rb')
-rw-r--r--spec/gitlab_projects_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/gitlab_projects_spec.rb b/spec/gitlab_projects_spec.rb
index 0d9fc72..5bcc5c8 100644
--- a/spec/gitlab_projects_spec.rb
+++ b/spec/gitlab_projects_spec.rb
@@ -180,9 +180,9 @@ describe GitlabProjects do
gitlab_projects.exec
end
- it 'should log a message for unknown commands' do
+ it 'should log a warning for unknown commands' do
gitlab_projects = build_gitlab_projects('hurf-durf', repo_name)
- $logger.should_receive(:error).with('Attempt to execute invalid gitlab-projects command "hurf-durf".')
+ $logger.should_receive(:warn).with('Attempt to execute invalid gitlab-projects command "hurf-durf".')
gitlab_projects.exec
end
end