Skip to content

Commit

Permalink
Use find instead of where in test
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandermeindl committed Sep 16, 2024
1 parent 1256ef4 commit c84b0e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/integration/common_views_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def setup
test 'View issue' do
log_user 'admin', 'admin'
EnabledModule.create project_id: 1, name: 'issue_tracking'
issue = Issue.where(id: 1).first
issue = Issue.find 1
issue.save
get '/issues/1'

Expand Down

0 comments on commit c84b0e6

Please sign in to comment.