diff options
author | Azul <azul@leap.se> | 2012-12-14 14:38:24 +0100 |
---|---|---|
committer | Azul <azul@leap.se> | 2012-12-14 14:38:24 +0100 |
commit | 836f85fc362d4080ac9e0fc17455ec5a5c03cfee (patch) | |
tree | 1c2049837636155ef060d458acb1450071091589 /certs/test/functional | |
parent | 1eeec0808886e305d5113a20bf6ea5c1921e633b (diff) |
fixed the functional test that was failing due to cert changes
Diffstat (limited to 'certs/test/functional')
-rw-r--r-- | certs/test/functional/certs_controller_test.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/certs/test/functional/certs_controller_test.rb b/certs/test/functional/certs_controller_test.rb index 9bba8c0..3d6946e 100644 --- a/certs/test/functional/certs_controller_test.rb +++ b/certs/test/functional/certs_controller_test.rb @@ -12,10 +12,10 @@ class CertsControllerTest < ActionController::TestCase test "should send cert" do login - cert = stub :zipped => "adsf", :zipname => "cert_stub.zip" - Cert.expects(:pick_from_pool).returns(cert) + cert = stub :cert => "adsf", :key => "key" + LeapCA::Cert.expects(:pick_from_pool).returns(cert) get :show assert_response :success - assert_equal cert.zipped, @response.body + assert_equal cert.key + cert.cert, @response.body end end |