refactor config_spec.rb