Sha256: 3d10de194b16b9f77f53935078872698326b36a46b8f4d97ec738b070ed2bbab

Contents?: true

Size: 677 Bytes

Versions: 3

Compression:

Stored size: 677 Bytes

Contents

require 'spec_helper'

describe Symbiont::DataSetter do
  include_context :page
  include_context :element

  it 'will attempt to utilize data' do
    expect(watir_element).to receive(:visible?).and_return(true)
    expect(watir_element).to receive(:enabled?).and_return(true)
    expect(watir_browser).to receive(:text_field).with({:id => 'text_field'}).exactly(2).times.and_return(watir_element)
    watir_definition.using(:text_field => 'works')
  end

  it 'allows methods to be chained' do
    expect('testing'.call_method_chain("reverse.capitalize")).to eq('Gnitset')
    expect('testing'.call_method_chain("start_with?", 't')).to be_truthy
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
symbiont-0.8.0 spec/symbiont/data_setter_spec.rb
symbiont-0.7.0 spec/symbiont/data_setter_spec.rb
symbiont-0.6.0 spec/symbiont/data_setter_spec.rb