Sha256: 5cb6e9e6150d500b6f0322b701c81fcb844e128e733ab4fe93d59897b43fcd80

Contents?: true

Size: 544 Bytes

Versions: 44

Compression:

Stored size: 544 Bytes

Contents

require "test_helper"

class OAuthConfigTest < Test::Unit::TestCase
  include Xeroizer

  must "load oauth configuration from yaml" do
    the_yaml = "
    consumer:
        key: key
        secret: secret
        key_file: key_file
    "

    result = OAuthConfig.load the_yaml

    assert_equal "key",      result.consumer_key,    "Unexpected consumer_key value"
    assert_equal "secret",   result.consumer_secret, "Unexpected consumer_secret value"
    assert_equal "key_file", result.key_file,        "Unexpected key_file value"
  end
end

Version data entries

44 entries across 44 versions & 2 rubygems

Version Path
xeroizer-float-2.15.3.12 test/unit/oauth_config_test.rb
xeroizer-float-2.15.3.11 test/unit/oauth_config_test.rb
xeroizer-float-2.15.3.10 test/unit/oauth_config_test.rb
xeroizer-float-2.15.3.9 test/unit/oauth_config_test.rb
xeroizer-float-2.15.3.8 test/unit/oauth_config_test.rb
xeroizer-float-2.15.3.7 test/unit/oauth_config_test.rb
xeroizer-float-2.15.3.6 test/unit/oauth_config_test.rb
xeroizer-float-2.15.3.5 test/unit/oauth_config_test.rb
xeroizer-float-2.15.3.4 test/unit/oauth_config_test.rb
xeroizer-float-2.15.3.3 test/unit/oauth_config_test.rb
xeroizer-float-2.15.3.2 test/unit/oauth_config_test.rb
xeroizer-float-2.15.3.1 test/unit/oauth_config_test.rb
xeroizer-2.15.3 test/unit/oauth_config_test.rb
xeroizer-2.15.2 test/unit/oauth_config_test.rb
xeroizer-2.15.1 test/unit/oauth_config_test.rb
xeroizer-2.15.0 test/unit/oauth_config_test.rb
xeroizer-0.5.2 test/unit/oauth_config_test.rb
xeroizer-0.5.1 test/unit/oauth_config_test.rb
xeroizer-0.5.0 test/unit/oauth_config_test.rb
xeroizer-0.4.4 test/unit/oauth_config_test.rb