Sha256: 40f56c840bba9d978758e11a6b716ad8992ac0b7fec1181970b65e664e80c65b

Contents?: true

Size: 778 Bytes

Versions: 6

Compression:

Stored size: 778 Bytes

Contents

require 'rails_helper'

RSpec.describe DoorkeeperSsoClient::Config, :type => :model do
  before(:each) do
    DoorkeeperSsoClient::Config.oauth_client_id = 123
    DoorkeeperSsoClient::Config.oauth_client_secret = 'abc'
    DoorkeeperSsoClient::Config.base_uri = 'http://localhost'
  end

  describe "stores config" do
    it { expect(DoorkeeperSsoClient::Config.oauth_client_id).to eq 123 }
    it { expect(DoorkeeperSsoClient::Config.oauth_client_secret).to eq 'abc' }
    it { expect(DoorkeeperSsoClient::Config.base_uri).to eq 'http://localhost' }
  end

  describe "have default values" do
    it { expect(DoorkeeperSsoClient::Config.sessions_path).to eq '/sso/sessions' }
    it { expect(DoorkeeperSsoClient::Config.passport_verification_timeout_ms).to eq 200 }
  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
doorkeeper_sso_client-0.3.0 spec/models/config_spec.rb
doorkeeper_sso_client-0.2.9 spec/models/config_spec.rb
doorkeeper_sso_client-0.2.8 spec/models/config_spec.rb
doorkeeper_sso_client-0.2.7 spec/models/config_spec.rb
doorkeeper_sso_client-0.2.5 spec/models/config_spec.rb
doorkeeper_sso_client-0.2.2 spec/models/config_spec.rb