diff options
Diffstat (limited to 'spec/bundler/bundler/psyched_yaml_spec.rb')
-rw-r--r-- | spec/bundler/bundler/psyched_yaml_spec.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/bundler/bundler/psyched_yaml_spec.rb b/spec/bundler/bundler/psyched_yaml_spec.rb new file mode 100644 index 0000000000..18e40d6b5a --- /dev/null +++ b/spec/bundler/bundler/psyched_yaml_spec.rb @@ -0,0 +1,9 @@ +# frozen_string_literal: true +require "spec_helper" +require "bundler/psyched_yaml" + +RSpec.describe "Bundler::YamlLibrarySyntaxError" do + it "is raised on YAML parse errors" do + expect { YAML.parse "{foo" }.to raise_error(Bundler::YamlLibrarySyntaxError) + end +end |