1
0
Fork 0
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:
geemus 2011-05-26 14:35:35 -07:00
parent a89aeababd
commit d76964a5e1
2 changed files with 5 additions and 0 deletions

View file

@ -270,6 +270,9 @@ class Brightbox
"library_ftp_host" => String, "library_ftp_host" => String,
"library_ftp_user" => String, "library_ftp_user" => String,
"library_ftp_password" => Fog::Nullable::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, "owner" => Brightbox::Compute::Formats::Nested::USER,
"users" => [Brightbox::Compute::Formats::Nested::USER], "users" => [Brightbox::Compute::Formats::Nested::USER],
"clients" => [Brightbox::Compute::Formats::Nested::API_CLIENT], "clients" => [Brightbox::Compute::Formats::Nested::API_CLIENT],

View file

@ -4,12 +4,14 @@
module Fog module Fog
module Boolean; end module Boolean; end
module Nullable module Nullable
module Boolean; end
module Integer; end module Integer; end
module String; end module String; end
module Time; end module Time; end
end end
end end
[FalseClass, TrueClass].each {|klass| klass.send(:include, Fog::Boolean)} [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, String].each {|klass| klass.send(:include, Fog::Nullable::String)}
[NilClass, Time].each {|klass| klass.send(:include, Fog::Nullable::Time)} [NilClass, Time].each {|klass| klass.send(:include, Fog::Nullable::Time)}
[Integer, NilClass].each {|klass| klass.send(:include, Fog::Nullable::Integer)} [Integer, NilClass].each {|klass| klass.send(:include, Fog::Nullable::Integer)}