We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0e1bc1a commit 7529a82Copy full SHA for 7529a82
1 file changed
spec/downloader/base_spec.rb
@@ -9,6 +9,18 @@
9
end
10
11
12
+ describe '#assert_file_not_processed!' do
13
+ it 'proceeds if processed file is absent' do
14
+ expect { subject.assert_file_not_processed! '/path/to/non-existent-file' }.not_to raise_error
15
+ end
16
+
17
+ it 'raises if processed file exists' do
18
+ Tempfile.open do |f|
19
+ expect { subject.assert_file_not_processed! f.path }.to raise_error RuntimeError
20
21
22
23
24
describe '#assert_not_exists!' do
25
it 'proceeds if file is absent' do
26
expect { subject.assert_not_exists! '/path/to/non-existent-file' }.not_to raise_error
0 commit comments