Sha256: e025b93c071b5a3ae645940a9b3c53b8dc90c623d97debfad6a32df9b25da5db

Contents?: true

Size: 811 Bytes

Versions: 2

Compression:

Stored size: 811 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

  it 'should register with a radio type' do
    ::Fluent::WebElements.get_class_for(:input, :radio).should == ::Fluent::WebElements::Radio
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fluent-0.4.0 spec/web_elements/radio_spec.rb
fluent-0.3.0 spec/web_elements/radio_spec.rb