Sha256: a7c491689752231abb472aa4860a856666ff45daf710302b40426cf3aaca1a43

Contents?: true

Size: 538 Bytes

Versions: 3

Compression:

Stored size: 538 Bytes

Contents

require File.expand_path('../helper', __FILE__)
	
class TestChrome < MiniTest::Unit::TestCase

  # chrome tests
  
  should "be chrome on mac" do
  	request = get_request(:Chrome, '8.0.552.237')  	
  	assert request.chrome?
  	assert request.mac?
  end

  should "be chrome on pc" do
  	request = get_request(:Chrome, '0.2.149.30')  	
  	assert request.chrome?
  	assert request.pc?
  end
  
  should "be chrome on linux" do
  	request = get_request(:Chrome, '4.0.202.2')  	
  	assert request.chrome?
  	assert request.linux?
  end
  
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
which_browser-0.2.2 test/test_chrome.rb
which_browser-0.2.1 test/test_chrome.rb
which_browser-0.2.0 test/test_chrome.rb