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

Version Path
moonshado-sms-1.1.1 test/configuration_test.rb
moonshado-sms-1.1.1.rc2 test/configuration_test.rb
moonshado-sms-1.1.1.rc1 test/configuration_test.rb
moonshado-sms-1.1.0 test/configuration_test.rb
moonshado-sms-1.1.0.rc1 test/configuration_test.rb
moonshado-sms-1.0.1 test/configuration_test.rb
moonshado-sms-1.0.0 test/configuration_test.rb
moonshado-sms-0.5.0 test/configuration_test.rb