Project

General

Profile

« Previous | Next » 

Revision 2a616445

Added by Justin Sherrill almost 10 years ago

Refs #5029 - specify inital org and location

View differences:

modules/stdlib/spec/functions/has_ip_network_spec.rb
end
it 'should have primary network (10.0.2.0)' do
subject.call(['10.0.2.0']).should be_true
expect(subject.call(['10.0.2.0'])).to be_truthy
end
it 'should have loopback network (127.0.0.0)' do
subject.call(['127.0.0.1']).should be_true
expect(subject.call(['127.0.0.1'])).to be_truthy
end
it 'should not have other network' do
subject.call(['192.168.1.0']).should be_false
expect(subject.call(['192.168.1.0'])).to be_falsey
end
end
end

Also available in: Unified diff