aboutsummaryrefslogtreecommitdiffstats
path: root/test/fail.bats
blob: 1a77cede7246b869c483e1da6096f070450d6f98 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/env bats

load test_helper

@test "invoke with target without do-file" {
	run redo this-does-not-exist
	[ $status -ne 0 ]
}

@test "invoke with failing do-file" {
	run redo fail
	[ $status -ne 0 ] && [ ! -e fail_result ]
}