Skip to content

Commit 3541533

Browse files
committed
Fix specs.
1 parent 5b10a2e commit 3541533

File tree

6 files changed

+11
-9
lines changed

6 files changed

+11
-9
lines changed

crates/rb-cli/src/commands/help.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ mod tests {
3636
// assert!(result.is_ok());
3737

3838
// Instead just verify the function exists and compiles
39-
assert!(true);
4039
}
4140

4241
#[test]
@@ -47,6 +46,5 @@ mod tests {
4746
// assert!(result.is_ok());
4847

4948
// Verify function compiles
50-
assert!(true);
5149
}
5250
}

crates/rb-cli/src/commands/init.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ mod tests {
6363
let result = init_command(&temp_dir);
6464
assert!(result.is_err());
6565
let error = result.unwrap_err();
66-
assert!(error.contains("already exists"));
66+
assert!(error.contains("already graces this directory"));
6767

6868
// Cleanup
6969
fs::remove_dir_all(&temp_dir).ok();

crates/rb-cli/tests/dispatch_tests.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,10 @@ fn test_dispatch_creates_runtime_lazily() {
7979

8080
#[test]
8181
fn test_context_preserves_config() {
82-
let mut config = RbConfig::default();
83-
config.rubies_dir = Some(PathBuf::from("/custom/rubies"));
82+
let config = RbConfig {
83+
rubies_dir: Some(PathBuf::from("/custom/rubies")),
84+
..Default::default()
85+
};
8486

8587
let mut context = CommandContext {
8688
config: TrackedConfig::from_merged(&config, &RbConfig::default()),

crates/rb-cli/tests/runtime_helpers_tests.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,10 @@ fn test_command_context_initialization() {
6161

6262
#[test]
6363
fn test_command_context_stores_config() {
64-
let mut config = RbConfig::default();
65-
config.rubies_dir = Some(PathBuf::from("/custom/path"));
64+
let config = RbConfig {
65+
rubies_dir: Some(PathBuf::from("/custom/path")),
66+
..Default::default()
67+
};
6668

6769
let context = CommandContext {
6870
config: TrackedConfig::from_merged(&config, &RbConfig::default()),

crates/rb-core/src/project/template.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ mod tests {
9191
let result = create_default_project(&temp_dir);
9292
assert!(result.is_err());
9393
let error = result.unwrap_err();
94-
assert!(error.contains("already exists"));
94+
assert!(error.contains("already graces this directory"));
9595

9696
// Cleanup
9797
fs::remove_dir_all(&temp_dir).ok();

tests/commands/Init.Integration.Tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ Describe "Ruby Butler - Init Command" {
155155
try {
156156
$Output = & $Script:RbPath init 2>&1
157157
$LASTEXITCODE | Should -Not -Be 0
158-
($Output -join " ") | Should -Match "delete the existing one first"
158+
($Output -join " ") | Should -Match "remove the existing file first"
159159
} finally {
160160
Pop-Location
161161
}

0 commit comments

Comments
 (0)