Sha256: 3118c27a22dc707214a61ef2cd59173fb6eada119f3263092f9b5916a10d5eca

Contents?: true

Size: 743 Bytes

Versions: 1

Compression:

Stored size: 743 Bytes

Contents

require 'spec_helper'

describe Motion::Require do
  it 'should run' do
    true.should == true
  end

  describe 'should check_platform' do
    it 'should support `nil`' do
      Motion::Require.check_platform(:ios, nil).should == true
    end
    it 'should support Symbol' do
      Motion::Require.check_platform(:ios, :ios).should == true
      Motion::Require.check_platform(:ios, :osx).should == false
    end
    it 'should support Array' do
      Motion::Require.check_platform(:ios, [:ios]).should == true
      Motion::Require.check_platform(:ios, [:ios, :osx]).should == true
      Motion::Require.check_platform(:osx, [:ios, :osx]).should == true
      Motion::Require.check_platform(:ios, [:osx]).should == false
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
motion-require-0.2.0 spec/motion_require_spec.rb