Finish making pending tests pass

This commit is contained in:
Yehuda Katz + Carl Lerche 2009-06-17 12:47:34 -07:00
parent 487312515c
commit 6927f1119b
2 changed files with 8 additions and 7 deletions

View File

@ -301,6 +301,9 @@ class TestController < ActionController::Base
def render_implicit_html_template_from_xhr_request
end
def render_implicit_js_template_without_layout
end
def formatted_html_erb
end
@ -928,16 +931,13 @@ class RenderTest < ActionController::TestCase
end
def test_should_implicitly_render_html_template_from_xhr_request
pending
# xhr :get, :render_implicit_html_template_from_xhr_request
# assert_equal "XHR!\nHello HTML!", @response.body
xhr :get, :render_implicit_html_template_from_xhr_request
assert_equal "XHR!\nHello HTML!", @response.body
end
def test_should_implicitly_render_js_template_without_layout
pending do
get :render_implicit_js_template_without_layout, :format => :js
assert_no_match %r{<html>}, @response.body
end
get :render_implicit_js_template_without_layout, :format => :js
assert_no_match %r{<html>}, @response.body
end
def test_should_render_formatted_template

View File

@ -0,0 +1 @@
alert('hello');