Refactoring config_spec.rb