test/yao/resources/test_user.rb in yao-0.8.0 vs test/yao/resources/test_user.rb in yao-0.9.0
- old
+ new
@@ -5,12 +5,12 @@
"email" => "test-user@example.com",
"password" => "passw0rd"
}
user = Yao::User.new(params)
- assert_equal(user.name, "test_user")
- assert_equal(user.email, "test-user@example.com")
+ assert_equal("test_user", user.name)
+ assert_equal("test-user@example.com", user.email)
end
sub_test_case 'with keystone v2.0' do
def setup
super
@@ -35,11 +35,11 @@
headers: {'Content-Type' => 'application/json'}
)
roles = Yao::User.find_by_name("test_user")
assert_instance_of(Array, roles)
- assert_equal(roles.first.id, "u1000")
+ assert_equal("u1000", roles.first.id)
assert_requested(stub)
end
end
sub_test_case 'with keystone v3' do
@@ -76,10 +76,10 @@
headers: {'Content-Type' => 'application/json'}
)
roles = Yao::User.find_by_name("test_user")
assert_instance_of(Array, roles)
- assert_equal(roles.first.id, "2844b2a08be147a08ef58317d6471f1f")
+ assert_equal("2844b2a08be147a08ef58317d6471f1f", roles.first.id)
assert_requested(stub)
end
end
end