Sha256: e14757f93a0f658b2e780b99fa4f32386466b6950de00cf66c66eeedadf45513

Contents?: true

Size: 376 Bytes

Versions: 9

Compression:

Stored size: 376 Bytes

Contents

require 'abstract_unit'

class OldContentTypeController < ActionController::Base
  def render_default_for_rjs
  end
end

class ContentTypeTest < ActionController::TestCase
  tests OldContentTypeController

  def test_default_for_rjs
    xhr :post, :render_default_for_rjs
    assert_equal Mime::JS, @response.content_type
    assert_equal "utf-8", @response.charset
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
prototype-rails-4.0.0 test/controller/content_type_test.rb
prototype-rails-3.2.1 test/controller/content_type_test.rb
prototype-rails-3.2.0.rc1 test/controller/content_type_test.rb
prototype-rails-3.2.0 test/controller/content_type_test.rb
prototype-rails-3.1.0 test/controller/content_type_test.rb
prototype-rails-0.3.1 test/controller/content_type_test.rb
prototype-rails-0.3.0 test/controller/content_type_test.rb
prototype-rails-0.2 test/controller/content_type_test.rb
prototype-rails-0.1 test/controller/content_type_test.rb