From ceb23a6230850f26a8c3eb2282ae25af6aa23665 Mon Sep 17 00:00:00 2001 From: ash Date: Sat, 18 May 2013 19:13:24 +0000 Subject: Use :warn instead of :error for invalid commands. --- spec/gitlab_projects_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'spec/gitlab_projects_spec.rb') 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 -- cgit v1.2.1