Rails.env.define_singleton_method(:trial?, -> { true })

rspecを使用の際は、Rails.env.stub(:development? => true) で良い rspec2 - mock Rails.env.development? using rspec - Stack Overflow