1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/tests/brightbox/models/compute/account_tests.rb
Paul Thornthwaite bcfb5fe1df [Brightbox] Guards against unimplemented mock
It didn't fail the CI run but a Fog::Errors::MockNotImplemented error
was raised due to a request being unguarded when testing with mocks.
2012-12-05 17:53:49 +00:00

17 lines
549 B
Ruby

Shindo.tests("Fog::Compute[:brightbox] | Account model", ["brightbox"]) do
pending if Fog.mocking?
@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