Use of stub is deprecated by rspec. fixed by using double (as the deprecation warning stated)
not_to raise_error + Exception is deprecated
Merge pull request #171 from dg-vrnetze/deprecation_warnings

Deprecation warnings