diff options
author | elijah <elijah@riseup.net> | 2016-04-09 23:44:53 -0700 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2016-04-09 23:44:53 -0700 |
commit | a890550aeba848f1e07ec71967463ee4b247c623 (patch) | |
tree | 8c6b36aa130a4c2136346096599d04e71c0cd6d6 /test/unit | |
parent | 31b4d6c59fb0ad755f2d52e382063eb0b1fca735 (diff) |
fix tests
Diffstat (limited to 'test/unit')
-rw-r--r-- | test/unit/config_object_list_test.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/unit/config_object_list_test.rb b/test/unit/config_object_list_test.rb index a0ee3fc..9b6e09f 100644 --- a/test/unit/config_object_list_test.rb +++ b/test/unit/config_object_list_test.rb @@ -10,11 +10,11 @@ class ConfigObjectListTest < Minitest::Test def test_complex_node_search domain = provider.domain - nodes = manager.nodes['x509.use' => true] + nodes = manager.nodes['location.country_code' => 'US'] assert nodes.size != manager.nodes.size, 'should not return all nodes' - assert nodes.size > 2, 'should be some nodes' + assert_equal 2, nodes.size, 'should be some nodes' expected = manager.nodes.collect {|name, node| - if node.x509.use + if node['location.country_code'] == 'US' node.domain.full end }.compact |