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

Refs #14842 - 'validate' should be 'validates' #177

Merged
merged 1 commit into from Apr 28, 2016

Conversation

dLobatog
Copy link
Member

On remote_execution_feature, there's a line calling validate and then
calls some Rails validations. It has a typo and should say validates.
Passenger does not start because of this, with an error

' Message from application: Unknown key: :presence. Valid keys are: :on,
:if, :unless, :prepend. Perhaps you meant to call validates instead
of validate? (ArgumentError) '

Fix is as simple as correcting the typo.

require 'dynflow/testing'
require 'database_cleaner'
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I also took the ocassion to fix this. If you're running tests individually (not with rake test), these tests will not work because of DatabaseCleaner in line 11. This is only loaded on integration tests now in core , so we have to require it manually.

@stbenjam
Copy link
Member

My commit had the database cleaner patch, it's in https://github.com/theforeman/foreman_remote_execution/pull/173/files#diff-b7be47364acf6629bcdcf5d0ab5f9ffbR3

The unit tests are valuable though.

@stbenjam
Copy link
Member

@dLobatog Please rebase and change the commit to refs, as #173 actually fixed it.

@dLobatog
Copy link
Member Author

Updated 😄

@ares ares changed the title Fixes #14842 - 'validate' should be 'validates' Refs #14842 - 'validate' should be 'validates' Apr 28, 2016
@ares
Copy link
Member

ares commented Apr 28, 2016

Thanks @dLobatog, merging!

@ares ares merged commit f37d06f into theforeman:master Apr 28, 2016
MariaAga pushed a commit to MariaAga/foreman_remote_execution that referenced this pull request Sep 3, 2021
…d-delayed

Fixes #13833 - Handle humanized input with delayed task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants