diff options
author | jessib <jessib@leap.se> | 2012-11-20 11:58:09 -0800 |
---|---|---|
committer | jessib <jessib@leap.se> | 2012-11-20 11:58:09 -0800 |
commit | 80cd2489d87a523663d92776de55fa7fda2ecb99 (patch) | |
tree | 44e27ecffb66bc590de67a187954ba8ac96a9ede /certs/test/functional/certs_controller_test.rb | |
parent | 9289ae6601cacb746f83f9bd9d953d0591eac0da (diff) | |
parent | cd743d686ade50a9b23965a99c57b8105e834ec9 (diff) |
Merge branch 'develop' into help_develop
Diffstat (limited to 'certs/test/functional/certs_controller_test.rb')
-rw-r--r-- | certs/test/functional/certs_controller_test.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/certs/test/functional/certs_controller_test.rb b/certs/test/functional/certs_controller_test.rb index 295515b..9bba8c0 100644 --- a/certs/test/functional/certs_controller_test.rb +++ b/certs/test/functional/certs_controller_test.rb @@ -4,7 +4,14 @@ class CertsControllerTest < ActionController::TestCase setup do end + test "should require login" do + get :show + assert_response :redirect + assert_redirected_to login_url + end + test "should send cert" do + login cert = stub :zipped => "adsf", :zipname => "cert_stub.zip" Cert.expects(:pick_from_pool).returns(cert) get :show |