diff options
author | Andre Arko <andre@arko.net> | 2015-03-30 13:08:36 +0100 |
---|---|---|
committer | Andre Arko <andre@arko.net> | 2015-03-30 13:08:36 +0100 |
commit | d85fdb4d0bbbd93ac0ee8b6fcc79260d6075ba1f (patch) | |
tree | d0660283c0c26361151599ae9e38166c7d52835a | |
parent | 303b333df18c94866bdd25a880cfa56d0a443354 (diff) | |
download | bundler-d85fdb4d0bbbd93ac0ee8b6fcc79260d6075ba1f.tar.gz |
skip Yaml engine tests on Rubies with no engine
-rw-r--r-- | spec/bundler/bundler_spec.rb | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/spec/bundler/bundler_spec.rb b/spec/bundler/bundler_spec.rb index 60168ddf28..013dc29271 100644 --- a/spec/bundler/bundler_spec.rb +++ b/spec/bundler/bundler_spec.rb @@ -17,13 +17,11 @@ describe Bundler do end end - context "on Ruby 1.8", :ruby => "1.8" do - it "catches YAML syntax errors" do - expect { subject }.to raise_error(Bundler::GemspecError) - end + it "catches YAML syntax errors" do + expect { subject }.to raise_error(Bundler::GemspecError) end - context "on Ruby 1.9", :ruby => "1.9" do + context "on Rubies with a settable YAML engine", :if => defined?(YAML::ENGINE) do context "with Syck as YAML::Engine" do it "raises a GemspecError after YAML load throws ArgumentError" do orig_yamler, YAML::ENGINE.yamler = YAML::ENGINE.yamler, 'syck' |