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

Inconsistent :respond_to? on schedulings without playlist #23

Open
jaimeiniesta opened this issue May 15, 2015 · 0 comments
Open

Inconsistent :respond_to? on schedulings without playlist #23

jaimeiniesta opened this issue May 15, 2015 · 0 comments
Labels

Comments

@jaimeiniesta
Copy link
Contributor

When a scheduling hasn't got a playlist, we get a NoMethodError when trying to access it.

So, I would expect to be returned false when I ask if this method is defined:

@scheduling.respond_to?(:playlist) # returns true
@scheduling.playlist               # raises NoMethodError
@miguelff miguelff self-assigned this May 19, 2015
@miguelff miguelff added the bug label May 19, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants