spec/lib/furter/accessors/text_spec.rb in furter-0.0.3.2 vs spec/lib/furter/accessors/text_spec.rb in furter-0.0.3.3
- old
+ new
@@ -4,15 +4,15 @@
let(:placeholder) { Furter::Accessors::Text.new(:placeholder => 'Placeholder Text') }
let(:label) { Furter::Accessors::Text.new(:label => 'accessibilityLabel') }
context 'locating text fields' do
it 'should work by placeholder' do
- placeholder.send(:selector).should eq("textField placeholder:'Placeholder Text'")
+ placeholder.send(:selector).should eq("textField placeholder:\"Placeholder Text\"")
end
it 'should work by accessibility label' do
- label.send(:selector).should eq("textField marked:'accessibilityLabel'")
+ label.send(:selector).should eq("textField marked:\"accessibilityLabel\"")
end
end
it 'can get text' do
placeholder.should_receive(:frankly_map).with(anything, 'text').and_return(['expected text'])
@@ -26,10 +26,10 @@
placeholder.set_text 'the new text'
end
it 'knows if text exists anywhere' do
- placeholder.should_receive(:element_exists).with("view marked:'to find anywhere'")
+ placeholder.should_receive(:element_exists).with("view marked:\"to find anywhere\"")
placeholder.has_text? 'to find anywhere'
end
it 'knows whether we are editable or not' do
placeholder.should_receive(:frankly_map).with(anything, 'isEnabled').and_return([true])