Sha256: 0dd42b7f8c878022c05fa8ca6f926f0e34841440dc943dda6d9a2f40d0037515
Contents?: true
Size: 1.12 KB
Versions: 1
Compression:
Stored size: 1.12 KB
Contents
require File.expand_path('../spec_helper', __FILE__) module Pod describe PlaygroundGenerator do it 'can find the template directory' do template_dir = PlaygroundGenerator.template_dir template_dir.extname.should == '.xctemplate' template_dir.exist?.should == true end it 'can list available platforms for Playgrounds' do platforms = PlaygroundGenerator.platforms expected_platforms = PlaygroundGenerator.major_version == 8 ? [:ios, :macos, :tvos] : [:ios, :osx, :tvos] platforms.should == expected_platforms end it 'returns nil if template for platform cannot be found' do platform = PlaygroundGenerator.dir_for_platform(:watchos) platform.should.nil? end it 'can find the template for OS X' do platform = PlaygroundGenerator.dir_for_platform(:osx) suffix = PlaygroundGenerator.major_version == 8 ? 'macOS' : 'OS X' platform.to_s.end_with?(suffix).should == true end it 'can find the template for iOS' do platform = PlaygroundGenerator.dir_for_platform(:ios) platform.to_s.end_with?('iOS').should == true end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cocoapods-playgrounds-1.2.2 | spec/generate_spec.rb |