Sha256: 418a7bd9d466f95b929d8098fd0a550fb6fcf720e14ca745c8c1665b6e976868

Contents?: true

Size: 744 Bytes

Versions: 7

Compression:

Stored size: 744 Bytes

Contents

require 'helper'

class ApplicationControllerTest < ActionController::TestCase
  tests ApplicationController

  context "The controller" do
    setup do
      module Wisepdf::Render
        public :make_pdf
        public :make_and_send_pdf
        public :prerender_header_and_footer
      end
    end

    should "respond to #make_pdf" do
      assert_respond_to @controller, :make_pdf
    end

    should "respond to #make_and_send_pdf" do
      assert_respond_to @controller, :make_and_send_pdf
    end

    should "respond to #prerender_header_and_footer" do
      assert_respond_to @controller, :prerender_header_and_footer
    end

    should 'render pdf' do
      get :index, :format => :pdf
      assert_response 200
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
wisepdf-1.4.0 test/application_controller_test.rb
wisepdf-1.3.1 test/application_controller_test.rb
wisepdf-1.3.0 test/application_controller_test.rb
wisepdf-1.2.10 test/application_controller_test.rb
wisepdf-1.2.9 test/application_controller_test.rb
wisepdf-1.2.8 test/application_controller_test.rb
wisepdf-1.2.7 test/application_controller_test.rb