Sha256: 918b29226b11457f0fddb25c9dc9b918978d468ab22c57631e9d57644ab01daf

Contents?: true

Size: 434 Bytes

Versions: 52

Compression:

Stored size: 434 Bytes

Contents

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

52 entries across 52 versions & 1 rubygems

Version Path
spark_api-1.4.34 spec/unit/spark_api/authentication/oauth2_impl/grant_type_base_spec.rb
spark_api-1.4.32 spec/unit/spark_api/authentication/oauth2_impl/grant_type_base_spec.rb
spark_api-1.4.31 spec/unit/spark_api/authentication/oauth2_impl/grant_type_base_spec.rb
spark_api-1.4.29 spec/unit/spark_api/authentication/oauth2_impl/grant_type_base_spec.rb
spark_api-1.4.28 spec/unit/spark_api/authentication/oauth2_impl/grant_type_base_spec.rb
spark_api-1.4.27 spec/unit/spark_api/authentication/oauth2_impl/grant_type_base_spec.rb
spark_api-1.4.26 spec/unit/spark_api/authentication/oauth2_impl/grant_type_base_spec.rb
spark_api-1.4.25 spec/unit/spark_api/authentication/oauth2_impl/grant_type_base_spec.rb
spark_api-1.4.24 spec/unit/spark_api/authentication/oauth2_impl/grant_type_base_spec.rb
spark_api-1.4.23 spec/unit/spark_api/authentication/oauth2_impl/grant_type_base_spec.rb
spark_api-1.4.22 spec/unit/spark_api/authentication/oauth2_impl/grant_type_base_spec.rb
spark_api-1.4.21 spec/unit/spark_api/authentication/oauth2_impl/grant_type_base_spec.rb
spark_api-1.4.20 spec/unit/spark_api/authentication/oauth2_impl/grant_type_base_spec.rb
spark_api-1.4.19 spec/unit/spark_api/authentication/oauth2_impl/grant_type_base_spec.rb
spark_api-1.4.18 spec/unit/spark_api/authentication/oauth2_impl/grant_type_base_spec.rb
spark_api-1.4.17 spec/unit/spark_api/authentication/oauth2_impl/grant_type_base_spec.rb
spark_api-1.4.16 spec/unit/spark_api/authentication/oauth2_impl/grant_type_base_spec.rb
spark_api-1.4.15 spec/unit/spark_api/authentication/oauth2_impl/grant_type_base_spec.rb
spark_api-1.4.14 spec/unit/spark_api/authentication/oauth2_impl/grant_type_base_spec.rb
spark_api-1.4.13 spec/unit/spark_api/authentication/oauth2_impl/grant_type_base_spec.rb