Sha256: 1eff17ba4c08cfe3874df46edfe9905b42ba0b67f60cc972f8c8dcefdc25c7aa
Contents?: true
Size: 726 Bytes
Versions: 8
Compression:
Stored size: 726 Bytes
Contents
require 'helper' class Moonshado::SmsTest < Test::Unit::TestCase context Moonshado::Configuration do setup do Moonshado::Sms.configure do |config| config.api_key = 'http://20lsdjf2@localhost:3000/sms' config.keywords = {"test" => "http://test.com"} end end should "parse api key" do assert_equal(Moonshado::Sms.configuration.api_key, "20lsdjf2") end should "hold keywords hash" do assert_equal(Moonshado::Sms.configuration.keywords, {"test" => "http://test.com"}) end should "return proper api key" do Moonshado::Sms.configuration.api_key = "lasjdflk283" assert_equal(Moonshado::Sms.configuration.api_key, "lasjdflk283") end end end
Version data entries
8 entries across 8 versions & 1 rubygems