Sha256: debee9ae5e62b6922331cb828d2c48ad8a9f975d2947a0ec72b093c75a6a13cf
Contents?: true
Size: 757 Bytes
Versions: 7
Compression:
Stored size: 757 Bytes
Contents
require 'helper' class TestUserAgents < Test::Unit::TestCase context "Rack::Schmobile::UserAgents" do context "#remove_user_agent_pattern" do should "allow removal of a user agent" do assert Rack::Schmobile::UserAgents.is_mobile_agent?("novarra") Rack::Schmobile::UserAgents.remove_user_agent_pattern("novarra") assert !Rack::Schmobile::UserAgents.is_mobile_agent?("novarra") end end context "#add_user_agent_pattern" do should "allow adding a user agent" do assert !Rack::Schmobile::UserAgents.is_mobile_agent?("wibble") Rack::Schmobile::UserAgents.add_user_agent_pattern("wibble") assert Rack::Schmobile::UserAgents.is_mobile_agent?("wibble") end end end end
Version data entries
7 entries across 7 versions & 1 rubygems