josh/useragent — pull request #27 by tekkub (2012-05-06 00:44:41+00:00)
Title: Add failing spec for a Win7 Chrome useragent

I took this string from a fresh install of Chrome on Win7. It seems to not detect the OS correctly.

Failures:

1) UserAgent: 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.168 Safari/535.19' should return '525.19' as its build
Failure/Error: @useragent.build.should == "525.19"
expected: "525.19"
got: # (using ==)
Diff:
@@ -1,2 +1,2 @@
-"525.19"
+#
# ./spec/browsers/webkit_user_agent_spec.rb:887

2) UserAgent: 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.168 Safari/535.19' should return '525.19' as its webkit version
Failure/Error: @useragent.webkit.version.should == "525.19"
expected: "525.19"
got: # (using ==)
Diff:
@@ -1,2 +1,2 @@
-"525.19"
+#
# ./spec/browsers/webkit_user_agent_spec.rb:895

3) UserAgent: 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.168 Safari/535.19' should return 'Windows' as its platform
Failure/Error: @useragent.platform.should == "Windows"
expected: "Windows"
got: "Windows NT 6.1" (using ==)
# ./spec/browsers/webkit_user_agent_spec.rb:899

4) UserAgent: 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.168 Safari/535.19' should return 'Windows 7' as its os
Failure/Error: @useragent.os.should == "Windows 7"
expected: "Windows 7"
got: "WOW64" (using ==)
# ./spec/browsers/webkit_user_agent_spec.rb:903