mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
4b79b6ba04
Tests that Account#reset_ftp_password is working (had an issue previously) and now merges the results in making the password value available on the model whilst it exists.
15 lines
522 B
Ruby
15 lines
522 B
Ruby
Shindo.tests("Fog::Compute[:brightbox] | Account model", ["brightbox"]) do
|
|
|
|
@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
|