test/integration/node2/serverspec/default_spec.rb in kitchen-nodes-0.6.4 vs test/integration/node2/serverspec/default_spec.rb in kitchen-nodes-0.6.5
- old
+ new
@@ -38,9 +38,13 @@
it 'has an non localhost ip' do
expect(ip).not_to eq('127.0.0.1')
end
+ it 'has a valid ip' do
+ expect(ip).to match(/\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}/)
+ end
+
describe command('hostname') do
its(:stdout) { should_not match(/#{Regexp.quote(fqdn)}/) }
end
if RUBY_PLATFORM =~ /mingw/