{"action":"opened","issue":{"url":"https://api.github.com/repos/svenfuchs/test_declarative/issues/5","labels_url":"https://api.github.com/repos/svenfuchs/test_declarative/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/svenfuchs/test_declarative/issues/5/comments","events_url":"https://api.github.com/repos/svenfuchs/test_declarative/issues/5/events","html_url":"https://github.com/svenfuchs/test_declarative/issues/5","id":72759105,"number":5,"title":"Tests fail with ruby 2.2","user":{"login":"graaff","id":11150,"avatar_url":"https://avatars.githubusercontent.com/u/11150?v=3","gravatar_id":"","url":"https://api.github.com/users/graaff","html_url":"https://github.com/graaff","followers_url":"https://api.github.com/users/graaff/followers","following_url":"https://api.github.com/users/graaff/following{/other_user}","gists_url":"https://api.github.com/users/graaff/gists{/gist_id}","starred_url":"https://api.github.com/users/graaff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/graaff/subscriptions","organizations_url":"https://api.github.com/users/graaff/orgs","repos_url":"https://api.github.com/users/graaff/repos","events_url":"https://api.github.com/users/graaff/events{/privacy}","received_events_url":"https://api.github.com/users/graaff/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-03T06:36:04Z","updated_at":"2015-05-03T06:36:04Z","closed_at":null,"body":"With ruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-linux] I'm seeing the following test failure:\r\n\r\n```\r\nError: test_adds_a_test_method(TestDeclarativeTest)\r\n: NameError: uninitialized constant TestDeclarativeTest::MiniTest\r\ntest/test_declarative_test.rb:14:in `test_adds_a_test_method'\r\n     11:   def test_adds_a_test_method\r\n     12:     called = false\r\n     13:     assert_nothing_raised { Test::Unit::TestCase.test('some test') { called = true } }\r\n  => 14:     Test::Unit::TestCase.new(:'test_some_test').run((RUBY_VERSION < '1.9.1' ? Test::Unit::TestResult : MiniTest::Unit).new) {}\r\n     15:     assert called\r\n     16:   end\r\n     17: end\r\n```\r\nI'm running \"ruby test/test_declarative_test.rb\" to get this. I've played around a little bit with this, but adding something like \"require 'minitest/unit'\" only leads to errors related to add_error later on. These seem to be confusing TestUnit and MiniTest test units. It's not clear to me if the problem is with the test or with the code itself."}}