Sha256: 9e063006f4d4dfc7f4f67e4e730f06c0c87180e4d92929bc5e713afd85cc1fd8

Contents?: true

Size: 967 Bytes

Versions: 21

Compression:

Stored size: 967 Bytes

Contents

require 'spec_helper'

describe Honeydew::DeviceMatchers do
  let(:device) do
    Class.new do
      include Honeydew::DeviceMatchers
      def perform_assertion; end
    end.new
  end

  describe '#has_textview_text' do
    let(:text) { 'some text' }

    it 'should perform action for is_text_present' do
      device.should_receive(:perform_assertion)
        .with(:is_text_present,
              hash_including(text: text, type: 'TextView'),
              timeout: nil)

      device.has_textview_text? text
    end
  end

  describe '#has_textview_with_text_and_description' do
    let(:text) { 'some text' }
    let(:description) { 'some description' }

    it 'performs the is_text_present action' do
      device.should_receive(:perform_assertion)
        .with(:is_text_present,
              hash_including(text: text, type: 'TextView'),
              timeout: nil)

      device.has_textview_with_text_and_description? text, description
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
honeydew-0.29.1 spec/honeydew/device_matchers_spec.rb
honeydew-0.29.0 spec/honeydew/device_matchers_spec.rb
honeydew-0.28.0 spec/honeydew/device_matchers_spec.rb
honeydew-0.27.4 spec/honeydew/device_matchers_spec.rb
honeydew-0.27.3 spec/honeydew/device_matchers_spec.rb
honeydew-0.27.2 spec/honeydew/device_matchers_spec.rb
honeydew-0.27.1 spec/honeydew/device_matchers_spec.rb
honeydew-0.27.0 spec/honeydew/device_matchers_spec.rb
honeydew-0.25.0 spec/honeydew/device_matchers_spec.rb
honeydew-0.24.1 spec/honeydew/device_matchers_spec.rb
honeydew-0.24.0 spec/honeydew/device_matchers_spec.rb
honeydew-0.23.0 spec/honeydew/device_matchers_spec.rb
honeydew-0.22.0 spec/honeydew/device_matchers_spec.rb
honeydew-0.21.0 spec/honeydew/device_matchers_spec.rb
honeydew-0.20.0 spec/honeydew/device_matchers_spec.rb
honeydew-0.19.0 spec/honeydew/device_matchers_spec.rb
honeydew-0.18.0 spec/honeydew/device_matchers_spec.rb
honeydew-0.17.0 spec/honeydew/device_matchers_spec.rb
honeydew-0.16.0 spec/honeydew/device_matchers_spec.rb
honeydew-0.15.0 spec/honeydew/device_matchers_spec.rb