Refactor spec/trema/controller_spec.rb