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

Fixing aliasing issue when index doesn't exist #817

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hexgnu
Copy link

@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.

None yet

1 participant