File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ def test_list_of_hosts_with_first_host_successful
17
17
]
18
18
flexmock ( TCPSocket ) . should_receive ( :new ) . ordered . with ( *hosts [ 0 ] ) . once . and_return ( nil )
19
19
flexmock ( TCPSocket ) . should_receive ( :new ) . ordered . never
20
- Net ::LDAP ::Connection . new ( :hosts => hosts . to_enum ( :each ) )
20
+ Net ::LDAP ::Connection . new ( :hosts => hosts )
21
21
end
22
22
23
23
def test_list_of_hosts_with_first_host_failure
@@ -29,7 +29,7 @@ def test_list_of_hosts_with_first_host_failure
29
29
flexmock ( TCPSocket ) . should_receive ( :new ) . ordered . with ( *hosts [ 0 ] ) . once . and_raise ( SocketError )
30
30
flexmock ( TCPSocket ) . should_receive ( :new ) . ordered . with ( *hosts [ 1 ] ) . once . and_return ( nil )
31
31
flexmock ( TCPSocket ) . should_receive ( :new ) . ordered . never
32
- Net ::LDAP ::Connection . new ( :hosts => hosts . to_enum ( :each ) )
32
+ Net ::LDAP ::Connection . new ( :hosts => hosts )
33
33
end
34
34
35
35
def test_list_of_hosts_with_all_hosts_failure
@@ -43,7 +43,7 @@ def test_list_of_hosts_with_all_hosts_failure
43
43
flexmock ( TCPSocket ) . should_receive ( :new ) . ordered . with ( *hosts [ 2 ] ) . once . and_raise ( SocketError )
44
44
flexmock ( TCPSocket ) . should_receive ( :new ) . ordered . never
45
45
assert_raise Net ::LDAP ::Error do
46
- Net ::LDAP ::Connection . new ( :hosts => hosts . to_enum ( :each ) )
46
+ Net ::LDAP ::Connection . new ( :hosts => hosts )
47
47
end
48
48
end
49
49
You can’t perform that action at this time.
0 commit comments