summaryrefslogtreecommitdiffstats
path: root/features/step_definitions/pidgin.rb
diff options
context:
space:
mode:
Diffstat (limited to 'features/step_definitions/pidgin.rb')
-rw-r--r--features/step_definitions/pidgin.rb9
1 files changed, 5 insertions, 4 deletions
diff --git a/features/step_definitions/pidgin.rb b/features/step_definitions/pidgin.rb
index 74fe151..b28632c 100644
--- a/features/step_definitions/pidgin.rb
+++ b/features/step_definitions/pidgin.rb
@@ -35,7 +35,7 @@ def focus_pidgin_irc_conversation_window(account)
# for a message from InfoServ first then default to looking for '#i2p'
try_for(20) do
begin
- $vm.focus_window('InfoServ')
+ $vm.focus_window('irc.echelon.i2p')
rescue ExecutionFailedInVM
$vm.focus_window('#i2p')
end
@@ -204,8 +204,9 @@ end
def configured_pidgin_accounts
accounts = Hash.new
- xml = REXML::Document.new($vm.file_content('$HOME/.purple/accounts.xml',
- LIVE_USER))
+ xml = REXML::Document.new(
+ $vm.file_content("/home/#{LIVE_USER}/.purple/accounts.xml")
+ )
xml.elements.each("account/account") do |e|
account = e.elements["name"].text
account_name, network = account.split("@")
@@ -264,7 +265,7 @@ def default_chan (account)
end
def pidgin_otr_keys
- return $vm.file_content('$HOME/.purple/otr.private_key', LIVE_USER)
+ return $vm.file_content("/home/#{LIVE_USER}/.purple/otr.private_key")
end
Given /^Pidgin has the expected accounts configured with random nicknames$/ do