summaryrefslogtreecommitdiff
path: root/certs/test/functional/certs_controller_test.rb
blob: 295515bad167709f82f40cbb2ad1a5983af069ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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
  end
end