test/test_rack_request.rb in schmobile-0.3.1 vs test/test_rack_request.rb in schmobile-0.3.2
- old
+ new
@@ -36,12 +36,12 @@
should "not detect a regular browser as mobile" do
assert !request.is_mobile?
assert !request("HTTP_USER_AGENT" => nil).is_mobile?
- [ :msie6, :msie8, :opera ].each do |browser|
+ [ :msie6, :msie8, :opera, :chrome ].each do |browser|
agent = self.send(browser)
- assert request("HTTP_USER_AGENT" => agent).is_mobile?
+ assert !request("HTTP_USER_AGENT" => agent).is_mobile?
end
end
should "detect mobile units as mobile" do
[ :ipod, :iphone, :android, :blackberry, :samsung, :palm, :htc_touch, :danger ].each do |phone|