Sha256: 6cf21d2986ebdc6a9ece7065f0653fd4de110896dc2f7adf9e798ede13e2c632

Contents?: true

Size: 505 Bytes

Versions: 7

Compression:

Stored size: 505 Bytes

Contents

# frozen_string_literal: true
require "test_helper"
require "browser/rails"
require "sample_app"

class RailsTest < Minitest::Test
  include Rack::Test::Methods

  def app
    Rails.application
  end

  test "renders page" do
    get "/home", {}, "HTTP_USER_AGENT" => Browser["CHROME"],
                     "HTTP_ACCEPT" => "text/html",
                     "HTTP_ACCEPT_LANGUAGE" => "en-US;q=0.8"

    assert_equal 200, last_response.status
    assert_equal "Chrome:en-US", last_response.body
  end
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/browser-2.3.0/test/rails_test.rb
browser-2.3.0 test/rails_test.rb
browser-2.2.0 test/rails_test.rb
browser-2.1.0 test/rails_test.rb
browser-2.0.3 test/rails_test.rb
browser-2.0.2 test/rails_test.rb
browser-2.0.1 test/rails_test.rb