Sha256: 390bfeeade045267be6d1cb6aafea1942520c556077622ac78963add522a5d87
Contents?: true
Size: 706 Bytes
Versions: 2
Compression:
Stored size: 706 Bytes
Contents
require 'helper' class TestMoonshado < Test::Unit::TestCase context Moonshado 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
moonshado-sms-0.4.1 | test/configuration_test.rb |
moonshado-sms-0.4.0 | test/configuration_test.rb |