From d4ee04322ce642c602269738e45f63b800d78cf7 Mon Sep 17 00:00:00 2001 From: elijah Date: Tue, 21 Jun 2016 15:59:27 -0700 Subject: fix ruby deprecation warnings --- test/unit/command_line_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/unit/command_line_test.rb') diff --git a/test/unit/command_line_test.rb b/test/unit/command_line_test.rb index 0b57ed0..ea0d1cc 100644 --- a/test/unit/command_line_test.rb +++ b/test/unit/command_line_test.rb @@ -21,7 +21,7 @@ class CommandLineTest < Minitest::Test cleanup_files('nodes/banana.json', 'files/nodes/banana') output = leap_bin("node add banana tags:production "+ "services:openvpn ip_address:1.1.1.1 openvpn.gateway_address:2.2.2.2") - assert_match /created nodes\/banana\.json/, output + assert_match(/created nodes\/banana\.json/, output) end end -- cgit v1.2.3 From 0a054b1d07aebbeff37a4f84766833ff55ad001c Mon Sep 17 00:00:00 2001 From: elijah Date: Fri, 24 Jun 2016 23:17:37 -0700 Subject: fix test --- test/unit/command_line_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/unit/command_line_test.rb') diff --git a/test/unit/command_line_test.rb b/test/unit/command_line_test.rb index ea0d1cc..bab8792 100644 --- a/test/unit/command_line_test.rb +++ b/test/unit/command_line_test.rb @@ -13,7 +13,7 @@ class CommandLineTest < Minitest::Test with_multiple_rubies do output = leap_bin('list') assert_equal 0, $?, "list should exit 0" - assert output =~ /ns1 dns/m + assert output =~ /ns1 dns/m end end -- cgit v1.2.3 From a8efdb865dbea99e619c0353d707da39118e6e28 Mon Sep 17 00:00:00 2001 From: elijah Date: Sat, 9 Jul 2016 02:45:23 -0700 Subject: test: added test of quick start tutorial commands --- test/unit/command_line_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/unit/command_line_test.rb') diff --git a/test/unit/command_line_test.rb b/test/unit/command_line_test.rb index bab8792..0f452ab 100644 --- a/test/unit/command_line_test.rb +++ b/test/unit/command_line_test.rb @@ -1,4 +1,4 @@ -require File.expand_path('../test_helper', __FILE__) +require_relative 'test_helper' class CommandLineTest < Minitest::Test -- cgit v1.2.3 From e207c628f9aeadf1c93b6756f00bb97789dc7673 Mon Sep 17 00:00:00 2001 From: elijah Date: Wed, 28 Sep 2016 15:06:04 -0700 Subject: actually fix ci tests --- test/unit/command_line_test.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'test/unit/command_line_test.rb') diff --git a/test/unit/command_line_test.rb b/test/unit/command_line_test.rb index 0f452ab..393bcf2 100644 --- a/test/unit/command_line_test.rb +++ b/test/unit/command_line_test.rb @@ -22,6 +22,7 @@ class CommandLineTest < Minitest::Test output = leap_bin("node add banana tags:production "+ "services:openvpn ip_address:1.1.1.1 openvpn.gateway_address:2.2.2.2") assert_match(/created nodes\/banana\.json/, output) + cleanup_files('nodes/banana.json', 'files/nodes/banana') end end -- cgit v1.2.3