diff --git a/spec/helpers/bundler_wrapper_spec.rb b/spec/helpers/bundler_wrapper_spec.rb index e70dbc1c4..3a7fdca33 100644 --- a/spec/helpers/bundler_wrapper_spec.rb +++ b/spec/helpers/bundler_wrapper_spec.rb @@ -39,6 +39,10 @@ expect(wrapper_klass::BLESSED_BUNDLER_VERSIONS.key?("2.6")).to be_truthy expect(version).to eq(wrapper_klass::BLESSED_BUNDLER_VERSIONS["2.6"]) + version = wrapper_klass.detect_bundler_version(contents: "BUNDLED WITH\n 2.999.7") + expect(wrapper_klass::BLESSED_BUNDLER_VERSIONS.key?("2.6")).to be_truthy + expect(version).to eq(wrapper_klass::BLESSED_BUNDLER_VERSIONS["2.6"]) + expect { wrapper_klass.detect_bundler_version(contents: "BUNDLED WITH\n 3.6.7") }.to raise_error(wrapper_klass::UnsupportedBundlerVersion)