prole/tests/shellspec/.vendor/shellspec-0.28.1/examples/spec/05.expectation_spec.sh
chrisfu 909e92109e Refactor shell layout; add shellspec + authority
- Introduce lib/shell helpers and keep etc/* scripts thin via compatibility shims

- Move Kerberos validation to scripts/validation/check_kerberos.sh and update callers

- Add deterministic shellspec unit tests under tests/shellspec/ and wire Maven to run them

- Add minimal Spring Boot authority module with startup + /health endpoint and Maven wiring

- Document the new layout in docs/layout.md

Co-authored-by: Junie <junie@jetbrains.com>
2026-03-13 09:19:56 -07:00

28 lines
575 B
Bash

#shellcheck shell=sh
Describe 'expectation example'
It 'is succeeds because expectation is successful'
foo() { echo "foo"; }
When call foo
The output should eq "foo" # this is expectation
End
It 'is failure because expectation is fail'
foo() { echo "foo"; }
When call foo
The output should eq "bar"
End
Example 'you can write multiple expectations'
foo() {
echo "foo"
value=123
return 1
}
When call foo
The output should eq "foo"
The value "$value" should eq 123
The status should eq 1
End
End