diff options
author | Jasper Maes <jaspermaes.jm@gmail.com> | 2018-11-17 16:14:36 +0100 |
---|---|---|
committer | Jasper Maes <jaspermaes.jm@gmail.com> | 2018-11-17 16:14:36 +0100 |
commit | 5d5481519deb304243ed1c09171ccf8a45052d46 (patch) | |
tree | 88230bf396d2cfa9afdda5b22ed0eacb497d2392 /spec/finders | |
parent | 29d8179ba07be3ed111f939285eb4064d84cb7df (diff) | |
download | gitlab-ce-5d5481519deb304243ed1c09171ccf8a45052d46.tar.gz |
Rails5: Passing a class as a value in an Active Record query is deprecated
Diffstat (limited to 'spec/finders')
-rw-r--r-- | spec/finders/pending_todos_finder_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/finders/pending_todos_finder_spec.rb b/spec/finders/pending_todos_finder_spec.rb index 32fad5e225f..b41b1b46a93 100644 --- a/spec/finders/pending_todos_finder_spec.rb +++ b/spec/finders/pending_todos_finder_spec.rb @@ -46,7 +46,7 @@ describe PendingTodosFinder do create(:todo, :pending, user: user, target: note) - todos = described_class.new(user, target_type: issue.class).execute + todos = described_class.new(user, target_type: issue.class.name).execute expect(todos).to eq([todo]) end |