From 83ddb9a56782a0fa97236289ab9db0e36699bc84 Mon Sep 17 00:00:00 2001 From: Yuya Kusakabe Date: Thu, 12 Jan 2017 11:42:40 +0900 Subject: Refactor --- spec/site_to_site_vpn/vyos1_spec.rb | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'spec/site_to_site_vpn/vyos1_spec.rb') diff --git a/spec/site_to_site_vpn/vyos1_spec.rb b/spec/site_to_site_vpn/vyos1_spec.rb index 6506d93..76740d4 100644 --- a/spec/site_to_site_vpn/vyos1_spec.rb +++ b/spec/site_to_site_vpn/vyos1_spec.rb @@ -1,12 +1,4 @@ require_relative '../spec_helper' -require 'serverspec_vyos_config' +require_relative '../config_spec' -File.open('spec/site_to_site_vpn/vyos1_script.sh') do |file| - file.each_line do |l| - if l.start_with?("set") - describe vyos_config(l.gsub(/set /, '')) do - it { should be_exists } - end - end - end -end +config_spec -- cgit v1.2.3