test/ruby-saml_test.rb in ruby-saml-0.3.2 vs test/ruby-saml_test.rb in ruby-saml-0.3.3
- old
+ new
@@ -28,9 +28,16 @@
should "raise an exception when response is initialized with nil" do
assert_raises(ArgumentError) { Onelogin::Saml::Response.new(nil) }
end
+ should "adapt namespace" do
+ response = Onelogin::Saml::Response.new(response_document)
+ assert !response.name_id.nil?
+ response = Onelogin::Saml::Response.new(response_document_2)
+ assert !response.name_id.nil?
+ end
+
context "#is_valid?" do
should "return false when response is initialized with blank data" do
response = Onelogin::Saml::Response.new('')
assert !response.is_valid?
end