{"action":"created","issue":{"url":"https://api.github.com/repos/rspec/rspec-rails/issues/758","labels_url":"https://api.github.com/repos/rspec/rspec-rails/issues/758/labels{/name}","comments_url":"https://api.github.com/repos/rspec/rspec-rails/issues/758/comments","events_url":"https://api.github.com/repos/rspec/rspec-rails/issues/758/events","html_url":"https://github.com/rspec/rspec-rails/issues/758","id":15036858,"number":758,"title":"RSpec with Rails 4.1.0.beta, warning: you should require 'minitest/autorun' instead","user":{"login":"gwshaw","id":1121336,"avatar_url":"https://avatars.githubusercontent.com/u/1121336?v=3","gravatar_id":"","url":"https://api.github.com/users/gwshaw","html_url":"https://github.com/gwshaw","followers_url":"https://api.github.com/users/gwshaw/followers","following_url":"https://api.github.com/users/gwshaw/following{/other_user}","gists_url":"https://api.github.com/users/gwshaw/gists{/gist_id}","starred_url":"https://api.github.com/users/gwshaw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gwshaw/subscriptions","organizations_url":"https://api.github.com/users/gwshaw/orgs","repos_url":"https://api.github.com/users/gwshaw/repos","events_url":"https://api.github.com/users/gwshaw/events{/privacy}","received_events_url":"https://api.github.com/users/gwshaw/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rspec/rspec-rails/labels/rails4.1","name":"rails4.1","color":"006b75"},{"url":"https://api.github.com/repos/rspec/rspec-rails/labels/small","name":"small","color":"0052cc"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2013-06-02T06:16:30Z","updated_at":"2015-05-27T18:35:16Z","closed_at":"2013-07-28T18:28:31Z","body":"In trying to run RSpec 2.14.0.rc1 on Rails 4.1.0.beta, I immediately get a warning: \r\n\r\n    you should require 'minitest/autorun' instead\r\n\r\n that comes up in the backtrace assigned to the line\r\n\r\n    require 'rspec/rails'\r\n\r\n in `spec_helper.rb` If I add this before it\r\n\r\n    require 'minitest/autorun'\r\n\r\n the warning goes away. Alternatively, the problem goes away without changing the `spec_helper.rb` file if I add\r\n\r\n    gem 'minitest'\r\n\r\n to the gemfile\r\n\r\nIt will do this with a single spec file that only contains\r\n\r\n    require 'spec_helper'\r\n"},"comment":{"url":"https://api.github.com/repos/rspec/rspec-rails/issues/comments/106026601","html_url":"https://github.com/rspec/rspec-rails/issues/758#issuecomment-106026601","issue_url":"https://api.github.com/repos/rspec/rspec-rails/issues/758","id":106026601,"user":{"login":"rudyrigot","id":552279,"avatar_url":"https://avatars.githubusercontent.com/u/552279?v=3","gravatar_id":"","url":"https://api.github.com/users/rudyrigot","html_url":"https://github.com/rudyrigot","followers_url":"https://api.github.com/users/rudyrigot/followers","following_url":"https://api.github.com/users/rudyrigot/following{/other_user}","gists_url":"https://api.github.com/users/rudyrigot/gists{/gist_id}","starred_url":"https://api.github.com/users/rudyrigot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rudyrigot/subscriptions","organizations_url":"https://api.github.com/users/rudyrigot/orgs","repos_url":"https://api.github.com/users/rudyrigot/repos","events_url":"https://api.github.com/users/rudyrigot/events{/privacy}","received_events_url":"https://api.github.com/users/rudyrigot/received_events","type":"User","site_admin":false},"created_at":"2015-05-27T18:35:16Z","updated_at":"2015-05-27T18:35:16Z","body":"Note for people ending up on this thread as I did: I required 'minitest/autorun' as advised, which fixed the warning, but generated new errors, as it was now overriding Object to add a `stub` method, and I was already using the `stub` method that was already being imported by rspec.\r\n\r\nAfter some fiddling, it turns out that I can require 'minitest/spec' instead, which will fix the warning, without messing with rspec's `Object#stub`."}}