1
0
Fork 0
mirror of https://github.com/nishiki/manage-password.git synced 2025-02-22 02:40:04 +00:00
mpw/test/test2.rb

12 lines
251 B
Ruby
Raw Normal View History

2016-11-10 23:57:16 +01:00
require 'open3'
Open3.popen3("./bin/mpw config --init test@test.com") do |stdin, stdout, stderr, thread|
stdin.puts 'test'
stdin.puts 'test'
end
Open3.popen3("./bin/mpw list") do |stdin, stdout, stderr, thread|
stdin.puts 'test'
puts stdout
end