Sha256: 8cb9c4c4cc29f75d2e664b24da32f64dacc9070dd5a28667edbd69bde0545d63
Contents?: true
Size: 875 Bytes
Versions: 1
Compression:
Stored size: 875 Bytes
Contents
shared_context 'authentication' do let(:use_development?) { true } let(:consumer_key) { use_development? ? '_redbooth_development_' : ENV['CLIENT_ID'] } let(:consumer_secret) { use_development? ? '_redbooth_development_' : ENV['CLIENT_SECRET'] } let(:access_token) do { token: use_development? ? '_frank_access_token_' : ENV['ACCESS_TOKEN'] , refresh_token: use_development? ? '_frank_refresh_token_' : ENV['REFRESH_TOKEN'] } end let(:client) { Redbooth::Client.new(session) } let(:session) { Redbooth::Session.new(access_token) } before :each do Redbooth.config do |configuration| if use_development? configuration[:api_base] = 'localhost:3000' configuration[:use_ssl] = false end configuration[:consumer_key] = consumer_key configuration[:consumer_secret] = consumer_secret end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
redbooth-ruby-0.0.2 | spec/shared/authentication_context.rb |