Rails.env.test?みたいなやつを普通の文字列でもヤりたい ref: http://qiita.com/ppworks/items/8a200001aa6f0c6fc068