removed old spec file, added new, fixed rubocop and foodcritic errors