diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-05-27 11:45:53 +0000 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-05-27 11:45:53 +0000 |
commit | 2cd1cee639843fed70bdd1be27c147bb6a719877 (patch) | |
tree | a2534640e7364d45f8ff0303a4ea207a26c11cd1 /spec | |
parent | 464123b388677bb2214515c9a495bd453689ff59 (diff) | |
parent | a9e2686139fa4c7d5cd5f567854dc95627cc26a7 (diff) | |
download | gitlab-ce-2cd1cee639843fed70bdd1be27c147bb6a719877.tar.gz |
Merge branch 'commit-graphs-by-email' into 'master'
Group project contributions by both name and email.
See https://twitter.com/Argorain/status/598751646143897600.
We now group by both name and email, so that "Douwe Maan - douwe@gitlab.com", "Douwe Maan - me@douwe.me" and "Douwe M. - me@douwe.me" are all combined into one graph.
Fixes internal issue https://dev.gitlab.org/gitlab/gitlabhq/issues/2328.
See merge request !700
Diffstat (limited to 'spec')
-rw-r--r-- | spec/javascripts/stat_graph_contributors_util_spec.js | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/spec/javascripts/stat_graph_contributors_util_spec.js b/spec/javascripts/stat_graph_contributors_util_spec.js index ee90892eb48..dbafe782b77 100644 --- a/spec/javascripts/stat_graph_contributors_util_spec.js +++ b/spec/javascripts/stat_graph_contributors_util_spec.js @@ -118,9 +118,11 @@ describe("ContributorsStatGraphUtil", function () { describe("#add_author", function () { it("adds an author field to the collection", function () { var fake_author = { author_name: "Author", author_email: 'fake@email.com' } - var fake_collection = {} - ContributorsStatGraphUtil.add_author(fake_author, fake_collection) - expect(fake_collection[fake_author.author_name].author_name).toEqual("Author") + var fake_author_collection = {} + var fake_email_collection = {} + ContributorsStatGraphUtil.add_author(fake_author, fake_author_collection, fake_email_collection) + expect(fake_author_collection[fake_author.author_name].author_name).toEqual("Author") + expect(fake_email_collection[fake_author.author_email].author_name).toEqual("Author") }) }) |