ran rubocop linter
fixed rubocop warnings in specs