not_to raise_error + Exception is deprecated
Use of stub is deprecated by rspec. fixed by using double (as the deprecation warning stated)
Needed to build reliable check_presence tests
Clean current directory BEFORE each test: if a test failed one could check the directory afterwards
Git complained about missing \n
Added matchers for file and regex
Implemented file matchers
Fix logicall error in spec
Load matchers
Added checks for existence of file via plain match
Use check_file_presence for regex as well
One method for all
Change the steps for matching regexes
The use of /regex/ is not ideal -> Paths can contain "/". Therefore
I chose %r<regex> as matcher
Use new clean_current_dir method to clean tmp path
Missed to include the matchers and expectations from rspec