Forum: JRuby TestUnit encoding error

Posted by igor ishe (ishe_ua)
on 2012-12-07 23:32
I use JRuby 1.7.1 and Rails 3.2.9 and I have unit test:

# -*- coding: utf-8 -*-
require 'test_helper'

class UserTest < ActiveSupport::TestCase

  test "машинист: пользователь создается, он валидный и у него сразу же
есть профиль" do

    user = User.make!
    assert user and User.count == 1 and user.valid? and user.profile
  end

...

After "rake test" I have errors:

 1) Error:
test_из_тестового_фида_вытаскиваются_все_записи(FeedTest):
NoMethodError: undefined method
`test_??_?????????_????_?????????????_???_??????' for
#<FeedTest:0xe42af>
    org/jruby/RubyBasicObject.java:1659:in `__send__'
    /home/ishe/.rvm/gems/jruby-1.7.1/gems/mocha-0.13.1/lib/mocha/integration/mini_test/version_230_to_2101.rb:36:in
`run'

...

What I should do? Thank you in advance.
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.