Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix tree.find_by_path([]) #288

Merged

Conversation

robotdana
Copy link
Contributor

Previously Tag.find_by_tree([]) would return essentially Tag.first.
This was confusing as I expected it this should return nil.

I've also added a number of similar specs of passing all the blank values I can think of
as Tag.find_by_tree didn't seem to already be tested with these various blank values.

I expect this should return `nil`

I've also added a number of similar specs of passing all the blank values I can think of
as find_by_tree didn't seem to already be tested with these various blank values.
@robotdana
Copy link
Contributor Author

There seems to be something wrong with travis

@mceachen
Copy link
Collaborator

Thanks! Your diff lgtm. I restarted travis.

@robotdana
Copy link
Contributor Author

is there anything more you need from me before merging this?

@mceachen mceachen merged commit 48c3aa9 into ClosureTree:master Nov 1, 2017
@mceachen
Copy link
Collaborator

mceachen commented Nov 1, 2017

Nope, thanks!

@mceachen mceachen changed the title Fix tree.find_by_tree([]) Fix tree.find_by_path([]) Nov 2, 2017
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