Sha256: 27b208d48f7bf44f550251db8b97287f32b8804d9eb626b82f514198034253a8

Contents?: true

Size: 372 Bytes

Versions: 54

Compression:

Stored size: 372 Bytes

Contents

require 'spec_helper'

describe SparkApi::Authentication::SingleSessionProvider do
  subject { SparkApi::Authentication::SingleSessionProvider.new({ :access_token => "the_token" }) }
  it "should initialize a new session with access_token" do
    subject.load_session.should respond_to(:access_token)
    subject.load_session.access_token.should eq("the_token")
  end
end

Version data entries

54 entries across 54 versions & 1 rubygems

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