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:56:07 +0100 |
commit | 0385716a9a22f64103f03880b0d91787021f493c (patch) | |
tree | 4cb0a54d81b3d87175eaa1757253950c5124b29e | |
parent | 896bb74d2e6f4b4fd96179f2e20ea47414a4f9ee (diff) | |
download | bundler-0385716a9a22f64103f03880b0d91787021f493c.tar.gz |
skip Yaml engine tests on Rubies with no engine
Conflicts:
spec/bundler/bundler_spec.rb
-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 f26183e073..fa226002cc 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", :if => defined?(YAML::ENGINE) 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' |