Skip to content

Commit

Permalink
CV2-5051: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
melsawy committed Aug 15, 2024
1 parent f951e17 commit ce5f3be
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions test/models/explainer_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ce5f3be

Please sign in to comment.