spec/models/identity_provider_spec.rb in osso-0.0.5.pre.gamma vs spec/models/identity_provider_spec.rb in osso-0.0.5.pre.iota

- old
+ new

@@ -22,9 +22,22 @@ "https://test.herokuapp.com/auth/saml/#{subject.id}/callback", ) end end + describe '#acs_url_validator' do + it 'returns a regex escaped string' do + allow(subject).to receive(:acs_url).and_return( + 'https://foo.com/auth/saml/callback' + ) + + expect(subject.acs_url_validator).to eq( + 'https://foo\\.com/auth/saml/callback' + ) + end + end + + describe '#saml_options' do it 'returns the required args' do expect(subject.saml_options). to match( domain: subject.domain,