spec/integration/wrapper/credentials_input_wrapper in trollolo-0.0.10 vs spec/integration/wrapper/credentials_input_wrapper in trollolo-0.0.11
- old
+ new
@@ -2,18 +2,18 @@
require "expect"
require "pty"
config_path = "/tmp/test-trollolorc-#{rand(100000)}"
-bin_path = File.expand_path('../../../../bin/trollolo',__FILE__)
+bin_path = File.expand_path('../../../../bin/trollolo', __FILE__)
ENV["TROLLOLO_CONFIG_PATH"] = config_path
-PTY.spawn("#{bin_path} #{ARGV.join(" ")}") do |trollolo_out,trollolo_in,pid|
- if !trollolo_out.expect("key:",2)
+PTY.spawn("#{bin_path} #{ARGV.join(" ")}") do |trollolo_out, trollolo_in, pid|
+ if !trollolo_out.expect("key:", 2)
exit 1
end
trollolo_in.puts("xxx")
- if !trollolo_out.expect("token:",2)
+ if !trollolo_out.expect("token:", 2)
exit 1
end
end