diff options
author | Seth Fitzsimmons <seth@mojodna.net> | 2008-12-15 12:00:55 -0600 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2008-12-15 12:00:55 -0600 |
commit | f36dafa492e3de66e624d81d6860f5f0536de6b0 (patch) | |
tree | 17fcb6dbb50c52f5f06ceaab00cf203be17c3dac /actionpack/lib/action_controller/assertions/selector_assertions.rb | |
parent | 7c18518105e98ccfd89fe64194ede27824dfe8b3 (diff) | |
download | rails-f36dafa492e3de66e624d81d6860f5f0536de6b0.tar.gz rails-f36dafa492e3de66e624d81d6860f5f0536de6b0.tar.bz2 rails-f36dafa492e3de66e624d81d6860f5f0536de6b0.zip |
Implement Mime::Type.=~ to match all synonyms against arg [#1573 state:resolved]
Signed-off-by: Joshua Peek <josh@joshpeek.com>
Diffstat (limited to 'actionpack/lib/action_controller/assertions/selector_assertions.rb')
-rw-r--r-- | actionpack/lib/action_controller/assertions/selector_assertions.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/assertions/selector_assertions.rb b/actionpack/lib/action_controller/assertions/selector_assertions.rb index e03fed7abb..248ca85994 100644 --- a/actionpack/lib/action_controller/assertions/selector_assertions.rb +++ b/actionpack/lib/action_controller/assertions/selector_assertions.rb @@ -587,7 +587,7 @@ module ActionController def response_from_page_or_rjs() content_type = @response.content_type - if content_type && content_type =~ /text\/javascript/ + if content_type && Mime::JS =~ content_type body = @response.body.dup root = HTML::Node.new(nil) |