test/yao/resources/test_loadbalancer.rb in yao-0.3.6 vs test/yao/resources/test_loadbalancer.rb in yao-0.3.7

- old
+ new

@@ -1,6 +1,6 @@ -require "date" +require "time" class TestRole < Test::Unit::TestCase def test_loadbalancer params = { "provider" => "octavia", @@ -20,9 +20,9 @@ assert_equal(lb.admin_state_up, true) assert_equal(lb.provisioning_status, "ACTIVE") assert_equal(lb.vip_address, "198.51.100.1") assert_equal(lb.operationg_status, "ONLINE") assert_equal(lb.name, "greate loadbalancer") - assert_equal(lb.created_at, Date.parse("2017-02-28T00:41:44")) - assert_equal(lb.updated_at, Date.parse("2017-02-28T00:43:30")) + assert_equal(lb.created, Time.parse("2017-02-28T00:41:44")) + assert_equal(lb.updated, Time.parse("2017-02-28T00:43:30")) end end