lib/calabash/console_helpers.rb in calabash-1.9.9.pre3 vs lib/calabash/console_helpers.rb in calabash-2.0.0.pre1
- old
+ new
@@ -2,11 +2,10 @@
module Calabash
# Methods you can use in the Calabash console to help you
# interact with your app.
- # @!visibility private
module ConsoleHelpers
# Outputs all visible elements as a tree.
def tree
ConsoleHelpers.dump(Device.default.dump)
@@ -28,17 +27,19 @@
def copy
ConsoleHelpers.copy
true
end
- # Clear the console.
+ # Clear the console history. Note that this also clears the contents
+ # given to Calabash::ConsoleHelpers#copy.
def clear
ConsoleHelpers.clear
true
end
# Puts a message of the day.
+ # @!visibility private
def message_of_the_day
messages = [
"Let's get this done!",
'Ready to rumble.',
'Enjoy.',
@@ -139,9 +140,10 @@
length = readline_history.length - @@start_readline_history.length
readline_history.last(length)
end
+ # @!visibility private
FILTER_REGEX = Regexp.union(/\s*copy(\(|\z)/, /\s*tree(\(|\z)/,
/\s*flash(\(|\z)/, /\s*classes(\(|\z)/,
/\s*ids(\(|\z)/, /\s*start_app(\(|\z)/,
/\s*install_app(\(|\z)/,
/\s*ensure_app_installed(\(|\z)/,