Skip to content

Commit

Permalink
Oops, let's fix that test
Browse files Browse the repository at this point in the history
  • Loading branch information
ShayneP committed Sep 22, 2014
1 parent 95a2391 commit 4e69583
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/cli_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def teardown
test "add with blank domain" do
standard_add_shop_prompts
$stdin.expects(:gets).times(4).returns("", "key", "pass", "y")
@cli.expects(:puts).with("\nopen https://#{config['domain']}/admin/apps/private in your browser to create a private app and get API credentials\n")
@cli.expects(:puts).with("\nopen https://bar.myshopify.com/admin/apps/private in your browser to create a private app and get API credentials\n")
@cli.expects(:puts).with("Default connection is foo")

@cli.add('foo')
Expand All @@ -45,7 +45,7 @@ def teardown
test "add with explicit domain" do
standard_add_shop_prompts
$stdin.expects(:gets).times(4).returns("bar.myshopify.com", "key", "pass", "y")
@cli.expects(:puts).with("\nopen https://#{config['domain']}/admin/apps/private in your browser to create a private app and get API credentials\n")
@cli.expects(:puts).with("\nopen https://bar.myshopify.com/admin/apps/private in your browser to create a private app and get API credentials\n")
@cli.expects(:puts).with("Default connection is foo")

@cli.add('foo')
Expand All @@ -57,7 +57,7 @@ def teardown
test "add with irb as shell" do
standard_add_shop_prompts
$stdin.expects(:gets).times(4).returns("bar.myshopify.com", "key", "pass", "fuuuuuuu")
@cli.expects(:puts).with("\nopen https://#{config['domain']}/admin/apps/private in your browser to create a private app and get API credentials\n")
@cli.expects(:puts).with("\nopen https://bar.myshopify.com/admin/apps/private in your browser to create a private app and get API credentials\n")
@cli.expects(:puts).with("Default connection is foo")

@cli.add('foo')
Expand Down

0 comments on commit 4e69583

Please sign in to comment.