refactor controller_spec
refactor config.rb