2012-11-20 06:28:14 -05:00
|
|
|
Shindo.tests("Fog::Compute[:brightbox] | Account model", ["brightbox"]) do
|
|
|
|
|
2012-12-05 12:53:49 -05:00
|
|
|
pending if Fog.mocking?
|
|
|
|
|
2012-11-20 06:28:14 -05:00
|
|
|
@account = Fog::Compute[:brightbox].account
|
|
|
|
|
|
|
|
tests("success") do
|
|
|
|
|
|
|
|
tests("#reset_ftp_password") do
|
|
|
|
pending if Fog.mocking?
|
|
|
|
test("original ftp password is blanked") { @account.library_ftp_password.nil? }
|
|
|
|
@new_password = @account.reset_ftp_password
|
|
|
|
test("new ftp password was not nil") { !@new_password.nil? }
|
|
|
|
test("new ftp password is set") { @account.library_ftp_password == @new_password }
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|