Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

modify default branch to main #89

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ pub struct EurekaOptions {
pub view: bool,
}

const BRANCH_NAME_DEFAULT: &str = "master";
const BRANCH_NAME_DEFAULT: &str = "main";

impl<CM, W, R, G, PO> Eureka<CM, W, R, G, PO>
where
Expand Down
14 changes: 7 additions & 7 deletions tests/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ mod tests {
if counter == 0 {
assert_eq!(value, "Absolute path to your idea repo");
} else {
assert_eq!(value, "Name of branch (default: master)");
assert_eq!(value, "Name of branch (default: main)");
}

Ok(())
Expand Down Expand Up @@ -420,7 +420,7 @@ mod tests {
}

#[test]
fn test_setup_defaults_to_master_branch() {
fn test_setup_defaults_to_main_branch() {
static INPUT_HEADER_COUNTER: AtomicUsize = AtomicUsize::new(0);
static READ_INPUT_COUNTER: AtomicUsize = AtomicUsize::new(0);

Expand All @@ -441,7 +441,7 @@ mod tests {

fn config_write(&self, file: ConfigType, value: String) -> io::Result<()> {
match file {
ConfigType::Branch => assert_eq!(value, "master"),
ConfigType::Branch => assert_eq!(value, "main"),
ConfigType::Repo => assert_eq!(value, "specific-repo-path"),
}
Ok(())
Expand Down Expand Up @@ -476,7 +476,7 @@ mod tests {
if counter == 0 {
assert_eq!(value, "Absolute path to your idea repo");
} else {
assert_eq!(value, "Name of branch (default: master)");
assert_eq!(value, "Name of branch (default: main)");
}

Ok(())
Expand All @@ -497,7 +497,7 @@ mod tests {
Ok(String::from("specific-repo-path"))
} else {
// Branch
// Leave empty to default to "master"
// Leave empty to default to "main"
Ok(String::new())
}
}
Expand Down Expand Up @@ -578,7 +578,7 @@ mod tests {
if counter <= 5 {
assert_eq!(value, "Absolute path to your idea repo");
} else {
assert_eq!(value, "Name of branch (default: master)");
assert_eq!(value, "Name of branch (default: main)");
}
Ok(())
}
Expand Down Expand Up @@ -682,7 +682,7 @@ mod tests {
if counter <= 5 {
assert_eq!(value, ">> Idea summary");
} else {
assert_eq!(value, "Name of branch (default: master)");
assert_eq!(value, "Name of branch (default: main)");
}
Ok(())
}
Expand Down