Sha256: cabdceb42bff1b87a6fe9983ffc8507f21985961c9425927d891a2153ed45787
Contents?: true
Size: 732 Bytes
Versions: 3
Compression:
Stored size: 732 Bytes
Contents
require "#{File.dirname(__FILE__)}/test_helper" module Messenger class MessengerTest < Test::Unit::TestCase context "Protocol/Handler" do should "determine the proper service" do assert_equal :email, Messenger.protocol("mailto:test@example.com") assert_equal :http, Messenger.protocol("http://example.com") assert_equal :http, Messenger.protocol("https://example.com") end should "determine the proper notification handler given a protocol" do assert_equal Email, Messenger.handler("mailto:test@example.com") assert_equal Web, Messenger.handler("http://example.com") assert_equal Web, Messenger.handler("https://example.com") end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
messenger-0.0.3 | test/test_messenger.rb |
messenger-0.0.2 | test/test_messenger.rb |
messenger-0.0.1 | test/test_messenger.rb |