Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require 'test_helper'
- class PosterControllerTest < ActionController::TestCase
- def test_putting_an_image
- @request.env['CONTENT_TYPE'] = "image/bmp"
- #@request.env['RAW_POST_BODY'] = "asdfasdf" # normally load data from a file
- put :put
- end
- end
- running this with Jruby 1.3RC2 gets me this:
- test_putting_an_image(PosterControllerTest):
- NoMethodError: undefined method `split' for #<Mime::Type:0x48ce88f6>
- test/functional/poster_controller_test.rb:7:in `test_putting_an_image'
- 1 tests, 0 assertions, 0 failures, 1 errors
- with regular ruby it passes
Add Comment
Please, Sign In to add comment