{"action":"created","comment":{"url":"https://api.github.com/repos/rspec/rspec-rails/pulls/comments/22881611","id":22881611,"diff_hunk":"@@ -15,11 +15,31 @@ module Rails\n       # loaded.\n       Assertions = Minitest::Assertions\n     elsif RUBY_VERSION >= '2.2.0'\n-      # Minitest has been removed from ruby core. However, we must be on an\n-      # old Rails version and must load the Minitest 4.x gem\n-      gem 'minitest' if defined?(Kernel.gem)\n-      require 'minitest/unit'\n-      Assertions = MiniTest::Assertions\n+      # Minitest / TestUnit has been removed from ruby core. However, we are\n+      # on an old Rails version and must load the appropriate gem\n+      if ::Rails::VERSION::STRING >= '4.0.0'\n+        # ActiveSupport 4.0.x has the minitest '~> 4.2' gem as a dependency\n+        gem 'minitest' if defined?(Kernel.gem)\n+        require 'minitest/unit'\n+        Assertions = MiniTest::Assertions\n+      elsif ::Rails::VERSION::STRING >= '3.2.21'","path":"lib/rspec/rails/adapters.rb","position":16,"original_position":16,"commit_id":"b15ee39b2b5d617986ac4bca8d32a77a908c496c","original_commit_id":"b15ee39b2b5d617986ac4bca8d32a77a908c496c","user":{"login":"myronmarston","id":49391,"avatar_url":"https://avatars.githubusercontent.com/u/49391?v=3","gravatar_id":"","url":"https://api.github.com/users/myronmarston","html_url":"https://github.com/myronmarston","followers_url":"https://api.github.com/users/myronmarston/followers","following_url":"https://api.github.com/users/myronmarston/following{/other_user}","gists_url":"https://api.github.com/users/myronmarston/gists{/gist_id}","starred_url":"https://api.github.com/users/myronmarston/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/myronmarston/subscriptions","organizations_url":"https://api.github.com/users/myronmarston/orgs","repos_url":"https://api.github.com/users/myronmarston/repos","events_url":"https://api.github.com/users/myronmarston/events{/privacy}","received_events_url":"https://api.github.com/users/myronmarston/received_events","type":"User","site_admin":false},"body":"3-part versions compare differently than their string form does, particular when you have parts with multiple digits.  I think it's OK here because the 2-digit part is the last part...but thought I'd bring it up as something to be aware of and careful of.","created_at":"2015-01-13T18:15:02Z","updated_at":"2015-01-13T18:15:02Z","html_url":"https://github.com/rspec/rspec-rails/pull/1277#discussion_r22881611","pull_request_url":"https://api.github.com/repos/rspec/rspec-rails/pulls/1277","_links":{"self":{"href":"https://api.github.com/repos/rspec/rspec-rails/pulls/comments/22881611"},"html":{"href":"https://github.com/rspec/rspec-rails/pull/1277#discussion_r22881611"},"pull_request":{"href":"https://api.github.com/repos/rspec/rspec-rails/pulls/1277"}}},"pull_request":{"url":"https://api.github.com/repos/rspec/rspec-rails/pulls/1277","id":27291125,"html_url":"https://github.com/rspec/rspec-rails/pull/1277","diff_url":"https://github.com/rspec/rspec-rails/pull/1277.diff","patch_url":"https://github.com/rspec/rspec-rails/pull/1277.patch","issue_url":"https://api.github.com/repos/rspec/rspec-rails/issues/1277","number":1277,"state":"open","locked":false,"title":"Prepare to support Ruby 2.2 on Rails 3.2.22+","user":{"login":"cupakromer","id":1524496,"avatar_url":"https://avatars.githubusercontent.com/u/1524496?v=3","gravatar_id":"","url":"https://api.github.com/users/cupakromer","html_url":"https://github.com/cupakromer","followers_url":"https://api.github.com/users/cupakromer/followers","following_url":"https://api.github.com/users/cupakromer/following{/other_user}","gists_url":"https://api.github.com/users/cupakromer/gists{/gist_id}","starred_url":"https://api.github.com/users/cupakromer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cupakromer/subscriptions","organizations_url":"https://api.github.com/users/cupakromer/orgs","repos_url":"https://api.github.com/users/cupakromer/repos","events_url":"https://api.github.com/users/cupakromer/events{/privacy}","received_events_url":"https://api.github.com/users/cupakromer/received_events","type":"User","site_admin":false},"body":"This is in preparation for the next patch release. Similar steps are\r\nbeing taken by Rails core. See:\r\n\r\nhttps://github.com/rails/rails/commit/8f92edb2b4b6beb5c778283be7cbcef6bf7e596c","created_at":"2015-01-13T18:02:14Z","updated_at":"2015-01-13T18:15:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b479f52d16da7a3bf38f1af30440543834164c29","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/rspec/rspec-rails/pulls/1277/commits","review_comments_url":"https://api.github.com/repos/rspec/rspec-rails/pulls/1277/comments","review_comment_url":"https://api.github.com/repos/rspec/rspec-rails/pulls/comments/{number}","comments_url":"https://api.github.com/repos/rspec/rspec-rails/issues/1277/comments","statuses_url":"https://api.github.com/repos/rspec/rspec-rails/statuses/b15ee39b2b5d617986ac4bca8d32a77a908c496c","head":{"label":"rspec:support-ruby-2-2-on-rails-3-2","ref":"support-ruby-2-2-on-rails-3-2","sha":"b15ee39b2b5d617986ac4bca8d32a77a908c496c","user":{"login":"rspec","id":22388,"avatar_url":"https://avatars.githubusercontent.com/u/22388?v=3","gravatar_id":"","url":"https://api.github.com/users/rspec","html_url":"https://github.com/rspec","followers_url":"https://api.github.com/users/rspec/followers","following_url":"https://api.github.com/users/rspec/following{/other_user}","gists_url":"https://api.github.com/users/rspec/gists{/gist_id}","starred_url":"https://api.github.com/users/rspec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rspec/subscriptions","organizations_url":"https://api.github.com/users/rspec/orgs","repos_url":"https://api.github.com/users/rspec/repos","events_url":"https://api.github.com/users/rspec/events{/privacy}","received_events_url":"https://api.github.com/users/rspec/received_events","type":"Organization","site_admin":false},"repo":{"id":447184,"name":"rspec-rails","full_name":"rspec/rspec-rails","owner":{"login":"rspec","id":22388,"avatar_url":"https://avatars.githubusercontent.com/u/22388?v=3","gravatar_id":"","url":"https://api.github.com/users/rspec","html_url":"https://github.com/rspec","followers_url":"https://api.github.com/users/rspec/followers","following_url":"https://api.github.com/users/rspec/following{/other_user}","gists_url":"https://api.github.com/users/rspec/gists{/gist_id}","starred_url":"https://api.github.com/users/rspec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rspec/subscriptions","organizations_url":"https://api.github.com/users/rspec/orgs","repos_url":"https://api.github.com/users/rspec/repos","events_url":"https://api.github.com/users/rspec/events{/privacy}","received_events_url":"https://api.github.com/users/rspec/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rspec/rspec-rails","description":"RSpec for Rails-3+","fork":false,"url":"https://api.github.com/repos/rspec/rspec-rails","forks_url":"https://api.github.com/repos/rspec/rspec-rails/forks","keys_url":"https://api.github.com/repos/rspec/rspec-rails/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rspec/rspec-rails/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rspec/rspec-rails/teams","hooks_url":"https://api.github.com/repos/rspec/rspec-rails/hooks","issue_events_url":"https://api.github.com/repos/rspec/rspec-rails/issues/events{/number}","events_url":"https://api.github.com/repos/rspec/rspec-rails/events","assignees_url":"https://api.github.com/repos/rspec/rspec-rails/assignees{/user}","branches_url":"https://api.github.com/repos/rspec/rspec-rails/branches{/branch}","tags_url":"https://api.github.com/repos/rspec/rspec-rails/tags","blobs_url":"https://api.github.com/repos/rspec/rspec-rails/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rspec/rspec-rails/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rspec/rspec-rails/git/refs{/sha}","trees_url":"https://api.github.com/repos/rspec/rspec-rails/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rspec/rspec-rails/statuses/{sha}","languages_url":"https://api.github.com/repos/rspec/rspec-rails/languages","stargazers_url":"https://api.github.com/repos/rspec/rspec-rails/stargazers","contributors_url":"https://api.github.com/repos/rspec/rspec-rails/contributors","subscribers_url":"https://api.github.com/repos/rspec/rspec-rails/subscribers","subscription_url":"https://api.github.com/repos/rspec/rspec-rails/subscription","commits_url":"https://api.github.com/repos/rspec/rspec-rails/commits{/sha}","git_commits_url":"https://api.github.com/repos/rspec/rspec-rails/git/commits{/sha}","comments_url":"https://api.github.com/repos/rspec/rspec-rails/comments{/number}","issue_comment_url":"https://api.github.com/repos/rspec/rspec-rails/issues/comments/{number}","contents_url":"https://api.github.com/repos/rspec/rspec-rails/contents/{+path}","compare_url":"https://api.github.com/repos/rspec/rspec-rails/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rspec/rspec-rails/merges","archive_url":"https://api.github.com/repos/rspec/rspec-rails/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rspec/rspec-rails/downloads","issues_url":"https://api.github.com/repos/rspec/rspec-rails/issues{/number}","pulls_url":"https://api.github.com/repos/rspec/rspec-rails/pulls{/number}","milestones_url":"https://api.github.com/repos/rspec/rspec-rails/milestones{/number}","notifications_url":"https://api.github.com/repos/rspec/rspec-rails/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rspec/rspec-rails/labels{/name}","releases_url":"https://api.github.com/repos/rspec/rspec-rails/releases{/id}","created_at":"2009-12-23T16:40:53Z","updated_at":"2015-01-12T20:27:54Z","pushed_at":"2015-01-13T18:01:13Z","git_url":"git://github.com/rspec/rspec-rails.git","ssh_url":"git@github.com:rspec/rspec-rails.git","clone_url":"https://github.com/rspec/rspec-rails.git","svn_url":"https://github.com/rspec/rspec-rails","homepage":"http://relishapp.com/rspec/rspec-rails","size":6769,"stargazers_count":2208,"watchers_count":2208,"language":"Ruby","has_issues":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":439,"mirror_url":null,"open_issues_count":26,"forks":439,"open_issues":26,"watchers":2208,"default_branch":"master"}},"base":{"label":"rspec:master","ref":"master","sha":"f2af9a21998f8a10a1a206f125ed129b3c0a5d82","user":{"login":"rspec","id":22388,"avatar_url":"https://avatars.githubusercontent.com/u/22388?v=3","gravatar_id":"","url":"https://api.github.com/users/rspec","html_url":"https://github.com/rspec","followers_url":"https://api.github.com/users/rspec/followers","following_url":"https://api.github.com/users/rspec/following{/other_user}","gists_url":"https://api.github.com/users/rspec/gists{/gist_id}","starred_url":"https://api.github.com/users/rspec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rspec/subscriptions","organizations_url":"https://api.github.com/users/rspec/orgs","repos_url":"https://api.github.com/users/rspec/repos","events_url":"https://api.github.com/users/rspec/events{/privacy}","received_events_url":"https://api.github.com/users/rspec/received_events","type":"Organization","site_admin":false},"repo":{"id":447184,"name":"rspec-rails","full_name":"rspec/rspec-rails","owner":{"login":"rspec","id":22388,"avatar_url":"https://avatars.githubusercontent.com/u/22388?v=3","gravatar_id":"","url":"https://api.github.com/users/rspec","html_url":"https://github.com/rspec","followers_url":"https://api.github.com/users/rspec/followers","following_url":"https://api.github.com/users/rspec/following{/other_user}","gists_url":"https://api.github.com/users/rspec/gists{/gist_id}","starred_url":"https://api.github.com/users/rspec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rspec/subscriptions","organizations_url":"https://api.github.com/users/rspec/orgs","repos_url":"https://api.github.com/users/rspec/repos","events_url":"https://api.github.com/users/rspec/events{/privacy}","received_events_url":"https://api.github.com/users/rspec/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rspec/rspec-rails","description":"RSpec for Rails-3+","fork":false,"url":"https://api.github.com/repos/rspec/rspec-rails","forks_url":"https://api.github.com/repos/rspec/rspec-rails/forks","keys_url":"https://api.github.com/repos/rspec/rspec-rails/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rspec/rspec-rails/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rspec/rspec-rails/teams","hooks_url":"https://api.github.com/repos/rspec/rspec-rails/hooks","issue_events_url":"https://api.github.com/repos/rspec/rspec-rails/issues/events{/number}","events_url":"https://api.github.com/repos/rspec/rspec-rails/events","assignees_url":"https://api.github.com/repos/rspec/rspec-rails/assignees{/user}","branches_url":"https://api.github.com/repos/rspec/rspec-rails/branches{/branch}","tags_url":"https://api.github.com/repos/rspec/rspec-rails/tags","blobs_url":"https://api.github.com/repos/rspec/rspec-rails/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rspec/rspec-rails/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rspec/rspec-rails/git/refs{/sha}","trees_url":"https://api.github.com/repos/rspec/rspec-rails/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rspec/rspec-rails/statuses/{sha}","languages_url":"https://api.github.com/repos/rspec/rspec-rails/languages","stargazers_url":"https://api.github.com/repos/rspec/rspec-rails/stargazers","contributors_url":"https://api.github.com/repos/rspec/rspec-rails/contributors","subscribers_url":"https://api.github.com/repos/rspec/rspec-rails/subscribers","subscription_url":"https://api.github.com/repos/rspec/rspec-rails/subscription","commits_url":"https://api.github.com/repos/rspec/rspec-rails/commits{/sha}","git_commits_url":"https://api.github.com/repos/rspec/rspec-rails/git/commits{/sha}","comments_url":"https://api.github.com/repos/rspec/rspec-rails/comments{/number}","issue_comment_url":"https://api.github.com/repos/rspec/rspec-rails/issues/comments/{number}","contents_url":"https://api.github.com/repos/rspec/rspec-rails/contents/{+path}","compare_url":"https://api.github.com/repos/rspec/rspec-rails/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rspec/rspec-rails/merges","archive_url":"https://api.github.com/repos/rspec/rspec-rails/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rspec/rspec-rails/downloads","issues_url":"https://api.github.com/repos/rspec/rspec-rails/issues{/number}","pulls_url":"https://api.github.com/repos/rspec/rspec-rails/pulls{/number}","milestones_url":"https://api.github.com/repos/rspec/rspec-rails/milestones{/number}","notifications_url":"https://api.github.com/repos/rspec/rspec-rails/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rspec/rspec-rails/labels{/name}","releases_url":"https://api.github.com/repos/rspec/rspec-rails/releases{/id}","created_at":"2009-12-23T16:40:53Z","updated_at":"2015-01-12T20:27:54Z","pushed_at":"2015-01-13T18:01:13Z","git_url":"git://github.com/rspec/rspec-rails.git","ssh_url":"git@github.com:rspec/rspec-rails.git","clone_url":"https://github.com/rspec/rspec-rails.git","svn_url":"https://github.com/rspec/rspec-rails","homepage":"http://relishapp.com/rspec/rspec-rails","size":6769,"stargazers_count":2208,"watchers_count":2208,"language":"Ruby","has_issues":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":439,"mirror_url":null,"open_issues_count":26,"forks":439,"open_issues":26,"watchers":2208,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rspec/rspec-rails/pulls/1277"},"html":{"href":"https://github.com/rspec/rspec-rails/pull/1277"},"issue":{"href":"https://api.github.com/repos/rspec/rspec-rails/issues/1277"},"comments":{"href":"https://api.github.com/repos/rspec/rspec-rails/issues/1277/comments"},"review_comments":{"href":"https://api.github.com/repos/rspec/rspec-rails/pulls/1277/comments"},"review_comment":{"href":"https://api.github.com/repos/rspec/rspec-rails/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/rspec/rspec-rails/pulls/1277/commits"},"statuses":{"href":"https://api.github.com/repos/rspec/rspec-rails/statuses/b15ee39b2b5d617986ac4bca8d32a77a908c496c"}}}}