summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Kanis <lars@greiz-reinsdorf.de>2013-08-11 13:59:43 +0200
committerLars Kanis <lars@greiz-reinsdorf.de>2013-08-11 13:59:43 +0200
commit8e4fd67cafe0173dcaffc0628629038ddfb3c515 (patch)
tree2085a68366c1cf700c919bee85a13e82eb6904cd
parentfacdbf0a962ed5b3918f17a2e7d846f725429b79 (diff)
downloadbundler-8e4fd67cafe0173dcaffc0628629038ddfb3c515.tar.gz
Add more variants to specs for GemHelpers#generic
-rw-r--r--spec/other/ext_spec.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/spec/other/ext_spec.rb b/spec/other/ext_spec.rb
index 7ba9f6a232..8ef5927c11 100644
--- a/spec/other/ext_spec.rb
+++ b/spec/other/ext_spec.rb
@@ -12,6 +12,12 @@ describe "Bundler::GemHelpers#generic" do
it "converts non-windows platforms into ruby" do
expect(generic(pl('x86-darwin-10'))).to eq(pl('ruby'))
+ expect(generic(pl('ruby'))).to eq(pl('ruby'))
+ end
+
+ it "converts java platform variants into java" do
+ expect(generic(pl('universal-java-17'))).to eq(pl('java'))
+ expect(generic(pl('java'))).to eq(pl('java'))
end
it "converts mswin platform variants into x86-mswin32" do
@@ -20,7 +26,7 @@ describe "Bundler::GemHelpers#generic" do
expect(generic(pl('x86-mswin32'))).to eq(pl('x86-mswin32'))
end
- it "converts mingw platform variants into x86-mingw32" do
+ it "converts 32-bit mingw platform variants into x86-mingw32" do
expect(generic(pl('mingw32'))).to eq(pl('x86-mingw32'))
expect(generic(pl('i386-mingw32'))).to eq(pl('x86-mingw32'))
expect(generic(pl('x86-mingw32'))).to eq(pl('x86-mingw32'))