Sha256: b8d369a9a355849ba2a6ebffd5d69f9ece33a61c7ec9cb8a978e6a6423ad0da9
Contents?: true
Size: 947 Bytes
Versions: 9
Compression:
Stored size: 947 Bytes
Contents
require 'rails_helper' RSpec.describe ::DoorkeeperSsoClient::Config do # before(:each) do # ::DoorkeeperSsoClient::Config.configure do |config| # config[:oauth_client_id] = 123 # config[:oauth_client_secret] = 'abc' # config[:base_uri] = 'http://localhost' # end # end context "with config" do pending "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.oauth_login_path).to eq '/auth/doorkeeper_sso' } it { expect(::DoorkeeperSsoClient::Config.passport_verification_timeout_ms).to eq 200 } end end end
Version data entries
9 entries across 9 versions & 1 rubygems