Project

General

Profile

Refactor #14736

Fix test deprecation warnings from AR find method in Rails 4.2

Added by David Davis about 3 years ago. Updated 11 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Tests
Target version:
Branch:
Difficulty:
Triaged:
Yes
Bugzilla link:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

DEPRECATION WARNING: You are passing an instance of ActiveRecord::Base to `find`. Please pass the id of the object by calling `.id`. (called from set_user at /var/lib/workspace/workspace/test_katello_pr_core@2/database/postgresql/ruby/2.2/plugin/test/katello_test_helper.rb:166)

Related issues

Related to Katello - Refactor #14156: Support Ruby on Rails 4.2 without ForeignerClosed2016-03-11

Associated revisions

Revision 2ffb1035 (diff)
Added by David Davis about 3 years ago

Fixes #14736 - Clean up find deprecation warnings (#5987)

History

#1 Updated by David Davis about 3 years ago

  • Related to Refactor #14156: Support Ruby on Rails 4.2 without Foreigner added

#2 Updated by David Davis about 3 years ago

  • Subject changed from Fix deprecation warnings from AR find method in Rails 4.2 to Fix test deprecation warnings from AR find method in Rails 4.2

#3 Updated by David Davis about 3 years ago

  • Tracker changed from Bug to Refactor
  • Category set to Tests

#4 Updated by The Foreman Bot about 3 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/5987 added

#5 Updated by Anonymous about 3 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

#6 Updated by Eric Helms about 3 years ago

  • Legacy Backlogs Release (now unused) set to 143

Also available in: Atom PDF