Sha256: 0d20b40c0ef792294a0be610f65842c582af2ab382d490ce9bd7212b9cf548c0

Contents?: true

Size: 661 Bytes

Versions: 1

Compression:

Stored size: 661 Bytes

Contents

require_relative '../spec_helper'

describe 'WebElements::Radio' do
  let(:radio_object) { double('radio_object') }
  let(:radio_definition) { ::Fluent::WebElements::Radio.new(radio_object, :platform => :watir_webdriver) }

  it 'should be able to see if a radio is selected' do
    radio_object.should_receive(:set?).and_return(true)
    radio_definition.selected?
  end

  it 'should be able to select a radio' do
    radio_object.should_receive(:set).and_return(true)
    radio_definition.select
  end

  it 'should be able to clear a radio' do
    radio_object.should_receive(:clear).and_return(true)
    radio_definition.clear
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fluent-0.2.0 spec/web_elements/radio_spec.rb