Skip to content
This repository was archived by the owner on Jun 30, 2018. It is now read-only.

Fixing aliasing issue when index doesn't exist#817

Open
hexgnu wants to merge 1 commit intokarmi:masterfrom
hexgnu:aliases_fix
Open

Fixing aliasing issue when index doesn't exist#817
hexgnu wants to merge 1 commit intokarmi:masterfrom
hexgnu:aliases_fix

Conversation

@hexgnu
Copy link
Copy Markdown

@hexgnu hexgnu commented Jul 31, 2013

What

The problem is if you use Tire.index('foobaz').aliases it causes an error instead of returning a blank array.

This aims to fix that by returning [] for anything that's not a 200 status code.

How to test

The spec should show you how to test the code but basically the use case is Tire.index('foobaz').aliases or Tire::Alias.all('foobaz') either gets the error

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant