lib/calabash/ios/interactions.rb in calabash-2.0.0.pre10 vs lib/calabash/ios/interactions.rb in calabash-2.0.0.pre11

- old
+ new

@@ -11,11 +11,11 @@ # # @param [Numeric] seconds The number of seconds to keep the app # in the background # @raise [ArgumentError] If number of seconds is less than 1 and more # than 60 seconds. - def _send_current_app_to_background(seconds) + define_method(:_send_current_app_to_background) do |seconds| unless (1..60).member?(seconds) raise ArgumentError, "Number of seconds: '#{seconds}' must be between 1 and 60" end @@ -27,14 +27,9 @@ retry_count += 1 }; x ) uia(javascript) - end - - # @!visibility private - def _evaluate_javascript_in(query, javascript) - query(query, calabashStringByEvaluatingJavaScript: javascript) end end end end