mirror of
https://github.com/TracksApp/tracks.git
synced 2025-09-22 05:50:47 +02:00
Use hash style syntax to get errors
ActiveModel::Errors#get is deprecated, has no effect, and will be removed without replacement. Co-Authored-By: Dan Rice <dnrce@users.noreply.github.com>
This commit is contained in:
parent
6e48ce6594
commit
735c6848fc
1 changed files with 1 additions and 1 deletions
|
@ -117,7 +117,7 @@ class RecurringTodosControllerTest < ActionController::TestCase
|
|||
# check error message
|
||||
errors = assigns(:recurring_todo).errors
|
||||
assert_equal 1, errors.size
|
||||
assert_equal errors.get(:description), ["can't be blank"]
|
||||
assert_equal errors[:description], ["can't be blank"]
|
||||
end
|
||||
|
||||
def test_new_recurring_todo_handles_attribs_outside_rec_todo
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue