test/response_test.rb in ruby-saml-0.8.17 vs test/response_test.rb in ruby-saml-0.8.18

- old
+ new

@@ -382,9 +382,16 @@ response = OneLogin::RubySaml::Response.new(fixture(:simple_saml_php)) assert_equal "_51be37965feb5579d803141076936dc2e9d1d98ebf", response.sessionindex end end + describe "#response_id and assertion_id" do + it "extract the value of the Response and Assertion IDs" do + response = OneLogin::RubySaml::Response.new(response_document) + assert_equal "GOSAMLR12901174571794", response.response_id + assert_equal "pfxa46574df-b3b0-a06a-23c8-636413198772", response.assertion_id + end + end describe "#check_conditions" do it "check time conditions" do response = OneLogin::RubySaml::Response.new(response_document) assert !response.send(:validate_conditions, true)