Sha256: aedc791d8b01dd34d4f84cc34b307e0ca73b56d09f474750e627e0bb5f676ced
Contents?: true
Size: 1.5 KB
Versions: 7
Compression:
Stored size: 1.5 KB
Contents
describe Describer do let(:udid) { `xcrun simctl list | grep " iPhone 14 Pro Max"`.split("\n")[0].split('(')[1].split(')')[0] } let(:driver) { Driver.new(udid: udid) } it 'verifies that point can be described (integer)' do allow(Logger).to receive(:info) driver.boot_simulator point_info = described_class.new(udid: udid, x: 10, y: 10).run expect(point_info).not_to be_empty end it 'verifies that point can be described (string)' do allow(Logger).to receive(:info) driver.boot_simulator point_info = described_class.new(udid: udid, x: '10', y: '10').run expect(point_info).not_to be_empty end it 'verifies `udid` param is required' do expect(Logger).to receive(:error).with('UDID should be provided') described_class.new(x: 10, y: 10) end it 'verifies `x` param is required' do expect(Logger).to receive(:error).with('`x` point coordinate should be provided') described_class.new(udid: udid, y: '10') end it 'verifies `y` param is required' do expect(Logger).to receive(:error).with('`y` point coordinate should be provided') described_class.new(udid: udid, x: '10') end it 'verifies `x` param is integer' do expect(Logger).to receive(:error).with('`x` point coordinate should be provided') described_class.new(udid: udid, x: 'test', y: '10') end it 'verifies `y` param is integer' do expect(Logger).to receive(:error).with('`y` point coordinate should be provided') described_class.new(udid: udid, x: '10', y: 'test') end end
Version data entries
7 entries across 7 versions & 1 rubygems