aboutsummaryrefslogtreecommitdiffstats
path: root/spec/support/platforms.rb
diff options
context:
space:
mode:
authorCarl Lerche <carllerche@mac.com>2010-06-01 14:16:36 -0700
committerCarl Lerche <carllerche@mac.com>2010-06-01 14:16:36 -0700
commit27c8e606cef18dd88de3998ec0b6c40efd6ee86d (patch)
treedbcfc7a785bed8e11efb18bf717a8aceafdc9787 /spec/support/platforms.rb
parent085465ae33574b43cd9a097937c56d1e3013ff1a (diff)
downloadbundler-27c8e606cef18dd88de3998ec0b6c40efd6ee86d.tar.gz
Add a first spec for cross platform bundle installs
Diffstat (limited to 'spec/support/platforms.rb')
-rw-r--r--spec/support/platforms.rb20
1 files changed, 16 insertions, 4 deletions
diff --git a/spec/support/platforms.rb b/spec/support/platforms.rb
index 09f4dcda..18fa2331 100644
--- a/spec/support/platforms.rb
+++ b/spec/support/platforms.rb
@@ -1,19 +1,31 @@
module Spec
module Platforms
def rb
- %|Gem::Platform::RUBY|
+ Gem::Platform::RUBY
+ end
+
+ def mac
+ Gem::Platform.new('x86-darwin-10')
end
def java
- %|Gem::Platform.new([nil, "java", nil])|
+ Gem::Platform.new([nil, "java", nil])
end
def linux
- %|Gem::Platform.new(['x86', 'linux', nil])|
+ Gem::Platform.new(['x86', 'linux', nil])
end
def mswin
- %|Gem::Platform.new(['x86', 'mswin32', nil])|
+ Gem::Platform.new(['x86', 'mswin32', nil])
+ end
+
+ def all_platforms
+ [rb, java, linux, mswin]
+ end
+
+ def not_local
+ all_platforms.reject { |p| p == Gem::Platform.local }
end
end
end \ No newline at end of file