Closed jcoyne closed 11 months ago
The current_path is only the path (no parameters)
current_path
expect(current_path).to eq '/reserves/new'
The have_current_path does a comparison on the path + query parameters.
have_current_path
Failure/Error: expect(page).to have_current_path '/reserves/new' expected "/reserves/new?comp_key=AA-272C%2C123%2C456" to equal "/reserves/new"
The
current_path
is only the path (no parameters)The
have_current_path
does a comparison on the path + query parameters.