diff options
Diffstat (limited to 'spec/unit/wmi_spec.rb')
-rw-r--r-- | spec/unit/wmi_spec.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/spec/unit/wmi_spec.rb b/spec/unit/wmi_spec.rb index d240f3e..3ab648d 100644 --- a/spec/unit/wmi_spec.rb +++ b/spec/unit/wmi_spec.rb @@ -162,7 +162,8 @@ describe WmiLite::Wmi do begin wmi_service.send(query_method, wmi_query) rescue WmiLite::WmiException => e - expect(e.message.start_with?(unparseable_error)).to eql(true) + expect(e.message.start_with?(unparseable_error)).to eql(false) + expect(e.message.end_with?(unparseable_error)).to eql(true) end end end @@ -181,7 +182,8 @@ describe WmiLite::Wmi do begin wmi_service.send(query_method, wmi_query) rescue WmiLite::WmiException => e - expect(e.message.start_with?(unparseable_error)).to eql(true) + expect(e.message.start_with?(unparseable_error)).to eql(false) + expect(e.message.end_with?(unparseable_error)).to eql(true) end end end |