{"action":"created","issue":{"url":"https://api.github.com/repos/seattlerb/minitest-focus/issues/7","labels_url":"https://api.github.com/repos/seattlerb/minitest-focus/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/seattlerb/minitest-focus/issues/7/comments","events_url":"https://api.github.com/repos/seattlerb/minitest-focus/issues/7/events","html_url":"https://github.com/seattlerb/minitest-focus/issues/7","id":77515797,"number":7,"title":"Breaks when creating rake test task instead of using the default rails test task","user":{"login":"allavena","id":6095074,"avatar_url":"https://avatars.githubusercontent.com/u/6095074?v=3","gravatar_id":"","url":"https://api.github.com/users/allavena","html_url":"https://github.com/allavena","followers_url":"https://api.github.com/users/allavena/followers","following_url":"https://api.github.com/users/allavena/following{/other_user}","gists_url":"https://api.github.com/users/allavena/gists{/gist_id}","starred_url":"https://api.github.com/users/allavena/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/allavena/subscriptions","organizations_url":"https://api.github.com/users/allavena/orgs","repos_url":"https://api.github.com/users/allavena/repos","events_url":"https://api.github.com/users/allavena/events{/privacy}","received_events_url":"https://api.github.com/users/allavena/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"zenspider","id":9832,"avatar_url":"https://avatars.githubusercontent.com/u/9832?v=3","gravatar_id":"","url":"https://api.github.com/users/zenspider","html_url":"https://github.com/zenspider","followers_url":"https://api.github.com/users/zenspider/followers","following_url":"https://api.github.com/users/zenspider/following{/other_user}","gists_url":"https://api.github.com/users/zenspider/gists{/gist_id}","starred_url":"https://api.github.com/users/zenspider/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zenspider/subscriptions","organizations_url":"https://api.github.com/users/zenspider/orgs","repos_url":"https://api.github.com/users/zenspider/repos","events_url":"https://api.github.com/users/zenspider/events{/privacy}","received_events_url":"https://api.github.com/users/zenspider/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2015-05-18T06:00:53Z","updated_at":"2015-05-21T00:22:14Z","closed_at":null,"body":"Hello, \r\n\r\nI really enjoy minitest-focus, and cannot live without it, except it does not want to run for me: if you create the rake test task by hand, as opposed to using the default one provided by rails, focus breaks. A task such as the one below will work fine without focus, however, as soon as you add a 'focus' in front of some test, you get\r\n a /home/andre/.rvm/gems/ruby-2.1.2/gems/rake-10.4.2/lib/rake/rake_test_loader.rb:15:in `require': cannot load such file -- /^(My\\ tersts\\#test_0001_should\\ do\\ nothing\\ more)$ (LoadError)\r\n\r\nNote that using the Rails.application.load_tasks, then focus actually works and only one test is run. Comment out 'focus' and the test suite runs fine.  In case it matters, I'm using the 'spec' notation: \r\ndescribe 'My tersts' do ....\r\n\r\n```ruby\r\nnamespace :test do\r\n  desc('Run my tests ')\r\n  Rake::TestTask.new('test') do |t|\r\n    t.pattern = 'test/**/*_test.rb'\r\n    t.libs << 'test'\r\n    t.verbose = true\r\n  end\r\nend\r\n```\r\n```\r\nhome/andre/.rvm/rubies/ruby-2.1.2/bin/ruby -I\"lib:test\" -I\"/home/andre/.rvm/gems/ruby-2.1.2/gems/rake-10.4.2/lib\" \"/home/andre/.rvm/gems/ruby-2.1.2/gems/rake-10.4.2/lib/rake/rake_test_loader.rb\" \"test/**/*_test.rb\" \r\n/home/andre/.rvm/gems/ruby-2.1.2/gems/rake-10.4.2/lib/rake/rake_test_loader.rb:15:in `require': cannot load such file -- /^(My\\ tersts\\#test_0001_should\\ do\\ nothing\\ more)$ (LoadError)\r\n\tfrom /home/andre/.rvm/gems/ruby-2.1.2/gems/rake-10.4.2/lib/rake/rake_test_loader.rb:15:in `block in <main>'\r\n\tfrom /home/andre/.rvm/gems/ruby-2.1.2/gems/rake-10.4.2/lib/rake/rake_test_loader.rb:4:in `select'\r\n\tfrom /home/andre/.rvm/gems/ruby-2.1.2/gems/rake-10.4.2/lib/rake/rake_test_loader.rb:4:in `<main>'\r\nrake aborted!\r\nCommand failed with status (1): [ruby -I\"lib:test\" -I\"/home/andre/.rvm/gems/ruby-2.1.2/gems/rake-10.4.2/lib\" \"/home/andre/.rvm/gems/ruby-2.1.2/gems/rake-10.4.2/lib/rake/rake_test_loader.rb\" \"test/**/*_test.rb\" ]\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/seattlerb/minitest-focus/issues/comments/104078051","html_url":"https://github.com/seattlerb/minitest-focus/issues/7#issuecomment-104078051","issue_url":"https://api.github.com/repos/seattlerb/minitest-focus/issues/7","id":104078051,"user":{"login":"allavena","id":6095074,"avatar_url":"https://avatars.githubusercontent.com/u/6095074?v=3","gravatar_id":"","url":"https://api.github.com/users/allavena","html_url":"https://github.com/allavena","followers_url":"https://api.github.com/users/allavena/followers","following_url":"https://api.github.com/users/allavena/following{/other_user}","gists_url":"https://api.github.com/users/allavena/gists{/gist_id}","starred_url":"https://api.github.com/users/allavena/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/allavena/subscriptions","organizations_url":"https://api.github.com/users/allavena/orgs","repos_url":"https://api.github.com/users/allavena/repos","events_url":"https://api.github.com/users/allavena/events{/privacy}","received_events_url":"https://api.github.com/users/allavena/received_events","type":"User","site_admin":false},"created_at":"2015-05-21T00:22:14Z","updated_at":"2015-05-21T00:22:14Z","body":"Any chance you can provide in the comments / doc a rake file that works? That would be very appreciated, I haven't managed to reverse engineer the one from rails. "}}