test/application_controller_test.rb in wisepdf-1.2.6 vs test/application_controller_test.rb in wisepdf-1.2.7
- old
+ new
@@ -1,32 +1,32 @@
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
-
+ end
+
should "respond to #prerender_header_and_footer" do
assert_respond_to @controller, :prerender_header_and_footer
- end
-
+ end
+
should 'render pdf' do
get :index, :format => :pdf
assert_response 200
end
end
-end
\ No newline at end of file
+end