spec/vmc/cli/user/passwd_spec.rb in vmc-0.5.0.beta.12 vs spec/vmc/cli/user/passwd_spec.rb in vmc-0.5.0.rc1
- old
+ new
@@ -37,10 +37,10 @@
stub(cli).precondition { nil }
end
stub(client).logged_in? { true }
stub(client).current_user { user }
stub(client).register
- stub(client).base.stub!.uaa.stub!.password_score(new_password) { score }
+ stub(client).password_score(new_password) { score }
end
subject { vmc %W[passwd --password #{old_password} --new-password #{new_password} --verify #{verify_password} --no-force --debug] }
context 'when the passwords dont match' do