Skip to content

Commit

Permalink
change test description
Browse files Browse the repository at this point in the history
  • Loading branch information
vlewin committed Aug 1, 2014
1 parent 1f6cdaa commit 462ca0c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/connect/system_spec.rb
Expand Up @@ -185,11 +185,11 @@
end
end

context 'hostname and private ip is none' do
context 'hostname and private ip is nil' do
it 'returns nil' do
stubbed_ip_address_list = [Addrinfo.ip('127.0.0.1'), Addrinfo.ip('44.0.0.69')]
Socket.stub(:ip_address_list => stubbed_ip_address_list)
Socket.stub(:gethostname => '(none)')
Socket.stub(:gethostname => nil)
subject.hostname.should eq nil
end
end
Expand Down

0 comments on commit 462ca0c

Please sign in to comment.