diff options
author | Jasper Maes <jaspermaes.jm@gmail.com> | 2018-11-17 18:14:36 +0300 |
---|---|---|
committer | Jasper Maes <jaspermaes.jm@gmail.com> | 2018-11-17 18:14:36 +0300 |
commit | 5d5481519deb304243ed1c09171ccf8a45052d46 (patch) | |
tree | 88230bf396d2cfa9afdda5b22ed0eacb497d2392 /spec/models/todo_spec.rb | |
parent | 29d8179ba07be3ed111f939285eb4064d84cb7df (diff) |
Rails5: Passing a class as a value in an Active Record query is deprecated
Diffstat (limited to 'spec/models/todo_spec.rb')
-rw-r--r-- | spec/models/todo_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/models/todo_spec.rb b/spec/models/todo_spec.rb index 2c01578aaca..82ff2a002e0 100644 --- a/spec/models/todo_spec.rb +++ b/spec/models/todo_spec.rb @@ -226,7 +226,7 @@ describe Todo do create(:todo, target: create(:merge_request)) - expect(described_class.for_type(Issue)).to eq([todo]) + expect(described_class.for_type(Issue.name)).to eq([todo]) end end |