ios_tests/lib/ios/specs/ios/element/button.rb in appium_lib-6.0.0 vs ios_tests/lib/ios/specs/ios/element/button.rb in appium_lib-7.0.0
- old
+ new
@@ -28,11 +28,11 @@
end
t 'buttons' do
exp = ['Back', 'Back', 'Gray', 'Right pointing arrow']
target_buttons = buttons('a')
- target_buttons.map { |e| e.name }.must_equal exp
+ target_buttons.map(&:name).must_equal exp
target_buttons.length.must_equal exp.length
end
t 'first_button' do
first_button.name.must_equal 'Back'
@@ -51,6 +51,6 @@
end
t 'after_last' do
after_last
end
-end
\ No newline at end of file
+end