Skip to content

Fix: allow blank data source URL in test environment#519

Closed
Mallik544 wants to merge 3 commits intoankane:masterfrom
Mallik544:fix-issue-517-test-adapter-instance
Closed

Fix: allow blank data source URL in test environment#519
Mallik544 wants to merge 3 commits intoankane:masterfrom
Mallik544:fix-issue-517-test-adapter-instance

Conversation

@Mallik544
Copy link

Problem

System specs fail because adapter_instance raises Empty url for data source: main in test environment.

Cause

The current condition allows a blank URL in development, but not in test.

Fix

Allow Rails.env.test? to bypass the URL requirement.

Result

This aligns test behavior with development and prevents unnecessary failures in system specs.

@ankane
Copy link
Owner

ankane commented Mar 19, 2026

Hi @Mallik544, see #518.

@ankane ankane closed this Mar 19, 2026
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.

2 participants