diff options
author | Azul <azul@leap.se> | 2013-02-25 13:01:07 +0100 |
---|---|---|
committer | Azul <azul@leap.se> | 2013-02-25 13:01:07 +0100 |
commit | d99bcf4b0d0b8716ab0da58ea7320fb33bac78bb (patch) | |
tree | b2395a926fa606adfb59dab6fd10234d9b0ae823 /certs/test/functional/certs_controller_test.rb | |
parent | a314d1265bcf7b0c6dd66d61d03e1d2a7545cfb8 (diff) |
enable free certs with a common name postfix
Diffstat (limited to 'certs/test/functional/certs_controller_test.rb')
-rw-r--r-- | certs/test/functional/certs_controller_test.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/certs/test/functional/certs_controller_test.rb b/certs/test/functional/certs_controller_test.rb index 6ebd08e..a579a00 100644 --- a/certs/test/functional/certs_controller_test.rb +++ b/certs/test/functional/certs_controller_test.rb @@ -5,19 +5,19 @@ class CertsControllerTest < ActionController::TestCase end test "should send free cert without login" do - cert = stub :cert => "free cert", :key => "key" + cert = stub :to_s => "free cert" ClientCertificate.expects(:new).with(free: true).returns(cert) get :show assert_response :success - assert_equal cert.key + cert.cert, @response.body + assert_equal cert.to_s, @response.body end test "should send cert" do login - cert = stub :cert => "adsf", :key => "key" + cert = stub :to_s => "real cert" ClientCertificate.expects(:new).with(free: false).returns(cert) get :show assert_response :success - assert_equal cert.key + cert.cert, @response.body + assert_equal cert.to_s, @response.body end end |