@@ -11,21 +11,21 @@ def capture_stderr
1111
1212 def test_list_of_hosts_with_first_host_successful
1313 hosts = [
14- [ 'test.mocked.com' , 636 ] ,
15- [ 'test2.mocked.com' , 636 ] ,
16- [ 'test3.mocked.com' , 636 ] ,
17- ]
14+ [ 'test.mocked.com' , 636 ] ,
15+ [ 'test2.mocked.com' , 636 ] ,
16+ [ 'test3.mocked.com' , 636 ] ,
17+ ]
1818 flexmock ( TCPSocket ) . should_receive ( :new ) . ordered . with ( *hosts [ 0 ] ) . once . and_return ( nil )
1919 flexmock ( TCPSocket ) . should_receive ( :new ) . ordered . never
2020 Net ::LDAP ::Connection . new ( :hosts => hosts )
2121 end
2222
2323 def test_list_of_hosts_with_first_host_failure
2424 hosts = [
25- [ 'test.mocked.com' , 636 ] ,
26- [ 'test2.mocked.com' , 636 ] ,
27- [ 'test3.mocked.com' , 636 ] ,
28- ]
25+ [ 'test.mocked.com' , 636 ] ,
26+ [ 'test2.mocked.com' , 636 ] ,
27+ [ 'test3.mocked.com' , 636 ] ,
28+ ]
2929 flexmock ( TCPSocket ) . should_receive ( :new ) . ordered . with ( *hosts [ 0 ] ) . once . and_raise ( SocketError )
3030 flexmock ( TCPSocket ) . should_receive ( :new ) . ordered . with ( *hosts [ 1 ] ) . once . and_return ( nil )
3131 flexmock ( TCPSocket ) . should_receive ( :new ) . ordered . never
@@ -34,10 +34,10 @@ def test_list_of_hosts_with_first_host_failure
3434
3535 def test_list_of_hosts_with_all_hosts_failure
3636 hosts = [
37- [ 'test.mocked.com' , 636 ] ,
38- [ 'test2.mocked.com' , 636 ] ,
39- [ 'test3.mocked.com' , 636 ] ,
40- ]
37+ [ 'test.mocked.com' , 636 ] ,
38+ [ 'test2.mocked.com' , 636 ] ,
39+ [ 'test3.mocked.com' , 636 ] ,
40+ ]
4141 flexmock ( TCPSocket ) . should_receive ( :new ) . ordered . with ( *hosts [ 0 ] ) . once . and_raise ( SocketError )
4242 flexmock ( TCPSocket ) . should_receive ( :new ) . ordered . with ( *hosts [ 1 ] ) . once . and_raise ( SocketError )
4343 flexmock ( TCPSocket ) . should_receive ( :new ) . ordered . with ( *hosts [ 2 ] ) . once . and_raise ( SocketError )
0 commit comments