Commit 31b7af8b

mo <mokha@cisco.com>
2017-05-06 15:49:31
check for explicit error.
1 parent 84b33b2
Changed files (1)
spec
services
infrastructure
spec/services/infrastructure/image_spec.rb
@@ -54,7 +54,7 @@ describe Image do
   end
 
   it "raises an errorwhen the file is not in the whitelist" do
-    expect(-> { Image.new('blah.exe') }).to raise_error
+    expect(-> { Image.new('blah.exe') }).to raise_error(/not in the whitelist/)
   end
 
   context "resizing" do