mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[openstack|identity] user model tests fixes
- update_tenant expects a tenant model or a tenant_id - update_enabled expects a boolean
This commit is contained in:
parent
b3c851cd07
commit
2381ed38be
1 changed files with 2 additions and 2 deletions
|
@ -26,11 +26,11 @@ Shindo.tests("Fog::Identity[:openstack] | user", ['openstack']) do
|
||||||
end
|
end
|
||||||
|
|
||||||
tests('#update_tenant').returns(true) do
|
tests('#update_tenant').returns(true) do
|
||||||
@instance.update_tenant('swordfish')
|
@instance.update_tenant(tenant_id)
|
||||||
end
|
end
|
||||||
|
|
||||||
tests('#update_enabled').returns(true) do
|
tests('#update_enabled').returns(true) do
|
||||||
@instance.update_enabled('swordfish')
|
@instance.update_enabled(true)
|
||||||
end
|
end
|
||||||
|
|
||||||
tests('#destroy').returns(true) do
|
tests('#destroy').returns(true) do
|
||||||
|
|
Loading…
Add table
Reference in a new issue