Sha256: 4ece8b2e1bb248db2130563de4a38313bf3559108692de47ad6b564dfcdc0fc7
Contents?: true
Size: 1.61 KB
Versions: 4
Compression:
Stored size: 1.61 KB
Contents
require 'test_helper' class SimCtl::Command::ListTest < Minitest::Test context 'devicetype' do should 'find device type by name' do assert_kind_of SimCtl::DeviceType, SimCtl.devicetype(name: 'iPhone 5') end end context 'list_devicetypes' do should 'contain some devicetypes' do assert SimCtl.list_devicetypes.count > 0 end should 'be a SimCtl::DeviceType object' do assert_kind_of SimCtl::DeviceType, SimCtl.list_devicetypes.first end should 'parse identifier property' do assert SimCtl.list_devicetypes.first.identifier != nil end should 'parse name property' do assert SimCtl.list_devicetypes.first.name != nil end end context 'list_runtimes' do should 'contain some runtimes' do assert SimCtl.list_runtimes.count > 0 end should 'be a SimCtl::Runtime object' do assert_kind_of SimCtl::Runtime, SimCtl.list_runtimes.first end should 'parse availability property' do assert SimCtl.list_runtimes.first.availability != nil end should 'parse buildversion property' do assert SimCtl.list_runtimes.first.buildversion != nil end should 'parse identifier property' do assert SimCtl.list_runtimes.first.identifier != nil end should 'parse name property' do assert SimCtl.list_runtimes.first.name != nil end end context 'runtime' do should 'find runtime by name' do assert_kind_of SimCtl::Runtime, SimCtl.runtime(name: 'iOS 9.2') end end context 'unknown method' do should 'raise an exception' do assert_raises { SimCtl.foo } end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
simctl-1.2.3 | test/simctl/command/list_test.rb |
simctl-1.2.2 | test/simctl/command/list_test.rb |
simctl-1.2.1 | test/simctl/command/list_test.rb |
simctl-1.2.0 | test/simctl/command/list_test.rb |