From 88c8c43edb283788c3bdc6d4cb2c07ac1eea9f88 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Sat, 26 Oct 2019 06:23:07 -0500 Subject: tests: Test NetSSID execution output --- tests/spec/simulator_spec.rb | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tests') diff --git a/tests/spec/simulator_spec.rb b/tests/spec/simulator_spec.rb index 2fbb993..74426ba 100644 --- a/tests/spec/simulator_spec.rb +++ b/tests/spec/simulator_spec.rb @@ -71,4 +71,11 @@ printf '%s\\t%s\\t%s\\t%s\\t0\\t0\\n' /dev/gwyn/source /usr/src auto noatime >> expect(last_command_started.stderr).to include("set domain name 'we-sing-it-proudly.new-romantics.club'") end end + context "simulating 'netssid' execution" do + it "outputs the network block correctly" do + use_fixture '0067-netssid-spaces-wpa.installfile' + run_simulate + expect(last_command_started.stdout).to include("network={\n\tssid=\"The New Fox 5G\"\n\tpsk=\"shh, sekrit!\"\n\tpriority=5\n}") + end + end end -- cgit v1.2.3-60-g2f50