Commit cc4b02a

mo <mo.khan@gmail.com>
2018-03-17 21:11:14
add spec for binding name.
1 parent 3d8cd33
Changed files (2)
spec/saml/kit/bindings/http_post_spec.rb
@@ -5,6 +5,8 @@ RSpec.describe Saml::Kit::Bindings::HttpPost do
 
   let(:location) { FFaker::Internet.uri('https') }
 
+  specify { expect(subject.binding).to eql(Saml::Kit::Bindings::HTTP_POST) }
+
   describe 'equality' do
     it 'is referentially equal' do
       expect(subject).to eql(subject)
spec/saml/kit/bindings/http_redirect_spec.rb
@@ -5,6 +5,8 @@ RSpec.describe Saml::Kit::Bindings::HttpRedirect do
 
   let(:location) { FFaker::Internet.http_url }
 
+  specify { expect(subject.binding).to eql(Saml::Kit::Bindings::HTTP_REDIRECT) }
+
   describe '#serialize' do
     let(:relay_state) { 'ECHO' }
     let(:configuration) do