test/yao/resources/test_volume.rb in yao-0.8.0 vs test/yao/resources/test_volume.rb in yao-0.9.0

- old
+ new

@@ -4,12 +4,12 @@ 'name' => 'cinder', 'size' => 10 } volume = Yao::Volume.new(params) - assert_equal('cinder', volume.name) - assert_equal(10, volume.size) + assert_equal(volume.name, 'cinder') + assert_equal(volume.size, 10) end def test_list # https://docs.openstack.org/api-ref/block-storage/v3/index.html?expanded=#volumes-volumes stub = stub_request(:get, "https://example.com:12345/volumes/detail"). @@ -29,14 +29,14 @@ assert(Yao::Volume.resources_detail_available) volumes = Yao::Volume.list assert_instance_of(Yao::Volume, volumes.first) - assert_equal(volumes.first.id, "00000000-0000-0000-0000-000000000000") + assert_equal("00000000-0000-0000-0000-000000000000", volumes.first.id) assert_requested(stub) end def test_list_detail - assert_equal(Yao::Volume.method(:list_detail), Yao::Volume.method(:list)) + assert_equal(Yao::Volume.method(:list), Yao::Volume.method(:list_detail)) end end