Sha256: 03a256d5e34707856d0a7c1b12a868a90fd22ef6fc1e611b7d26f1de78c1db56

Contents?: true

Size: 493 Bytes

Versions: 1

Compression:

Stored size: 493 Bytes

Contents

require "test/setup"

class ServerTest < Test::Unit::TestCase

  context "setup server" do
    setup { @client = Server.register(:display_name=>"UberClient", :redirect_uri=>"http://uberclient.dot/callback", :scope=>%w{read write oauth-admin}) }
    should "have parameters" do
      assert_equal "http://uberclient.dot/callback", @client.redirect_uri
      assert_equal "UberClient", @client.display_name
      assert_same_elements %w(read write oauth-admin), @client.scope
    end
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rack-oauth2-server-2.8.1 test/oauth/server_test.rb