Project

General

Profile

Actions

Bug #13335

closed

Tests fail on Rails 4.1.14

Added by Eric Helms almost 9 years ago. Updated almost 9 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Errors:

 1) Error:
TasksTest::filtering by current user#test_0001_can search the tasks by current_user:
ActiveRecord::StatementInvalid: PG::Error: ERROR:  operator does not exist: integer = character varying
LINE 1: ...oreman_tasks_tasks" ON "foreman_tasks_tasks"."id" = "foreman...
                                                             ^
HINT:  No operator matches the given name and argument type(s). You might need to add explicit type casts.
: SELECT COUNT(*) FROM "foreman_tasks_locks" INNER JOIN "foreman_tasks_tasks" ON "foreman_tasks_tasks"."id" = "foreman_tasks_locks"."task_id" WHERE (foreman_tasks_tasks.state != 'stopped') AND ("foreman_tasks_lo
cks"."task_id" NOT IN (0)) AND "foreman_tasks_locks"."name" = 'task_owner' AND "foreman_tasks_locks"."resource_id" = 980190963 AND "foreman_tasks_locks"."resource_type" = 'User' AND "foreman_tasks_locks"."exclus
ive" = 't'
    /home/vagrant/foreman-tasks/app/models/foreman_tasks/lock.rb:55:in `available?'
    /home/vagrant/foreman-tasks/app/models/foreman_tasks/lock.rb:48:in `block in <class:Lock>'
    test_after_commit (0.4.2) lib/test_after_commit.rb:27:in `block in transaction_with_transactional_fixtures'
    test_after_commit (0.4.2) lib/test_after_commit.rb:21:in `transaction_with_transactional_fixtures'
    /home/vagrant/foreman-tasks/app/models/foreman_tasks/lock.rb:131:in `owner!'
    /home/vagrant/foreman-tasks/test/factories/task_factory.rb:13:in `block (3 levels) in <top (required)>'
    /home/vagrant/foreman-tasks/test/unit/task_test.rb:12:in `block (2 levels) in <class:TasksTest>'

Related issues 1 (0 open1 closed)

Blocks Foreman - Feature #12873: Update Rails to 4.1.latestClosedDominic Cleal12/18/2015Actions
Actions

Also available in: Atom PDF