diff options
author | Andre Arko <andre@arko.net> | 2012-11-06 15:14:25 -0800 |
---|---|---|
committer | Andre Arko <andre@arko.net> | 2012-11-06 15:16:01 -0800 |
commit | d91eca0de610a85a5147960f7c56afb728a92a8d (patch) | |
tree | 23a6a06677ff5fbe3478232ecd5f9a357201e99f /spec/bundler/psyched_yaml_spec.rb | |
parent | 8142427248a4f6895cb707bc13e89b919bfaba9d (diff) | |
download | bundler-d91eca0de610a85a5147960f7c56afb728a92a8d.tar.gz |
defined? instead of rescuing, namespace YamlError
Diffstat (limited to 'spec/bundler/psyched_yaml_spec.rb')
-rw-r--r-- | spec/bundler/psyched_yaml_spec.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/spec/bundler/psyched_yaml_spec.rb b/spec/bundler/psyched_yaml_spec.rb index 36ae2fc638..5f3c47bafd 100644 --- a/spec/bundler/psyched_yaml_spec.rb +++ b/spec/bundler/psyched_yaml_spec.rb @@ -1,7 +1,8 @@ require 'spec_helper' +require 'bundler/psyched_yaml' -describe YamlSyntaxError do +describe Bundler::YamlSyntaxError do it "is raised on YAML parse errors" do - expect{ YAML.parse "{foo" }.to raise_error(YamlSyntaxError) + expect{ YAML.parse "{foo" }.to raise_error(Bundler::YamlSyntaxError) end end |