Sha256: ae8ca78e30847a9ab9216e84edd7c0f695528e4bdd5f623f1f8a2d83e12be4da

Contents?: true

Size: 492 Bytes

Versions: 1

Compression:

Stored size: 492 Bytes

Contents

require "test_helper"

class OrdersControllerTest < ActionController::TestCase
  test "formie copyright" do
    expected = <<-EOS
      <div class="copyright"> Copyright (c) 2000 </div>
      <p>
        <label> def </label>
        <input type="text" name="def" id="def" />
      </p>
    EOS
    expected.gsub!(/^ */, "").delete!("\n")

    get :index # faked index
    assert_response :success
    res = response.body.gsub(/^ */, "").delete("\n")
    assert_match(expected, res)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
formie-1.1.4 test/controllers/orders_test.rb