lib/bad_browser.rb
# Determines if the parsed version is acceptable or not
Determines if the parsed version is acceptable or not
Determines if the parsed version is acceptable or not
def compare_versions
      return true unless version
      case browser
      when :msie then version >= '7.0'
      when :firefox then version >= '3.6.25'
      when :chrome then version >= '4.1.249'
      when :safari then version >= '4.0'
      when :opera then version >= '9.0'
      else true 
      end
    end
def compare_versions return true unless version case browser when :msie then version >= '7.0' when :firefox then version >= '3.6.25' when :chrome then version >= '4.1.249' when :safari then version >= '4.0' when :opera then version >= '9.0' else true end end
Determines if the parsed version is acceptable or not
Determines if the parsed version is acceptable or not
# return true if we don't know