Skip to content

Commit

Permalink
fixing current commit messages
Browse files Browse the repository at this point in the history
Signed-off-by: Will <[email protected]>
  • Loading branch information
wdower authored and aaronlippold committed Dec 12, 2024
1 parent 874896d commit 897af46
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/courses/advanced/05.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,12 @@ end

# What is the latest commit
describe command("git --git-dir #{git_dir} log -1 --pretty=format:'%h'") do
its('stdout') { should match /edc207f/ }
its('stdout') { should match /7a748c6/ }
end

# What is the second to last commit
describe command("git --git-dir #{git_dir} log --skip=1 -1 --pretty=format:'%h'") do
its('stdout') { should match /8c30bff/ }
its('stdout') { should match /edc207f/ }
end
```

Expand Down Expand Up @@ -103,9 +103,9 @@ Target ID: 6dcb9e6f-5ede-5474-9521-595fadf5c7ce
Command: `git --git-dir /workspaces/saf-training-lab-environment/git_test_target/.git branch`
✔ stdout is expected to match /^\* main/
Command: `git --git-dir /workspaces/saf-training-lab-environment/git_test_target/.git log -1 --pretty=format:'%h'`
✔ stdout is expected to match /edc207f/
✔ stdout is expected to match /7a748c6/
Command: `git --git-dir /workspaces/saf-training-lab-environment/git_test_target/.git log --skip=1 -1 --pretty=format:'%h'`
✔ stdout is expected to match /8c30bff/
✔ stdout is expected to match /edc207f/

Test Summary: 5 successful, 0 failures, 0 skipped
```
Expand Down Expand Up @@ -317,9 +317,9 @@ Target ID: 6dcb9e6f-5ede-5474-9521-595fadf5c7ce
Command: `git --git-dir /workspaces/saf-training-lab-environment/git_test_target/.git branch`
✔ stdout is expected to match /^\* main/
Command: `git --git-dir /workspaces/saf-training-lab-environment/git_test_target/.git log -1 --pretty=format:'%h'`
✔ stdout is expected to match /edc207f/
✔ stdout is expected to match /7a748c6/
Command: `git --git-dir /workspaces/saf-training-lab-environment/git_test_target/.git log --skip=1 -1 --pretty=format:'%h'`
✔ stdout is expected to match /8c30bff/
✔ stdout is expected to match /edc207f/

Test Summary: 4 successful, 1 failure, 0 skipped
```
Expand Down Expand Up @@ -385,9 +385,9 @@ Target ID: 6dcb9e6f-5ede-5474-9521-595fadf5c7ce
× current_branch
undefined method `current_branch' for #<#<Class:0x0000000005400588>:0x00000000053fd0b8>
Command: `git --git-dir /workspaces/saf-training-lab-environment/git_test_target/.git log -1 --pretty=format:'%h'`
✔ stdout is expected to match /edc207f/
Command: `git --git-dir /workspaces/saf-training-lab-environment/git_test_target/.git log --skip=1 -1 --pretty=format:'%h'`
✔ stdout is expected to match /8c30bff/
Command: `git --git-dir /workspaces/saf-training-lab-environment/git_test_target/.git log --skip=1 -1 --pretty=format:'%h'`
✔ stdout is expected to match /7a748c6/
Test Summary: 6 successful, 1 failure, 0 skipped
```
Expand Down Expand Up @@ -444,7 +444,7 @@ Target ID: 6dcb9e6f-5ede-5474-9521-595fadf5c7ce
✔ branches is expected to include "testBranch"
✔ current_branch is expected to cmp == "main"
Command: `git --git-dir /workspaces/saf-training-lab-environment/git_test_target/.git log -1 --pretty=format:'%h'`
✔ stdout is expected to match /edc207f/
✔ stdout is expected to match /7a748c6/
Command: `git --git-dir /workspaces/saf-training-lab-environment/git_test_target/.git log --skip=1 -1 --pretty=format:'%h'`
✔ stdout is expected to match /8c30bff/

Expand Down

0 comments on commit 897af46

Please sign in to comment.