Sha256: 177b50dc3fff8e3d50501c24af65101eeb4ad18b53fd47e5823bb4119b8561c1
Contents?: true
Size: 769 Bytes
Versions: 5
Compression:
Stored size: 769 Bytes
Contents
# frozen_string_literal: true describe TestCentricity::AppCheckBox, required: true do subject(:test_check) { described_class.new(:test_check, self, { accessibility_id: 'check 1' }, :page) } it 'returns class' do expect(test_check.class).to eql TestCentricity::AppCheckBox end it 'registers with type checkbox' do expect(test_check.get_object_type).to eql :checkbox end it 'should check the checkbox' do expect(test_check).to receive(:check) test_check.check end it 'should uncheck the checkbox' do expect(test_check).to receive(:uncheck) test_check.uncheck end it 'should know if checkbox is checked' do allow(test_check).to receive(:checked?).and_return(true) expect(test_check.checked?).to eq(true) end end
Version data entries
5 entries across 5 versions & 1 rubygems