Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Add test case for #5307

  • Loading branch information...
commit b35fd40891a907543d67e6aac2c53dbc22bb0b43 1 parent e7560bc
Carlos Antonio da Silva carlosantoniodasilva authored josevalim committed

Showing 1 changed file with 6 additions and 2 deletions. Show diff stats Hide diff stats

  1. +6 2 actionpack/test/controller/mime_responds_test.rb
8 actionpack/test/controller/mime_responds_test.rb
@@ -132,7 +132,6 @@ def all_types_with_layout
132 132 end
133 133 end
134 134
135   -
136 135 def iphone_with_html_response_type
137 136 request.format = :iphone if request.env["HTTP_ACCEPT"] == "text/iphone"
138 137
@@ -1104,7 +1103,7 @@ class PostController < AbstractPostController
1104 1103 around_filter :with_iphone
1105 1104
1106 1105 def index
1107   - respond_to(:html, :iphone)
  1106 + respond_to(:html, :iphone, :js)
1108 1107 end
1109 1108
1110 1109 protected
@@ -1151,6 +1150,11 @@ def test_format_with_inherited_layouts
1151 1150 get :index
1152 1151 assert_equal '<html><div id="super_iphone">Super iPhone</div></html>', @response.body
1153 1152 end
  1153 +
  1154 + def test_non_navigational_format_with_no_template_fallbacks_to_html_template_with_no_layout
  1155 + get :index, :format => :js
  1156 + assert_equal "Hello Firefox", @response.body
  1157 + end
1154 1158 end
1155 1159
1156 1160 class FlashResponder < ActionController::Responder

0 comments on commit b35fd40

Please sign in to comment.
Something went wrong with that request. Please try again.