Add spec for checking warnings.

Credits go to:
https://github.com/psyho/bogus/blob/459c02ce069ee8e246f2e7869964e29d0b061236/spec/bogus/clean_ruby_spec.rb