Sha256: 549ec963214cfd8c5b21daa2dcab698c5b257ad52672cb1b91bc5513e130a5c7

Contents?: true

Size: 472 Bytes

Versions: 9

Compression:

Stored size: 472 Bytes

Contents

require './spec/spec_helper'
require './spec/oauth2_helper'

describe SparkApi::Authentication::OAuth2Impl::GrantTypeBase do
  subject { SparkApi::Authentication::OAuth2Impl::GrantTypeBase }
  # Make sure the client boostraps the right plugin based on configuration.
  it "create should " do
    expect {subject.create(nil, InvalidAuth2Provider.new())}.to  raise_error(SparkApi::ClientError){ |e| e.message.should == "Unsupported grant type [not_a_real_type]" }
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
spark_api-1.2.1 spec/unit/spark_api/authentication/oauth2_impl/grant_type_base_spec.rb
spark_api-1.2.0 spec/unit/spark_api/authentication/oauth2_impl/grant_type_base_spec.rb
spark_api-1.1.2 spec/unit/spark_api/authentication/oauth2_impl/grant_type_base_spec.rb
spark_api-1.1.1 spec/unit/spark_api/authentication/oauth2_impl/grant_type_base_spec.rb
spark_api-1.1.0 spec/unit/spark_api/authentication/oauth2_impl/grant_type_base_spec.rb
spark_api-1.0.4 spec/unit/spark_api/authentication/oauth2_impl/grant_type_base_spec.rb
spark_api-1.0.2 spec/unit/spark_api/authentication/oauth2_impl/grant_type_base_spec.rb
spark_api-1.0.1 spec/unit/spark_api/authentication/oauth2_impl/grant_type_base_spec.rb
spark_api-1.0.0 spec/unit/spark_api/authentication/oauth2_impl/grant_type_base_spec.rb