Sha256: 1c462b4dac0436e811d594a20b9f5cf3b4c97534ed41eb6d9f877ff85e2b0d2e

Contents?: true

Size: 560 Bytes

Versions: 3

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

3 entries across 3 versions & 1 rubygems

Version Path
human_power-0.0.3 test/rails/integration_test.rb
human_power-0.0.2 test/rails/integration_test.rb
human_power-0.0.1 test/rails/integration_test.rb