Sha256: 8bd56c50fbc8adaed9449552149ac8e751e6aa716fd458c7f88ae4598f2fd350
Contents?: true
Size: 810 Bytes
Versions: 1
Compression:
Stored size: 810 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
furter-0.0.3.3 | spec/lib/furter/accessors/label_spec.rb |