spec/models/identity_provider_spec.rb in osso-0.0.3.25 vs spec/models/identity_provider_spec.rb in osso-0.0.3.26
- old
+ new
@@ -5,13 +5,14 @@
describe Osso::Models::IdentityProvider do
subject { create(:okta_identity_provider) }
describe '#assertion_consumer_service_url' do
it 'returns the expected URI for BASE_URL' do
+ ENV['HEROKU_APP_NAME'] = nil
ENV['BASE_URL'] = 'https://example.com'
expect(subject.assertion_consumer_service_url).to eq(
- "https://example.com/auth/saml/#{subject.id}/callback",
+ "#{ENV['BASE_URL']}/auth/saml/#{subject.id}/callback",
)
end
it 'returns the expected URI for HEROKU_APP_NAME' do
ENV['HEROKU_APP_NAME'] = 'test'