Sha256: 1cb46db2b9f3d1cdddce3b121b1882cbde46054ada5cd7bdda2e1e025b29b022

Contents?: true

Size: 322 Bytes

Versions: 6

Compression:

Stored size: 322 Bytes

Contents

require "test_helper"

class ControllerTest < ActionController::TestCase
  tests SongsController

  it do
    get :index
    response.body.must_equal "happy"
  end

  # HTML escaping.
  it do
    get :with_escaped
    response.body.must_equal "<h1>Yeah!</h1><b>&lt;script&gt;</b>" # only the property is escaped.
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
cells-4.0.5 test/rails4.2/test/integration/controller_test.rb
cells-4.0.4 test/rails4.2/test/integration/controller_test.rb
cells-4.0.3 test/rails4.2/test/integration/controller_test.rb
cells-4.0.2 test/rails4.2/test/integration/controller_test.rb
cells-4.0.1 test/rails4.2/test/integration/controller_test.rb
cells-4.0.0 test/rails4.2/test/integration/controller_test.rb