ruby - Rubocop RSpec Describes are failing -
actually i'm trying fix issues:
do not use multiple top level describes - try nest them.
the first argument describe should class or module being tested.
i have 8 tests in format:
describe 'publicancreatorscreate.init_docu_work' 'accesses directory , creates there initial documentation' publicancreatorscreate.init_docu_work(title, type, language, brand, db5) dir.exist?(title) :should == true end end
but false? first argument contains tested class , method.
normally such describe written as:
describe publicancreatorscreate, '.init_docu_work'
or
describe publicancreatorscreate describe '.init_docu_work'
it sounds rubocop-rspec expecting second form.
Comments
Post a Comment