Skip to content

Commit b5a95a7

Browse files
committed
Update spec texts.
1 parent 77cddf7 commit b5a95a7

File tree

3 files changed

+11
-9
lines changed

3 files changed

+11
-9
lines changed

spec/commands/environment_spec.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ Describe "Ruby Butler Environment System"
6969
It "handles non-existent rubies directory gracefully"
7070
When run rb -R "/non/existent/path" environment
7171
The status should not equal 0
72-
The stderr should include "No such file or directory"
72+
The stderr should include "appears to be absent from your system"
7373
End
7474

7575
It "combines rubies directory with specific Ruby version"

spec/commands/exec/ruby_spec.sh

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ Describe "Ruby Butler Exec Command - Ruby Environment"
1010
It "gracefully presents usage guidance when no program specified"
1111
When run rb -R $RUBIES_DIR exec
1212
The status should not equal 0
13-
The stderr should include "required arguments were not provided"
14-
The stderr should include "<ARGS>..."
13+
The stderr should include "Request Incomplete: No program specified for execution"
14+
The stderr should include "Proper usage: rb exec <program>"
1515
End
1616

1717
It "responds elegantly to 'x' alias"
1818
When run rb -R $RUBIES_DIR x
1919
The status should not equal 0
20-
The stderr should include "required arguments were not provided"
21-
The stderr should include "<ARGS>..."
20+
The stderr should include "Request Incomplete: No program specified for execution"
21+
The stderr should include "Proper usage: rb exec <program>"
2222
End
2323

2424
It "preserves program exit codes with dignity"
@@ -29,8 +29,8 @@ Describe "Ruby Butler Exec Command - Ruby Environment"
2929
It "gracefully handles non-existent programs"
3030
When run rb -R $RUBIES_DIR exec nonexistent-program
3131
The status should not equal 0
32-
The stderr should include "Execution Failed"
33-
The stderr should include "No such file or directory"
32+
The stderr should include "appears to be"
33+
The stderr should include "entirely absent from your distinguished Ruby environment"
3434
End
3535
End
3636

@@ -89,7 +89,8 @@ Describe "Ruby Butler Exec Command - Ruby Environment"
8989
It "handles non-existent rubies directory gracefully"
9090
When run rb -R "/non/existent/path" exec ruby -v
9191
The status should not equal 0
92-
The stderr should include "No such file or directory"
92+
The stderr should include "designated Ruby estate directory"
93+
The stderr should include "appears to be absent from your system"
9394
End
9495

9596
It "combines rubies directory with specific Ruby version"

spec/commands/runtime_spec.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ Describe "Ruby Butler Runtime System"
2323
It "gracefully handles non-existing paths"
2424
When run rb -R "/non/existing" runtime
2525
The status should not equal 0
26-
The stderr should include "No such file or directory"
26+
The stderr should include "designated Ruby estate directory"
27+
The stderr should include "appears to be absent from your system"
2728
End
2829

2930
It "presents latest Ruby with appropriate precedence"

0 commit comments

Comments
 (0)