File tree Expand file tree Collapse file tree 2 files changed +0
-50
lines changed Expand file tree Collapse file tree 2 files changed +0
-50
lines changed Original file line number Diff line number Diff line change @@ -87,30 +87,6 @@ Caused by:
87
87
. run ( ) ;
88
88
}
89
89
90
- #[ cargo_test]
91
- fn bad4 ( ) {
92
- let p = project ( )
93
- . file (
94
- ".cargo/config" ,
95
- r#"
96
- [cargo-new]
97
- name = false
98
- "# ,
99
- )
100
- . build ( ) ;
101
- p. cargo ( "new -v foo" )
102
- . with_status ( 101 )
103
- . with_stderr (
104
- "\
105
- [ERROR] Failed to create package `foo` at `[..]`
106
-
107
- Caused by:
108
- error in [..]config: `cargo-new.name` expected a string, but found a boolean
109
- " ,
110
- )
111
- . run ( ) ;
112
- }
113
-
114
90
#[ cargo_test]
115
91
fn bad6 ( ) {
116
92
let p = project ( )
Original file line number Diff line number Diff line change @@ -245,32 +245,6 @@ fn displays_subcommand_on_error() {
245
245
. run ( ) ;
246
246
}
247
247
248
- #[ cargo_test]
249
- fn override_cargo_home ( ) {
250
- let root = paths:: root ( ) ;
251
- let my_home = root. join ( "my_home" ) ;
252
- fs:: create_dir ( & my_home) . unwrap ( ) ;
253
- fs:: write (
254
- & my_home. join ( "config" ) ,
255
- r#"
256
- [cargo-new]
257
- name = "foo"
258
- email = "bar"
259
- git = false
260
- "# ,
261
- )
262
- . unwrap ( ) ;
263
-
264
- cargo_process ( "new foo" )
265
- . env ( "USER" , "foo" )
266
- . env ( "CARGO_HOME" , & my_home)
267
- . run ( ) ;
268
-
269
- let toml = paths:: root ( ) . join ( "foo/Cargo.toml" ) ;
270
- let contents = fs:: read_to_string ( & toml) . unwrap ( ) ;
271
- assert ! ( contents. contains( r#"authors = ["foo <bar>"]"# ) ) ;
272
- }
273
-
274
248
#[ cargo_test]
275
249
fn cargo_subcommand_env ( ) {
276
250
let src = format ! (
You can’t perform that action at this time.
0 commit comments