diff options
Diffstat (limited to 'certs/test/functional/certs_controller_test.rb')
-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 |