GitHub PullRequestReviewCommentEvent at 2014-02-20 19:31:28
Repository: rspec-collection_matchers
Actor: JonRowe
Payload: {"comment":{"url":"https://api.github.com/repos/rspec/rspec-collection_matchers/pulls/comments/9920467","id":9920467,"diff_hunk":"@@ -0,0 +1,44 @@\n+require \"spec_helper\"\n+require 'rspec/collection_matchers/rails/have_extensions'\n+\n+module RSpec::CollectionMatchers::Rails\n+  describe HaveExtensions do\n+    describe \"error_on\" do\n+      it \"provides a description including the name of what the error is on\" do\n+        have(1).error_on(:whatever).description.should == \"have 1 error on :whatever\"\n+      end\n+\n+      it \"provides a failure message including the number actually given\" do\n+        lambda {\n+          [].should have(1).error_on(:whatever)\n+        }.should raise_error(\"expected 1 error on :whatever, got 0\")\n+      end\n+    end\n+\n+    describe \"errors_on\" do\n+      it \"provides a description including the name of what the error is on\" do\n+        have(2).errors_on(:whatever).description.should == \"have 2 errors on :whatever\"\n+      end\n+\n+      it \"provides a failure message including the number actually given\" do\n+        lambda {\n+          [1].should have(3).errors_on(:whatever)\n+        }.should raise_error(\"expected 3 errors on :whatever, got 1\")\n+      end\n+    end\n+\n+    describe \"have something other than error_on or errors_on\" do\n+      it \"has a standard rspec failure message\" do\n+        lambda {\n+          [1,2,3].should have(2).elements\n+        }.should raise_error(\"expected 2 elements, got 3\")\n+      end\n+\n+      it \"has a standard rspec description\" do\n+        RSpec::CollectionMatchers::Have\n+        have(2).elements.description.should == \"have 2 elements\"\n+      end\n+    end\n+  end\n+end\n+","path":"spec/rspec/collection_matchers/rails/have_extensions_spec.rb","position":44,"original_position":44,"commit_id":"80b75a0225f282aebeb647b0fb6a8428384ef665","original_commit_id":"80b75a0225f282aebeb647b0fb6a8428384ef665","user":{"login":"JonRowe","id":162976,"avatar_url":"https://gravatar.com/avatar/d79fc498d7a5b2ce12180890247476f0?d=https%3A%2F%2Fidenticons.github.com%2F4ae1dff9b97cae45d75aa55942d3d2d4.png&r=x","gravatar_id":"d79fc498d7a5b2ce12180890247476f0","url":"https://api.github.com/users/JonRowe","html_url":"https://github.com/JonRowe","followers_url":"https://api.github.com/users/JonRowe/followers","following_url":"https://api.github.com/users/JonRowe/following{/other_user}","gists_url":"https://api.github.com/users/JonRowe/gists{/gist_id}","starred_url":"https://api.github.com/users/JonRowe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JonRowe/subscriptions","organizations_url":"https://api.github.com/users/JonRowe/orgs","repos_url":"https://api.github.com/users/JonRowe/repos","events_url":"https://api.github.com/users/JonRowe/events{/privacy}","received_events_url":"https://api.github.com/users/JonRowe/received_events","type":"User","site_admin":false},"body":"excess white space","created_at":"2014-02-20T19:31:28Z","updated_at":"2014-02-20T19:31:28Z","html_url":"https://github.com/rspec/rspec-collection_matchers/pull/5#discussion_r9920467","pull_request_url":"https://api.github.com/repos/rspec/rspec-collection_matchers/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/rspec/rspec-collection_matchers/pulls/comments/9920467"},"html":{"href":"https://github.com/rspec/rspec-collection_matchers/pull/5#discussion_r9920467"},"pull_request":{"href":"https://api.github.com/repos/rspec/rspec-collection_matchers/pulls/5"}}}}