Skip to content

Commit

Permalink
fixup! Add feature specs
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexB52 committed Jan 4, 2025
1 parent 9592c50 commit 088b93b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions features/rails-app/retest/retest_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ def test_start_retest
Launching Retest...
Ready to refactor! You can make file changes now
EXPECTED

write_input("\n") # Trigger last command when no command was run

assert_output_matches <<~EXPECTED
Error - Not enough information to run a command. Please trigger a run first.
EXPECTED
end

def test_modify_a_file
Expand Down Expand Up @@ -53,6 +59,10 @@ def test_start_retest
Launching Retest...
Ready to refactor! You can make file changes now
EXPECTED

write_input("\n") # Trigger all command when no command was run

assert_output_matches "8 runs, 10 assertions, 0 failures, 0 errors, 0 skips"
end

def test_modify_a_file
Expand Down

0 comments on commit 088b93b

Please sign in to comment.