Sha256: e060f067d0ef8eedab1b9af27a02e0a1876e996a37a731f869a3bbc75ff048b7
Contents?: true
Size: 806 Bytes
Versions: 3
Compression:
Stored size: 806 Bytes
Contents
require 'spec_helper' describe Furter::Accessors::Label do let(:label) { Furter::Accessors::Label.new(:label => 'someLabel')} let(:selector) { label.send(:selector) } context 'locating labels' do it 'can be found by accessibility label' do label_control = Furter::Accessors::Label.new(:label => 'someAccessibilityLabel') label_control.send(:selector).should eq("label marked:'someAccessibilityLabel'") end it 'can be found by text' do label_control = Furter::Accessors::Label.new(:text => 'Text Value') label_control.send(:selector).should eq("label text:'Text Value'") end end it 'knows the text value' do label.should_receive(:frankly_map).with(selector, 'text').and_return(['expected text']) label.text.should eq('expected text') end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
furter-0.0.3.2 | spec/lib/furter/accessors/label_spec.rb |
furter-0.0.3.1 | spec/lib/furter/accessors/label_spec.rb |
furter-0.0.3 | spec/lib/furter/accessors/label_spec.rb |