diff options
Diffstat (limited to 'src/modules/list/tests/show_commit.rs')
-rw-r--r-- | src/modules/list/tests/show_commit.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/list/tests/show_commit.rs b/src/modules/list/tests/show_commit.rs index 2caac69..e9ee1c1 100644 --- a/src/modules/list/tests/show_commit.rs +++ b/src/modules/list/tests/show_commit.rs @@ -7,7 +7,7 @@ fn when_hash_available() { &["pick aaa c1"], &[Event::from(StandardEvent::ShowCommit)], |mut test_context| { - let mut module = create_list(&Config::new(), test_context.take_todo_file()); + let mut module = create_list(&create_config(), test_context.take_todo_file()); assert_results!( test_context.handle_event(&mut module), Artifact::Event(Event::from(StandardEvent::ShowCommit)), @@ -20,7 +20,7 @@ fn when_hash_available() { #[test] fn when_no_selected_line() { testers::module(&[], &[Event::from(StandardEvent::ShowCommit)], |mut test_context| { - let mut module = create_list(&Config::new(), test_context.take_todo_file()); + let mut module = create_list(&create_config(), test_context.take_todo_file()); assert_results!( test_context.handle_event(&mut module), Artifact::Event(Event::from(StandardEvent::ShowCommit)) @@ -34,7 +34,7 @@ fn do_not_when_hash_not_available() { &["exec echo foo"], &[Event::from(StandardEvent::ShowCommit)], |mut test_context| { - let mut module = create_list(&Config::new(), test_context.take_todo_file()); + let mut module = create_list(&create_config(), test_context.take_todo_file()); assert_results!( test_context.handle_event(&mut module), Artifact::Event(Event::from(StandardEvent::ShowCommit)) |