Skip to content

Fix OmnivaProviderTest stub for Savon XML namespace differences#61

Open
mmeest wants to merge 1 commit into
masterfrom
fix/omniva-provider-test-stub
Open

Fix OmnivaProviderTest stub for Savon XML namespace differences#61
mmeest wants to merge 1 commit into
masterfrom
fix/omniva-provider-test-stub

Conversation

@mmeest

@mmeest mmeest commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

Summary
Updates the OmnivaProviderTest#test_sends_normalized_e_invoice WebMock stub to match essential SOAP content via regex instead of an exact XML string (authPhrase, E_Invoice).

Why tests were failing
After upgrading CI from Ruby 2.7 to 3.2.2 and switching to a plain bundle install (no Gemfile.lock in the repo), dependency resolution pulled newer Savon/httpi/wasabi versions. The newer Savon build generates a SOAP envelope with fewer XML namespace declarations than the test expected. WebMock compares request bodies exactly, so the stub no longer matched — even though OmnivaProvider logic itself did not change.

Fix OmnivaProviderTest stub to tolerate Savon XML namespace differences.

@

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant