From ce5f3be424ae4a3b132f2fb777e02e4499c63c6c Mon Sep 17 00:00:00 2001 From: Sawy Date: Thu, 15 Aug 2024 08:40:18 +0300 Subject: [PATCH] CV2-5051: fix tests --- test/models/explainer_test.rb | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/test/models/explainer_test.rb b/test/models/explainer_test.rb index cab34a1484..cce9645166 100644 --- a/test/models/explainer_test.rb +++ b/test/models/explainer_test.rb @@ -11,21 +11,6 @@ def setup end end - test "should have versions" do - with_versioning do - u = create_user - t = create_team - create_team_user team: t, user: u, role: 'admin' - with_current_user_and_team(u, t) do - ex = nil - assert_difference 'PaperTrail::Version.count', 1 do - ex = create_explainer user: u, team: t - end - assert_equal 1, ex.versions.count - end - end - end - test "should not create explainer without user or team" do assert_no_difference 'Explainer.count' do assert_raises ActiveRecord::RecordInvalid do