diff --git a/test/test_init.py b/test/test_init.py
index 3442e87..218746f 100644
--- a/test/test_init.py
+++ b/test/test_init.py
@@ -61,7 +61,8 @@ def test_solve_issue_with_no_aider_changes():
         
         with patch('aider_gitea.run_cmd', return_value=True) as mock_run_cmd, \
              patch('aider_gitea.get_current_commit_hash', return_value="abcdef") as mock_get_hash, \
-             patch('aider_gitea.has_changes_since_commit', return_value=False) as mock_has_changes:
+             patch('aider_gitea.has_changes_since_commit', return_value=False) as mock_has_changes, \
+             patch('aider_gitea.create_aider_command', return_value=["mock_aider_command"]) as mock_create_aider:
             
             result = solve_issue_in_repository(
                 args,
@@ -76,3 +77,6 @@ def test_solve_issue_with_no_aider_changes():
             assert result is False
             mock_get_hash.assert_called_once()
             mock_has_changes.assert_called_once_with(Path(tmpdirname), "abcdef")
+            # Verify that the initial ruff pass was run
+            assert any(call_args[0][0] == ['bash', '-c', 'set -e;ruff format;ruff check --fix --ignore RUF022 --ignore PGH004;ruff format;ruff check --fix --ignore RUF022 --ignore PGH004'] 
+                      for call_args in mock_run_cmd.call_args_list)