Sha256: d1bf0890ca852992ee10454ce33a972c6827a0c8e81fa3c83e8903f8f658fbdc

Contents?: true

Size: 478 Bytes

Versions: 8

Compression:

Stored size: 478 Bytes

Contents

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

describe FlexmlsApi::Authentication::OAuth2Impl::GrantTypeBase do
  subject { FlexmlsApi::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(FlexmlsApi::ClientError){ |e| e.message.should == "Unsupported grant type [not_a_real_type]" }
  end
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
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~
flexmls_api-0.7.3 spec/unit/flexmls_api/authentication/oauth2_impl/grant_type_base_spec.rb
flexmls_api-0.7.5 spec/unit/flexmls_api/authentication/oauth2_impl/grant_type_base_spec.rb
flexmls_api-0.7.0 spec/unit/flexmls_api/authentication/oauth2_impl/grant_type_base_spec.rb
flexmls_api-0.6.5 spec/unit/flexmls_api/authentication/oauth2_impl/grant_type_base_spec.rb
flexmls_api-0.6.4 spec/unit/flexmls_api/authentication/oauth2_impl/grant_type_base_spec.rb