fixed failing spec running with ruby-trunk

```define_method``` was changed to private in Ruby 2.1.0. this fix is simply approach, because carrierwave only uses define_method in spec files.