diff options
author | Azul <azul@riseup.net> | 2012-09-27 22:36:21 +0200 |
---|---|---|
committer | Azul <azul@riseup.net> | 2012-09-27 22:36:21 +0200 |
commit | 1208257bcc0e2a6648b68433a7b7e24791f92583 (patch) | |
tree | c676f2030bef20705e46421b478b7f9305bcf13e /certs/test/functional | |
parent | e17a2a676e0ce585ef9eaa9077887bfe1bc1173f (diff) |
adding in leap web certs - merging repos
Diffstat (limited to 'certs/test/functional')
-rw-r--r-- | certs/test/functional/certs_controller_test.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/certs/test/functional/certs_controller_test.rb b/certs/test/functional/certs_controller_test.rb new file mode 100644 index 0000000..04669f5 --- /dev/null +++ b/certs/test/functional/certs_controller_test.rb @@ -0,0 +1,15 @@ +require 'test_helper' + +class CertsControllerTest < ActionController::TestCase + setup do + end + + test "should send cert" do + cert = stub :zipped => "adsf", :zipname => "cert_stub.zip" + Cert.expects(:pick_from_pool).returns(cert) + get :show + assert_response :success + assert_equal cert.zipped, @response.body + assert_attachement_filename "cert_stub.zip" + end +end |