From db1378244c9347cd81a46664dff5ec707938ea62 Mon Sep 17 00:00:00 2001 From: Thorsten Eckel Date: Fri, 22 Jun 2018 14:39:32 +0200 Subject: [PATCH] Test stabilization: Test expects that Setting 'system_id' has different initial value than ID 999 but hasn't because of other tests storing ID 999 before in some scenarios. --- test/unit/ticket_number_test.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/unit/ticket_number_test.rb b/test/unit/ticket_number_test.rb index d708aee70..6d41f8651 100644 --- a/test/unit/ticket_number_test.rb +++ b/test/unit/ticket_number_test.rb @@ -60,6 +60,9 @@ class TicketNumberTest < ActiveSupport::TestCase test 'number check' do Setting.set('ticket_number_increment', { checksum: false, min_size: 5 }) + + Setting.set('system_id', 1) + ticket = Ticket.create!( title: 'test 1', group: Group.lookup(name: 'Users'), @@ -134,6 +137,8 @@ class TicketNumberTest < ActiveSupport::TestCase Setting.set('ticket_number', 'Ticket::Number::Date') Setting.set('ticket_number_date', { checksum: false }) + Setting.set('system_id', 1) + ticket = Ticket.create!( title: 'test 1', group: Group.lookup(name: 'Users'),