Sha256: 56d33048e104dfdae437deffe206203756df4d6ff406db3f73611fc415aba4e0

Contents?: true

Size: 549 Bytes

Versions: 3

Compression:

Stored size: 549 Bytes

Contents

require 'unit_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

3 entries across 3 versions & 2 rubygems

Version Path
xeroizer-3.0.1 test/unit/oauth_config_test.rb
xeroizer-3.0.0 test/unit/oauth_config_test.rb
xeroizer-3-pre-beta-3.0.0.pre.beta test/unit/oauth_config_test.rb