|
@@ -30,7 +30,7 @@ class CliTest < Test::Unit::TestCase
|
|
|
$stdout.expects(:print).with("Domain? (leave blank for foo.myshopify.com) ")
|
|
|
$stdout.expects(:print).with("API key? ")
|
|
|
$stdout.expects(:print).with("Password? ")
|
|
|
- $stdout.expects(:print).with("Would you like to use pry as your shell? (y/n)")
|
|
|
+ $stdout.expects(:print).with("Would you like to use pry as your shell? (y/n) ")
|
|
|
$stdin.expects(:gets).times(4).returns("", "key", "pass", "y")
|
|
|
@cli.expects(:puts).with("\nopen https://foo.myshopify.com/admin/api in your browser to get API credentials\n")
|
|
|
@cli.expects(:puts).with("Default connection is foo")
|
|
@@ -51,7 +51,7 @@ class CliTest < Test::Unit::TestCase
|
|
|
$stdout.expects(:print).with("Domain? (leave blank for foo.myshopify.com) ")
|
|
|
$stdout.expects(:print).with("API key? ")
|
|
|
$stdout.expects(:print).with("Password? ")
|
|
|
- $stdout.expects(:print).with("Would you like to use pry as your shell? (y/n)")
|
|
|
+ $stdout.expects(:print).with("Would you like to use pry as your shell? (y/n) ")
|
|
|
$stdin.expects(:gets).times(4).returns("bar.myshopify.com", "key", "pass", "y")
|
|
|
@cli.expects(:puts).with("\nopen https://bar.myshopify.com/admin/api in your browser to get API credentials\n")
|
|
|
@cli.expects(:puts).with("Default connection is foo")
|
|
@@ -67,7 +67,7 @@ class CliTest < Test::Unit::TestCase
|
|
|
$stdout.expects(:print).with("Domain? (leave blank for foo.myshopify.com) ")
|
|
|
$stdout.expects(:print).with("API key? ")
|
|
|
$stdout.expects(:print).with("Password? ")
|
|
|
- $stdout.expects(:print).with("Would you like to use pry as your shell? (y/n)")
|
|
|
+ $stdout.expects(:print).with("Would you like to use pry as your shell? (y/n) ")
|
|
|
$stdin.expects(:gets).times(4).returns("bar.myshopify.com", "key", "pass", "fuuuuuuu")
|
|
|
@cli.expects(:puts).with("\nopen https://bar.myshopify.com/admin/api in your browser to get API credentials\n")
|
|
|
@cli.expects(:puts).with("Default connection is foo")
|