aboutsummaryrefslogtreecommitdiffstats
path: root/spec/support/platforms.rb
blob: 09f4dcdac7cec72162a842da0166d3e9ccacb7b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
module Spec
  module Platforms
    def rb
      %|Gem::Platform::RUBY|
    end

    def java
      %|Gem::Platform.new([nil, "java", nil])|
    end

    def linux
      %|Gem::Platform.new(['x86', 'linux', nil])|
    end

    def mswin
      %|Gem::Platform.new(['x86', 'mswin32', nil])|
    end
  end
end