mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[brightbox|compute] fix format for account in tests
This commit is contained in:
parent
a89aeababd
commit
d76964a5e1
2 changed files with 5 additions and 0 deletions
|
@ -270,6 +270,9 @@ class Brightbox
|
|||
"library_ftp_host" => String,
|
||||
"library_ftp_user" => String,
|
||||
"library_ftp_password" => Fog::Nullable::String,
|
||||
"verified_telephone" => Fog::Nullable::Boolean,
|
||||
"verified_at" => Fog::Nullable::Time,
|
||||
"verified_ip" => Fog::Nullable::String,
|
||||
"owner" => Brightbox::Compute::Formats::Nested::USER,
|
||||
"users" => [Brightbox::Compute::Formats::Nested::USER],
|
||||
"clients" => [Brightbox::Compute::Formats::Nested::API_CLIENT],
|
||||
|
|
|
@ -4,12 +4,14 @@
|
|||
module Fog
|
||||
module Boolean; end
|
||||
module Nullable
|
||||
module Boolean; end
|
||||
module Integer; end
|
||||
module String; end
|
||||
module Time; end
|
||||
end
|
||||
end
|
||||
[FalseClass, TrueClass].each {|klass| klass.send(:include, Fog::Boolean)}
|
||||
[NilClass, Fog::Boolean].each {|klass| klass.send(:include, Fog::Nullable::Boolean)}
|
||||
[NilClass, String].each {|klass| klass.send(:include, Fog::Nullable::String)}
|
||||
[NilClass, Time].each {|klass| klass.send(:include, Fog::Nullable::Time)}
|
||||
[Integer, NilClass].each {|klass| klass.send(:include, Fog::Nullable::Integer)}
|
||||
|
|
Loading…
Add table
Reference in a new issue