We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 215df0e commit 383035eCopy full SHA for 383035e
test/tmp_dir/revision_dir_test.rb
@@ -21,6 +21,12 @@ def test_that_create_does_not_return_a_value
21
assert_nil subject.create!
22
end
23
24
+ def test_that_decorating_fails_if_dir_not_created
25
+ file_strategy = file_strategy_stub(mkdir_success: false)
26
+ subject = subject(file_strategy:)
27
+ assert_raises(TmpDir::DirectoryError) { subject.decorate([]) }
28
+ end
29
+
30
private
31
32
def subject(sha: 'ab12cd34', file_strategy: file_strategy_stub)
0 commit comments