Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2015-06-18 04:29:18 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-06-22 13:13:47 +0300
commit0f627f1c6046be06986ee0e6e46d390ec2c18507 (patch)
tree499dd109b2b23166c51cda042fa10c4772dd2241 /spec/models/hooks
parent8b1f1ab32e528cf6f7e21b54cf722dae386c5a1d (diff)
Fix `raise_error` without an argument deprecation warnings
Diffstat (limited to 'spec/models/hooks')
-rw-r--r--spec/models/hooks/service_hook_spec.rb2
-rw-r--r--spec/models/hooks/web_hook_spec.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/spec/models/hooks/service_hook_spec.rb b/spec/models/hooks/service_hook_spec.rb
index fb5111dd9f5..a218b327d76 100644
--- a/spec/models/hooks/service_hook_spec.rb
+++ b/spec/models/hooks/service_hook_spec.rb
@@ -52,7 +52,7 @@ describe ServiceHook do
expect {
@service_hook.execute(@data)
- }.to raise_error
+ }.to raise_error(RuntimeError)
end
end
end
diff --git a/spec/models/hooks/web_hook_spec.rb b/spec/models/hooks/web_hook_spec.rb
index 4c3f0cbcbbf..b51e6b4e619 100644
--- a/spec/models/hooks/web_hook_spec.rb
+++ b/spec/models/hooks/web_hook_spec.rb
@@ -73,7 +73,7 @@ describe ProjectHook do
expect {
@project_hook.execute(@data, 'push_hooks')
- }.to raise_error
+ }.to raise_error(RuntimeError)
end
end
end