Sha256: 3d35df04ed74242c9dce9a80b8730fb1e8e18016ec8557a3eefb86a730ef77cc
Contents?: true
Size: 794 Bytes
Versions: 36
Compression:
Stored size: 794 Bytes
Contents
require "spec_helper" describe Fog::Brightbox::OAuth2::RefreshTokenStrategy do before do @client_id = "app-12345" @client_secret = "__mashed_keys_123__" @credentials = Fog::Brightbox::OAuth2::CredentialSet.new(@client_id, @client_secret) @strategy = Fog::Brightbox::OAuth2::GrantTypeStrategy.new(@credentials) end it "tests #respond_to?(:authorization_body_data) returns true" do assert @strategy.respond_to?(:authorization_body_data) end it "tests #respond_to?(:headers) returns true" do assert @strategy.respond_to?(:headers) end it "tests #headers" do headers = @strategy.headers assert_equal "Basic YXBwLTEyMzQ1Ol9fbWFzaGVkX2tleXNfMTIzX18=", headers["Authorization"] assert_equal "application/json", headers["Content-Type"] end end
Version data entries
36 entries across 34 versions & 3 rubygems