Skip to content
This repository was archived by the owner on Dec 29, 2021. It is now read-only.
This repository was archived by the owner on Dec 29, 2021. It is now read-only.

current_dir() not working with main_binary() #116

Closed
@pizzamig

Description

@pizzamig

I've found what I believe it's a bug (briefly spoken with @killercup ). This is the code I'd like to use and that panics at unwrap():

    assert_cli::Assert::main_binary()
        .with_args(&["-l", "left", "-r", "right"])
        .current_dir(std::path::Path::new("/tmp"))
        .succeeds()
        .unwrap();

As workaround, I'm using this (that works):

    assert_cli::Assert::main_binary()
        .with_args(&["-l", "/tmp/left", "-r", "/tmp/right"])
        .succeeds()
        .unwrap();
  • assert_cli version: 0.6.2
  • Rust version: 1.28.0 and 1.27.0
  • OS and version: FreeBSD CURRENT and Debain 8

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions