summaryrefslogtreecommitdiff
path: root/spec/lib/gitlab/popen_spec.rb
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2015-06-17 21:29:18 -0400
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-06-22 12:13:47 +0200
commit0f627f1c6046be06986ee0e6e46d390ec2c18507 (patch)
tree499dd109b2b23166c51cda042fa10c4772dd2241 /spec/lib/gitlab/popen_spec.rb
parent8b1f1ab32e528cf6f7e21b54cf722dae386c5a1d (diff)
downloadgitlab-ce-0f627f1c6046be06986ee0e6e46d390ec2c18507.tar.gz
Fix `raise_error` without an argument deprecation warnings
Diffstat (limited to 'spec/lib/gitlab/popen_spec.rb')
-rw-r--r--spec/lib/gitlab/popen_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/lib/gitlab/popen_spec.rb b/spec/lib/gitlab/popen_spec.rb
index cd9d0456b25..f80d306cfc6 100644
--- a/spec/lib/gitlab/popen_spec.rb
+++ b/spec/lib/gitlab/popen_spec.rb
@@ -28,7 +28,7 @@ describe 'Gitlab::Popen', no_db: true do
context 'unsafe string command' do
it 'raises an error when it gets called with a string argument' do
- expect { @klass.new.popen('ls', path) }.to raise_error
+ expect { @klass.new.popen('ls', path) }.to raise_error(RuntimeError)
end
end