{"action":"created","comment":{"url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/pulls/comments/25564379","id":25564379,"diff_hunk":"@@ -0,0 +1,337 @@\n+require 'unit_spec_helper'\n+\n+describe Shoulda::Matchers::ActionController::PermitMatcher, type: :controller do\n+  it 'requires an action' do\n+    assertion = -> { expect(controller).to permit(:name) }\n+\n+    define_controller_for_resource_with_strong_parameters\n+\n+    expect(&assertion).to raise_error(described_class::ActionNotDefinedError)\n+  end\n+\n+  it 'requires a verb for a non-restful action' do\n+    define_controller_for_resource_with_strong_parameters\n+\n+    assertion = lambda do\n+      expect(controller).to permit(:name).for(:authorize)\n+    end\n+\n+    expect(&assertion).to raise_error(described_class::VerbNotDefinedError)\n+  end\n+\n+  it 'accepts a subset of the permitted attributes' do\n+    define_controller_for_resource_with_strong_parameters(action: :create) do\n+      params.require(:user).permit(:name, :age)\n+    end\n+\n+    expect(controller).to permit(:name).for(:create)\n+  end\n+\n+  it 'accepts all of the permitted attributes' do\n+    define_controller_for_resource_with_strong_parameters(action: :create) do\n+      params.require(:user).permit(:name, :age)\n+    end\n+\n+    expect(controller).to permit(:name, :age).for(:create)\n+  end\n+\n+  it 'rejects attributes that have not been permitted' do\n+    define_controller_for_resource_with_strong_parameters(action: :create) do\n+      params.require(:user).permit(:name)\n+    end\n+\n+    expect(controller).not_to permit(:name, :admin).for(:create)\n+  end\n+\n+  it 'rejects when #permit has not been called' do\n+    define_controller_for_resource_with_strong_parameters(action: :create)\n+\n+    expect(controller).not_to permit(:name).for(:create)\n+  end\n+\n+  it 'can be used more than once in the same test' do\n+    define_controller_for_resource_with_strong_parameters(action: :create) do\n+      params.require(:user).permit(:name)\n+    end\n+\n+    expect(controller).to permit(:name).for(:create)\n+    expect(controller).not_to permit(:admin).for(:create)\n+  end\n+\n+  it 'works with routes that require extra params' do\n+    options = {\n+      controller_name: 'Posts',\n+      action: :show,\n+      routes: -> { get '/posts/:slug', to: 'posts#show' }\n+    }\n+\n+    define_controller_for_resource_with_strong_parameters(options) do\n+      params.require(:user).permit(:name)\n+    end\n+\n+    expect(controller).\n+      to permit(:name).\n+      for(:show, verb: :get, params: { slug: 'foo' })\n+  end\n+\n+  it 'works with #update specifically' do\n+    define_controller_for_resource_with_strong_parameters(action: :update) do\n+      params.require(:user).permit(:name)\n+    end\n+\n+    expect(controller).\n+      to permit(:name).\n+      for(:update, params: { id: 1 })\n+  end\n+\n+  it 'tracks multiple calls to #permit' do\n+    sets_of_attributes = [\n+      [:eta, :diner_id],\n+      [:phone_number, :address_1, :address_2, :city, :state, :zip]\n+    ]\n+\n+    define_controller_for_resource_with_strong_parameters(action: :create) do\n+      params.require(:order).permit(sets_of_attributes[0])\n+      params.require(:diner).permit(sets_of_attributes[1])\n+    end\n+\n+    expect(controller).to permit(*sets_of_attributes[0]).for(:create)\n+    expect(controller).to permit(*sets_of_attributes[1]).for(:create)\n+  end\n+\n+  describe '#matches?' do\n+    it 'does not raise an error when #fetch was used instead of #require (issue #495)' do\n+      matcher = permit(:eta, :diner_id).for(:create)\n+      matching = -> { matcher.matches?(controller) }\n+\n+      define_controller_for_resource_with_strong_parameters(action: :create) do\n+        params.fetch(:order, {}).permit(:eta, :diner_id)\n+      end\n+\n+      expect(&matching).not_to raise_error\n+    end\n+\n+    context 'stubbing params on the controller' do\n+      it 'still allows the original params hash to be modified and accessed prior to the call to #require' do\n+        actual_user_params = nil\n+        actual_foo_param = nil\n+        matcher = permit(:name).for(\n+          :create,\n+          params: { user: { some: 'params' } }\n+        )\n+\n+        define_controller_for_resource_with_strong_parameters(action: :create) do\n+          params[:foo] = 'bar'\n+          actual_foo_param = params[:foo]\n+          actual_user_params = params[:user]\n+\n+          params.require(:user).permit(:name)\n+        end\n+\n+        matcher.matches?(controller)\n+\n+        expect(actual_user_params).to eq('some' => 'params')\n+        expect(actual_foo_param).to eq 'bar'\n+      end\n+\n+      it 'does not permanently stub the params hash' do\n+        matcher = permit(:name).for(:create)\n+        params_access = -> { controller.params.require(:user) }\n+\n+        define_controller_for_resource_with_strong_parameters(action: :create)\n+\n+        matcher.matches?(controller)\n+\n+        expect(&params_access).\n+          to raise_error(::ActionController::ParameterMissing)\n+      end\n+\n+      it 'prevents permanently stubbing params on error' do\n+        matcher = permit(:name).for(:create)\n+        params_access = -> { controller.params.require(:user) }\n+\n+        define_controller_raising_exception\n+\n+        begin\n+          matcher.matches?(controller)\n+        rescue simulated_error_class\n+        end\n+\n+        expect(&params_access).\n+          to raise_error(::ActionController::ParameterMissing)\n+      end\n+    end\n+  end\n+\n+  describe '#description' do\n+    it 'returns the correct string' do\n+      options = { action: :create, method: :post }\n+\n+      define_controller_for_resource_with_strong_parameters(options) do\n+        params.permit(:name, :age)\n+      end\n+\n+      matcher = described_class.new([:name, :age, :height]).for(:create)\n+      expect(matcher.description).\n+        to eq 'permit POST #create to receive parameters :name, :age, and :height'\n+    end\n+\n+    context 'when a verb is specified' do\n+      it 'returns the correct string' do\n+        options = { action: :some_action }\n+\n+        define_controller_for_resource_with_strong_parameters(options) do\n+          params.permit(:name, :age)\n+        end\n+\n+        matcher = described_class.new([:name]).\n+          for(:some_action, verb: :put)\n+        expect(matcher.description).\n+          to eq 'permit PUT #some_action to receive parameters :name'\n+      end\n+    end\n+  end\n+\n+  describe 'positive failure message' do\n+    it 'includes all missing attributes' do\n+      define_controller_for_resource_with_strong_parameters(action: :create) do\n+        params.require(:user).permit(:name, :age)\n+      end\n+\n+      assertion = lambda do\n+        expect(@controller).\n+          to permit(:name, :age, :city, :country).\n+          for(:create)\n+      end\n+\n+      expect(&assertion).to fail_with_message(\n+        'Expected controller to permit city and country, but it did not.'\n+      )\n+    end\n+  end\n+\n+  describe 'negative failure message' do\n+    it 'includes all attributes that should not have been permitted but were' do\n+      define_controller_for_resource_with_strong_parameters(action: :create) do\n+        params.require(:user).permit(:name, :age)\n+      end\n+\n+      assertion = lambda do\n+        expect(controller).not_to permit(:name, :age).for(:create)\n+      end\n+\n+      expect(&assertion).to fail_with_message(\n+        'Expected controller not to permit name and age, but it did.'\n+      )\n+    end\n+  end\n+\n+  describe '#for' do\n+    context 'when given :create' do\n+      it 'POSTs to the controller' do\n+        controller = ActionController::Base.new\n+        context = build_context\n+        matcher = permit(:name).for(:create).in_context(context)\n+\n+        matcher.matches?(controller)\n+\n+        expect(context).to have_received(:post).with(:create, {})\n+      end\n+    end\n+\n+    context 'when given :update' do\n+      if rails_gte_4_1?\n+        it 'PATCHes to the controller' do\n+          controller = ActionController::Base.new\n+          context = build_context\n+          matcher = permit(:name).for(:update).in_context(context)\n+\n+          matcher.matches?(controller)\n+\n+          expect(context).to have_received(:patch).with(:update, {})\n+        end\n+      else\n+        it 'PUTs to the controller' do\n+          controller = ActionController::Base.new\n+          context = build_context\n+          matcher = permit(:name).for(:update).in_context(context)\n+\n+          matcher.matches?(controller)\n+\n+          expect(context).to have_received(:put).with(:update, {})\n+        end\n+      end\n+    end\n+\n+    context 'when given a custom action and verb' do\n+      it 'calls the action with the verb' do\n+        controller = ActionController::Base.new\n+        context = build_context\n+        matcher = permit(:name).\n+          for(:hide, verb: :delete).\n+          in_context(context)\n+\n+        matcher.matches?(controller)\n+\n+        expect(context).to have_received(:delete).with(:hide, {})\n+      end\n+    end\n+  end\n+\n+  let(:simulated_error_class) do\n+    Class.new(StandardError)\n+  end\n+\n+  def define_controller_for_resource_with_strong_parameters(","path":"spec/unit/shoulda/matchers/action_controller/permit_matcher_spec.rb","position":285,"original_position":285,"commit_id":"ffb0b5e8534600d73e367fd111ef0a3b0b6568c9","original_commit_id":"ffb0b5e8534600d73e367fd111ef0a3b0b6568c9","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Assignment Branch Condition size for define_controller_for_resource_with_strong_parameters is too high. [18.06/15]","created_at":"2015-03-01T06:00:24Z","updated_at":"2015-03-01T06:00:24Z","html_url":"https://github.com/thoughtbot/shoulda-matchers/pull/672#discussion_r25564379","pull_request_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/pulls/672","_links":{"self":{"href":"https://api.github.com/repos/thoughtbot/shoulda-matchers/pulls/comments/25564379"},"html":{"href":"https://github.com/thoughtbot/shoulda-matchers/pull/672#discussion_r25564379"},"pull_request":{"href":"https://api.github.com/repos/thoughtbot/shoulda-matchers/pulls/672"}}},"pull_request":{"url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/pulls/672","id":30237552,"html_url":"https://github.com/thoughtbot/shoulda-matchers/pull/672","diff_url":"https://github.com/thoughtbot/shoulda-matchers/pull/672.diff","patch_url":"https://github.com/thoughtbot/shoulda-matchers/pull/672.patch","issue_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/issues/672","number":672,"state":"open","locked":false,"title":"Rewrite tests for #permit","user":{"login":"mcmire","id":7371,"avatar_url":"https://avatars.githubusercontent.com/u/7371?v=3","gravatar_id":"","url":"https://api.github.com/users/mcmire","html_url":"https://github.com/mcmire","followers_url":"https://api.github.com/users/mcmire/followers","following_url":"https://api.github.com/users/mcmire/following{/other_user}","gists_url":"https://api.github.com/users/mcmire/gists{/gist_id}","starred_url":"https://api.github.com/users/mcmire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcmire/subscriptions","organizations_url":"https://api.github.com/users/mcmire/orgs","repos_url":"https://api.github.com/users/mcmire/repos","events_url":"https://api.github.com/users/mcmire/events{/privacy}","received_events_url":"https://api.github.com/users/mcmire/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-03-01T06:00:19Z","updated_at":"2015-03-01T06:00:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ee74e91b0d23dbd1b36bd4a4615305d0796f2989","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/pulls/672/commits","review_comments_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/pulls/672/comments","review_comment_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/pulls/comments{/number}","comments_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/issues/672/comments","statuses_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/statuses/ffb0b5e8534600d73e367fd111ef0a3b0b6568c9","head":{"label":"thoughtbot:ew-rewrite-tests-for-permit","ref":"ew-rewrite-tests-for-permit","sha":"ffb0b5e8534600d73e367fd111ef0a3b0b6568c9","user":{"login":"thoughtbot","id":6183,"avatar_url":"https://avatars.githubusercontent.com/u/6183?v=3","gravatar_id":"","url":"https://api.github.com/users/thoughtbot","html_url":"https://github.com/thoughtbot","followers_url":"https://api.github.com/users/thoughtbot/followers","following_url":"https://api.github.com/users/thoughtbot/following{/other_user}","gists_url":"https://api.github.com/users/thoughtbot/gists{/gist_id}","starred_url":"https://api.github.com/users/thoughtbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thoughtbot/subscriptions","organizations_url":"https://api.github.com/users/thoughtbot/orgs","repos_url":"https://api.github.com/users/thoughtbot/repos","events_url":"https://api.github.com/users/thoughtbot/events{/privacy}","received_events_url":"https://api.github.com/users/thoughtbot/received_events","type":"Organization","site_admin":false},"repo":{"id":1172597,"name":"shoulda-matchers","full_name":"thoughtbot/shoulda-matchers","owner":{"login":"thoughtbot","id":6183,"avatar_url":"https://avatars.githubusercontent.com/u/6183?v=3","gravatar_id":"","url":"https://api.github.com/users/thoughtbot","html_url":"https://github.com/thoughtbot","followers_url":"https://api.github.com/users/thoughtbot/followers","following_url":"https://api.github.com/users/thoughtbot/following{/other_user}","gists_url":"https://api.github.com/users/thoughtbot/gists{/gist_id}","starred_url":"https://api.github.com/users/thoughtbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thoughtbot/subscriptions","organizations_url":"https://api.github.com/users/thoughtbot/orgs","repos_url":"https://api.github.com/users/thoughtbot/repos","events_url":"https://api.github.com/users/thoughtbot/events{/privacy}","received_events_url":"https://api.github.com/users/thoughtbot/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/thoughtbot/shoulda-matchers","description":"Collection of testing matchers extracted from Shoulda","fork":false,"url":"https://api.github.com/repos/thoughtbot/shoulda-matchers","forks_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/forks","keys_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/keys{/key_id}","collaborators_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/teams","hooks_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/hooks","issue_events_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/issues/events{/number}","events_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/events","assignees_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/assignees{/user}","branches_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/branches{/branch}","tags_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/tags","blobs_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/git/refs{/sha}","trees_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/git/trees{/sha}","statuses_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/statuses/{sha}","languages_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/languages","stargazers_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/stargazers","contributors_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/contributors","subscribers_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/subscribers","subscription_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/subscription","commits_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/commits{/sha}","git_commits_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/git/commits{/sha}","comments_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/comments{/number}","issue_comment_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/issues/comments{/number}","contents_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/contents/{+path}","compare_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/compare/{base}...{head}","merges_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/merges","archive_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/downloads","issues_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/issues{/number}","pulls_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/pulls{/number}","milestones_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/milestones{/number}","notifications_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/labels{/name}","releases_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/releases{/id}","created_at":"2010-12-15T22:41:52Z","updated_at":"2015-02-28T23:50:12Z","pushed_at":"2015-03-01T05:59:53Z","git_url":"git://github.com/thoughtbot/shoulda-matchers.git","ssh_url":"git@github.com:thoughtbot/shoulda-matchers.git","clone_url":"https://github.com/thoughtbot/shoulda-matchers.git","svn_url":"https://github.com/thoughtbot/shoulda-matchers","homepage":"http://matchers.shoulda.io","size":17446,"stargazers_count":1087,"watchers_count":1087,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":318,"mirror_url":null,"open_issues_count":35,"forks":318,"open_issues":35,"watchers":1087,"default_branch":"master"}},"base":{"label":"thoughtbot:master","ref":"master","sha":"52a15c3605dce08ac4ed0348a65e6298a46fd3b0","user":{"login":"thoughtbot","id":6183,"avatar_url":"https://avatars.githubusercontent.com/u/6183?v=3","gravatar_id":"","url":"https://api.github.com/users/thoughtbot","html_url":"https://github.com/thoughtbot","followers_url":"https://api.github.com/users/thoughtbot/followers","following_url":"https://api.github.com/users/thoughtbot/following{/other_user}","gists_url":"https://api.github.com/users/thoughtbot/gists{/gist_id}","starred_url":"https://api.github.com/users/thoughtbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thoughtbot/subscriptions","organizations_url":"https://api.github.com/users/thoughtbot/orgs","repos_url":"https://api.github.com/users/thoughtbot/repos","events_url":"https://api.github.com/users/thoughtbot/events{/privacy}","received_events_url":"https://api.github.com/users/thoughtbot/received_events","type":"Organization","site_admin":false},"repo":{"id":1172597,"name":"shoulda-matchers","full_name":"thoughtbot/shoulda-matchers","owner":{"login":"thoughtbot","id":6183,"avatar_url":"https://avatars.githubusercontent.com/u/6183?v=3","gravatar_id":"","url":"https://api.github.com/users/thoughtbot","html_url":"https://github.com/thoughtbot","followers_url":"https://api.github.com/users/thoughtbot/followers","following_url":"https://api.github.com/users/thoughtbot/following{/other_user}","gists_url":"https://api.github.com/users/thoughtbot/gists{/gist_id}","starred_url":"https://api.github.com/users/thoughtbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thoughtbot/subscriptions","organizations_url":"https://api.github.com/users/thoughtbot/orgs","repos_url":"https://api.github.com/users/thoughtbot/repos","events_url":"https://api.github.com/users/thoughtbot/events{/privacy}","received_events_url":"https://api.github.com/users/thoughtbot/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/thoughtbot/shoulda-matchers","description":"Collection of testing matchers extracted from Shoulda","fork":false,"url":"https://api.github.com/repos/thoughtbot/shoulda-matchers","forks_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/forks","keys_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/keys{/key_id}","collaborators_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/teams","hooks_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/hooks","issue_events_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/issues/events{/number}","events_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/events","assignees_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/assignees{/user}","branches_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/branches{/branch}","tags_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/tags","blobs_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/git/refs{/sha}","trees_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/git/trees{/sha}","statuses_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/statuses/{sha}","languages_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/languages","stargazers_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/stargazers","contributors_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/contributors","subscribers_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/subscribers","subscription_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/subscription","commits_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/commits{/sha}","git_commits_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/git/commits{/sha}","comments_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/comments{/number}","issue_comment_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/issues/comments{/number}","contents_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/contents/{+path}","compare_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/compare/{base}...{head}","merges_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/merges","archive_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/downloads","issues_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/issues{/number}","pulls_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/pulls{/number}","milestones_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/milestones{/number}","notifications_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/labels{/name}","releases_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/releases{/id}","created_at":"2010-12-15T22:41:52Z","updated_at":"2015-02-28T23:50:12Z","pushed_at":"2015-03-01T05:59:53Z","git_url":"git://github.com/thoughtbot/shoulda-matchers.git","ssh_url":"git@github.com:thoughtbot/shoulda-matchers.git","clone_url":"https://github.com/thoughtbot/shoulda-matchers.git","svn_url":"https://github.com/thoughtbot/shoulda-matchers","homepage":"http://matchers.shoulda.io","size":17446,"stargazers_count":1087,"watchers_count":1087,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":318,"mirror_url":null,"open_issues_count":35,"forks":318,"open_issues":35,"watchers":1087,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/thoughtbot/shoulda-matchers/pulls/672"},"html":{"href":"https://github.com/thoughtbot/shoulda-matchers/pull/672"},"issue":{"href":"https://api.github.com/repos/thoughtbot/shoulda-matchers/issues/672"},"comments":{"href":"https://api.github.com/repos/thoughtbot/shoulda-matchers/issues/672/comments"},"review_comments":{"href":"https://api.github.com/repos/thoughtbot/shoulda-matchers/pulls/672/comments"},"review_comment":{"href":"https://api.github.com/repos/thoughtbot/shoulda-matchers/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/thoughtbot/shoulda-matchers/pulls/672/commits"},"statuses":{"href":"https://api.github.com/repos/thoughtbot/shoulda-matchers/statuses/ffb0b5e8534600d73e367fd111ef0a3b0b6568c9"}}}}