Skip to content

Commit

Permalink
meet will's request for eq over match
Browse files Browse the repository at this point in the history
Signed-off-by: Amndeep Singh Mann <[email protected]>
  • Loading branch information
Amndeep7 committed Dec 23, 2024
1 parent 16a2519 commit 1d4decb
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/courses/advanced/05.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ end

# What is the current branch
describe command("git --git-dir #{git_dir} branch --show-current").stdout.strip do
it { should match 'main' }
it { should eq 'main' }
end

# What is the latest commit
Expand Down Expand Up @@ -125,7 +125,7 @@ Target ID: 6dcb9e6f-5ede-5474-9521-595fadf5c7ce
["main", "testBranch"]
✔ is expected to include "testBranch"
main
✔ is expected to match "main"
✔ is expected to eq "main"
Command: `git --git-dir /workspaces/saf-training-lab-environment/git_test_target/.git log -1 --pretty=format:'%h'`
✔ 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'`
Expand Down Expand Up @@ -276,7 +276,7 @@ Target ID: 6dcb9e6f-5ede-5474-9521-595fadf5c7ce
["main", "testBranch"]
✔ is expected to include "testBranch"
main
✔ is expected to match "main"
✔ is expected to eq "main"
Command: `git --git-dir /workspaces/saf-training-lab-environment/git_test_target/.git log -1 --pretty=format:'%h'`
✔ 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'`
Expand Down Expand Up @@ -330,7 +330,7 @@ Target ID: 6dcb9e6f-5ede-5474-9521-595fadf5c7ce
["main", "testBranch"]
✔ is expected to include "testBranch"
main
✔ is expected to match "main"
✔ is expected to eq "main"
Command: `git --git-dir /workspaces/saf-training-lab-environment/git_test_target/.git log -1 --pretty=format:'%h'`
✔ 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'`
Expand Down Expand Up @@ -371,7 +371,7 @@ Now let's adjust our test to also check for our second branch that we created ea
describe git(git_dir) do
its('branches') { should include 'main' }
its('branches') { should include 'testBranch' }
its('current_branch') { should cmp 'main' }
its('current_branch') { should eq 'main' }
end
```

Expand Down Expand Up @@ -473,7 +473,7 @@ Target ID: 6dcb9e6f-5ede-5474-9521-595fadf5c7ce
git
✔ branches is expected to include "main"
✔ branches is expected to include "testBranch"
✔ current_branch is expected to cmp == "main"
✔ current_branch is expected to eq "main"
Command: `git --git-dir /workspaces/saf-training-lab-environment/git_test_target/.git log -1 --pretty=format:'%h'`
✔ 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'`
Expand Down

0 comments on commit 1d4decb

Please sign in to comment.