Sha256: ac02acdea4657ee6d77baafc8620d3c004f2b78d21f6a021be51ba86f810875f
Contents?: true
Size: 1.08 KB
Versions: 1
Compression:
Stored size: 1.08 KB
Contents
require "emu_ctl" RSpec.describe EmuCtl::Emulator do describe 'lists' do it 'looks up existings avds' do expect(EmuCtl::Emulator.list).to_not be_nil end it 'looks up available targets' do expect(EmuCtl::Emulator.list_targets).to_not be_nil end end describe 'emulator creation and deletion' do it 'creates new emulator' do old_list = EmuCtl::Emulator.list # only targets with default abi target = EmuCtl::Emulator.list_targets.select{|t| t.abi.include?('default')}.last puts "creating emulator for target #{target.name} and skin #{target.skins[0]}" EmuCtl::Emulator.create(target, target.skins[0]) expect(EmuCtl::Emulator.list.count).to eq(old_list.count + 1) end it 'deletes emulators' do old_list = EmuCtl::Emulator.list emu = old_list.last puts "deleting emulator #{emu}" EmuCtl::Emulator.delete(emu) expect(EmuCtl::Emulator.list.count).to eq(old_list.count - 1) end it 'looks up available targets' do expect(EmuCtl::Emulator.list_targets).to_not be_nil end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
emu_ctl-0.0.2 | spec/emulator_spec.rb |