Sha256: 455a05ceb0a90f7b245461ad6348299e805132ae0b087c4ec959bbdf0804a290

Contents?: true

Size: 560 Bytes

Versions: 1

Compression:

Stored size: 560 Bytes

Contents

require "test_helper"

class IntegrationTest < ActionDispatch::IntegrationTest
  test "robots.txt" do
    get "/robots.txt"
    assert_response :success

    assert_equal "Sitemap: http://www.example.com/sitemap.xml\n"\
                 "\n"\
                 "User-agent: *\n"\
                 "Disallow: /admin/\n"\
                 "\n"\
                 "User-agent: Bingbot\n"\
                 "Disallow: /\n"\
                 "\n"\
                 "User-agent: Googlebot\n"\
                 "Disallow: /products/one",
                 body
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
human_power-0.0.4 test/rails/integration_test.rb