{"action":"created","comment":{"url":"https://api.github.com/repos/rubygarage/shopapp-ios/pulls/comments/169730398","pull_request_review_id":98304713,"id":169730398,"diff_hunk":"@@ -0,0 +1,105 @@\n+//\n+//  OrderListTableProviderSpec.swift\n+//  ShopAppTests\n+//\n+//  Created by Evgeniy Antonov on 2/20/18.\n+//  Copyright © 2018 RubyGarage. All rights reserved.\n+//\n+\n+import Nimble\n+import Quick\n+import ShopApp_Gateway\n+\n+@testable import ShopApp\n+\n+class OrderListTableProviderSpec: QuickSpec {\n+    override func spec() {\n+        var tableProvider: OrdersListTableProvider!\n+        var tableView: UITableView!\n+        \n+        beforeEach {\n+            tableProvider = OrdersListTableProvider()\n+            tableView = UITableView()\n+            tableView.registerNibForCell(CheckoutCartTableViewCell.self)\n+            tableView.dataSource = tableProvider\n+            tableView.delegate = tableProvider\n+        }\n+        \n+        describe(\"when provider created\") {\n+            it(\"should return correct count\") {\n+                let sectionsCount = tableProvider.numberOfSections(in: tableView)\n+                expect(sectionsCount) == 0\n+                \n+                let rowsCount = tableProvider.tableView(tableView, numberOfRowsInSection: 0)\n+                expect(rowsCount) == 1\n+                \n+                let header = tableProvider.tableView(tableView, viewForHeaderInSection: 0)\n+                expect(header).to(beNil())\n+                \n+                let footer = tableProvider.tableView(tableView, viewForFooterInSection: 0)\n+                expect(footer).to(beNil())\n+            }\n+        }\n+        \n+        describe(\"when orders did set\") {\n+            var order: Order!\n+            \n+            beforeEach {\n+                order = Order()\n+                order.id = \"order id\"\n+                order.number = 1000\n+                order.createdAt = Date()\n+                order.currencyCode = \"USD\"\n+                order.totalPrice = Decimal(floatLiteral: 10)\n+                tableProvider.orders = [order, order, order]\n+                tableView.reloadData()\n+            }\n+            \n+            it(\"should return correct count\") {\n+                let sectionsCount = tableProvider.numberOfSections(in: tableView)\n+                expect(sectionsCount) == tableProvider.orders.count\n+                \n+                let header = tableProvider.tableView(tableView, viewForHeaderInSection: 0)\n+                expect(header).to(beAnInstanceOf(OrderHeaderView.self))\n+                \n+                let footer = tableProvider.tableView(tableView, viewForFooterInSection: 0)\n+                expect(footer).to(beAnInstanceOf(OrderFooterView.self))","path":"ShopAppTests/App/Account/Providers/OrderListTableProviderSpec.swift","position":66,"original_position":66,"commit_id":"846952294cd3e869595b3429e39c37143359d878","original_commit_id":"846952294cd3e869595b3429e39c37143359d878","user":{"login":"radyslavkrechet","id":22166175,"avatar_url":"https://avatars1.githubusercontent.com/u/22166175?v=4","gravatar_id":"","url":"https://api.github.com/users/radyslavkrechet","html_url":"https://github.com/radyslavkrechet","followers_url":"https://api.github.com/users/radyslavkrechet/followers","following_url":"https://api.github.com/users/radyslavkrechet/following{/other_user}","gists_url":"https://api.github.com/users/radyslavkrechet/gists{/gist_id}","starred_url":"https://api.github.com/users/radyslavkrechet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/radyslavkrechet/subscriptions","organizations_url":"https://api.github.com/users/radyslavkrechet/orgs","repos_url":"https://api.github.com/users/radyslavkrechet/repos","events_url":"https://api.github.com/users/radyslavkrechet/events{/privacy}","received_events_url":"https://api.github.com/users/radyslavkrechet/received_events","type":"User","site_admin":false},"body":"Separate this expect and expect above with other `it` closure.","created_at":"2018-02-21T18:18:44Z","updated_at":"2018-02-21T18:18:44Z","html_url":"https://github.com/rubygarage/shopapp-ios/pull/107#discussion_r169730398","pull_request_url":"https://api.github.com/repos/rubygarage/shopapp-ios/pulls/107","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/rubygarage/shopapp-ios/pulls/comments/169730398"},"html":{"href":"https://github.com/rubygarage/shopapp-ios/pull/107#discussion_r169730398"},"pull_request":{"href":"https://api.github.com/repos/rubygarage/shopapp-ios/pulls/107"}}},"pull_request":{"url":"https://api.github.com/repos/rubygarage/shopapp-ios/pulls/107","id":170467516,"html_url":"https://github.com/rubygarage/shopapp-ios/pull/107","diff_url":"https://github.com/rubygarage/shopapp-ios/pull/107.diff","patch_url":"https://github.com/rubygarage/shopapp-ios/pull/107.patch","issue_url":"https://api.github.com/repos/rubygarage/shopapp-ios/issues/107","number":107,"state":"open","locked":false,"title":"Add order list unit tests","user":{"login":"AntonoffEvgeniy","id":8193451,"avatar_url":"https://avatars0.githubusercontent.com/u/8193451?v=4","gravatar_id":"","url":"https://api.github.com/users/AntonoffEvgeniy","html_url":"https://github.com/AntonoffEvgeniy","followers_url":"https://api.github.com/users/AntonoffEvgeniy/followers","following_url":"https://api.github.com/users/AntonoffEvgeniy/following{/other_user}","gists_url":"https://api.github.com/users/AntonoffEvgeniy/gists{/gist_id}","starred_url":"https://api.github.com/users/AntonoffEvgeniy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AntonoffEvgeniy/subscriptions","organizations_url":"https://api.github.com/users/AntonoffEvgeniy/orgs","repos_url":"https://api.github.com/users/AntonoffEvgeniy/repos","events_url":"https://api.github.com/users/AntonoffEvgeniy/events{/privacy}","received_events_url":"https://api.github.com/users/AntonoffEvgeniy/received_events","type":"User","site_admin":false},"body":"Add order list unit tests","created_at":"2018-02-21T13:20:12Z","updated_at":"2018-02-21T18:18:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a8f098246a4b7a45fa16072a258ce049acad704f","assignee":null,"assignees":[],"requested_reviewers":[{"login":"plzen","id":610948,"avatar_url":"https://avatars3.githubusercontent.com/u/610948?v=4","gravatar_id":"","url":"https://api.github.com/users/plzen","html_url":"https://github.com/plzen","followers_url":"https://api.github.com/users/plzen/followers","following_url":"https://api.github.com/users/plzen/following{/other_user}","gists_url":"https://api.github.com/users/plzen/gists{/gist_id}","starred_url":"https://api.github.com/users/plzen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/plzen/subscriptions","organizations_url":"https://api.github.com/users/plzen/orgs","repos_url":"https://api.github.com/users/plzen/repos","events_url":"https://api.github.com/users/plzen/events{/privacy}","received_events_url":"https://api.github.com/users/plzen/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/rubygarage/shopapp-ios/pulls/107/commits","review_comments_url":"https://api.github.com/repos/rubygarage/shopapp-ios/pulls/107/comments","review_comment_url":"https://api.github.com/repos/rubygarage/shopapp-ios/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rubygarage/shopapp-ios/issues/107/comments","statuses_url":"https://api.github.com/repos/rubygarage/shopapp-ios/statuses/846952294cd3e869595b3429e39c37143359d878","head":{"label":"rubygarage:feature/add_order_list_unit_tests","ref":"feature/add_order_list_unit_tests","sha":"846952294cd3e869595b3429e39c37143359d878","user":{"login":"rubygarage","id":2300590,"avatar_url":"https://avatars2.githubusercontent.com/u/2300590?v=4","gravatar_id":"","url":"https://api.github.com/users/rubygarage","html_url":"https://github.com/rubygarage","followers_url":"https://api.github.com/users/rubygarage/followers","following_url":"https://api.github.com/users/rubygarage/following{/other_user}","gists_url":"https://api.github.com/users/rubygarage/gists{/gist_id}","starred_url":"https://api.github.com/users/rubygarage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rubygarage/subscriptions","organizations_url":"https://api.github.com/users/rubygarage/orgs","repos_url":"https://api.github.com/users/rubygarage/repos","events_url":"https://api.github.com/users/rubygarage/events{/privacy}","received_events_url":"https://api.github.com/users/rubygarage/received_events","type":"Organization","site_admin":false},"repo":{"id":105553986,"name":"shopapp-ios","full_name":"rubygarage/shopapp-ios","owner":{"login":"rubygarage","id":2300590,"avatar_url":"https://avatars2.githubusercontent.com/u/2300590?v=4","gravatar_id":"","url":"https://api.github.com/users/rubygarage","html_url":"https://github.com/rubygarage","followers_url":"https://api.github.com/users/rubygarage/followers","following_url":"https://api.github.com/users/rubygarage/following{/other_user}","gists_url":"https://api.github.com/users/rubygarage/gists{/gist_id}","starred_url":"https://api.github.com/users/rubygarage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rubygarage/subscriptions","organizations_url":"https://api.github.com/users/rubygarage/orgs","repos_url":"https://api.github.com/users/rubygarage/repos","events_url":"https://api.github.com/users/rubygarage/events{/privacy}","received_events_url":"https://api.github.com/users/rubygarage/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rubygarage/shopapp-ios","description":null,"fork":false,"url":"https://api.github.com/repos/rubygarage/shopapp-ios","forks_url":"https://api.github.com/repos/rubygarage/shopapp-ios/forks","keys_url":"https://api.github.com/repos/rubygarage/shopapp-ios/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rubygarage/shopapp-ios/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rubygarage/shopapp-ios/teams","hooks_url":"https://api.github.com/repos/rubygarage/shopapp-ios/hooks","issue_events_url":"https://api.github.com/repos/rubygarage/shopapp-ios/issues/events{/number}","events_url":"https://api.github.com/repos/rubygarage/shopapp-ios/events","assignees_url":"https://api.github.com/repos/rubygarage/shopapp-ios/assignees{/user}","branches_url":"https://api.github.com/repos/rubygarage/shopapp-ios/branches{/branch}","tags_url":"https://api.github.com/repos/rubygarage/shopapp-ios/tags","blobs_url":"https://api.github.com/repos/rubygarage/shopapp-ios/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rubygarage/shopapp-ios/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rubygarage/shopapp-ios/git/refs{/sha}","trees_url":"https://api.github.com/repos/rubygarage/shopapp-ios/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rubygarage/shopapp-ios/statuses/{sha}","languages_url":"https://api.github.com/repos/rubygarage/shopapp-ios/languages","stargazers_url":"https://api.github.com/repos/rubygarage/shopapp-ios/stargazers","contributors_url":"https://api.github.com/repos/rubygarage/shopapp-ios/contributors","subscribers_url":"https://api.github.com/repos/rubygarage/shopapp-ios/subscribers","subscription_url":"https://api.github.com/repos/rubygarage/shopapp-ios/subscription","commits_url":"https://api.github.com/repos/rubygarage/shopapp-ios/commits{/sha}","git_commits_url":"https://api.github.com/repos/rubygarage/shopapp-ios/git/commits{/sha}","comments_url":"https://api.github.com/repos/rubygarage/shopapp-ios/comments{/number}","issue_comment_url":"https://api.github.com/repos/rubygarage/shopapp-ios/issues/comments{/number}","contents_url":"https://api.github.com/repos/rubygarage/shopapp-ios/contents/{+path}","compare_url":"https://api.github.com/repos/rubygarage/shopapp-ios/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rubygarage/shopapp-ios/merges","archive_url":"https://api.github.com/repos/rubygarage/shopapp-ios/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rubygarage/shopapp-ios/downloads","issues_url":"https://api.github.com/repos/rubygarage/shopapp-ios/issues{/number}","pulls_url":"https://api.github.com/repos/rubygarage/shopapp-ios/pulls{/number}","milestones_url":"https://api.github.com/repos/rubygarage/shopapp-ios/milestones{/number}","notifications_url":"https://api.github.com/repos/rubygarage/shopapp-ios/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rubygarage/shopapp-ios/labels{/name}","releases_url":"https://api.github.com/repos/rubygarage/shopapp-ios/releases{/id}","deployments_url":"https://api.github.com/repos/rubygarage/shopapp-ios/deployments","created_at":"2017-10-02T15:54:24Z","updated_at":"2018-02-19T09:08:01Z","pushed_at":"2018-02-21T16:16:13Z","git_url":"git://github.com/rubygarage/shopapp-ios.git","ssh_url":"git@github.com:rubygarage/shopapp-ios.git","clone_url":"https://github.com/rubygarage/shopapp-ios.git","svn_url":"https://github.com/rubygarage/shopapp-ios","homepage":null,"size":2940,"stargazers_count":0,"watchers_count":0,"language":"Swift","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":0,"open_issues":1,"watchers":0,"default_branch":"develop"}},"base":{"label":"rubygarage:develop","ref":"develop","sha":"6681f3e2b31535975c6d732d6b7b8b59dc9c60c3","user":{"login":"rubygarage","id":2300590,"avatar_url":"https://avatars2.githubusercontent.com/u/2300590?v=4","gravatar_id":"","url":"https://api.github.com/users/rubygarage","html_url":"https://github.com/rubygarage","followers_url":"https://api.github.com/users/rubygarage/followers","following_url":"https://api.github.com/users/rubygarage/following{/other_user}","gists_url":"https://api.github.com/users/rubygarage/gists{/gist_id}","starred_url":"https://api.github.com/users/rubygarage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rubygarage/subscriptions","organizations_url":"https://api.github.com/users/rubygarage/orgs","repos_url":"https://api.github.com/users/rubygarage/repos","events_url":"https://api.github.com/users/rubygarage/events{/privacy}","received_events_url":"https://api.github.com/users/rubygarage/received_events","type":"Organization","site_admin":false},"repo":{"id":105553986,"name":"shopapp-ios","full_name":"rubygarage/shopapp-ios","owner":{"login":"rubygarage","id":2300590,"avatar_url":"https://avatars2.githubusercontent.com/u/2300590?v=4","gravatar_id":"","url":"https://api.github.com/users/rubygarage","html_url":"https://github.com/rubygarage","followers_url":"https://api.github.com/users/rubygarage/followers","following_url":"https://api.github.com/users/rubygarage/following{/other_user}","gists_url":"https://api.github.com/users/rubygarage/gists{/gist_id}","starred_url":"https://api.github.com/users/rubygarage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rubygarage/subscriptions","organizations_url":"https://api.github.com/users/rubygarage/orgs","repos_url":"https://api.github.com/users/rubygarage/repos","events_url":"https://api.github.com/users/rubygarage/events{/privacy}","received_events_url":"https://api.github.com/users/rubygarage/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rubygarage/shopapp-ios","description":null,"fork":false,"url":"https://api.github.com/repos/rubygarage/shopapp-ios","forks_url":"https://api.github.com/repos/rubygarage/shopapp-ios/forks","keys_url":"https://api.github.com/repos/rubygarage/shopapp-ios/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rubygarage/shopapp-ios/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rubygarage/shopapp-ios/teams","hooks_url":"https://api.github.com/repos/rubygarage/shopapp-ios/hooks","issue_events_url":"https://api.github.com/repos/rubygarage/shopapp-ios/issues/events{/number}","events_url":"https://api.github.com/repos/rubygarage/shopapp-ios/events","assignees_url":"https://api.github.com/repos/rubygarage/shopapp-ios/assignees{/user}","branches_url":"https://api.github.com/repos/rubygarage/shopapp-ios/branches{/branch}","tags_url":"https://api.github.com/repos/rubygarage/shopapp-ios/tags","blobs_url":"https://api.github.com/repos/rubygarage/shopapp-ios/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rubygarage/shopapp-ios/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rubygarage/shopapp-ios/git/refs{/sha}","trees_url":"https://api.github.com/repos/rubygarage/shopapp-ios/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rubygarage/shopapp-ios/statuses/{sha}","languages_url":"https://api.github.com/repos/rubygarage/shopapp-ios/languages","stargazers_url":"https://api.github.com/repos/rubygarage/shopapp-ios/stargazers","contributors_url":"https://api.github.com/repos/rubygarage/shopapp-ios/contributors","subscribers_url":"https://api.github.com/repos/rubygarage/shopapp-ios/subscribers","subscription_url":"https://api.github.com/repos/rubygarage/shopapp-ios/subscription","commits_url":"https://api.github.com/repos/rubygarage/shopapp-ios/commits{/sha}","git_commits_url":"https://api.github.com/repos/rubygarage/shopapp-ios/git/commits{/sha}","comments_url":"https://api.github.com/repos/rubygarage/shopapp-ios/comments{/number}","issue_comment_url":"https://api.github.com/repos/rubygarage/shopapp-ios/issues/comments{/number}","contents_url":"https://api.github.com/repos/rubygarage/shopapp-ios/contents/{+path}","compare_url":"https://api.github.com/repos/rubygarage/shopapp-ios/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rubygarage/shopapp-ios/merges","archive_url":"https://api.github.com/repos/rubygarage/shopapp-ios/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rubygarage/shopapp-ios/downloads","issues_url":"https://api.github.com/repos/rubygarage/shopapp-ios/issues{/number}","pulls_url":"https://api.github.com/repos/rubygarage/shopapp-ios/pulls{/number}","milestones_url":"https://api.github.com/repos/rubygarage/shopapp-ios/milestones{/number}","notifications_url":"https://api.github.com/repos/rubygarage/shopapp-ios/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rubygarage/shopapp-ios/labels{/name}","releases_url":"https://api.github.com/repos/rubygarage/shopapp-ios/releases{/id}","deployments_url":"https://api.github.com/repos/rubygarage/shopapp-ios/deployments","created_at":"2017-10-02T15:54:24Z","updated_at":"2018-02-19T09:08:01Z","pushed_at":"2018-02-21T16:16:13Z","git_url":"git://github.com/rubygarage/shopapp-ios.git","ssh_url":"git@github.com:rubygarage/shopapp-ios.git","clone_url":"https://github.com/rubygarage/shopapp-ios.git","svn_url":"https://github.com/rubygarage/shopapp-ios","homepage":null,"size":2940,"stargazers_count":0,"watchers_count":0,"language":"Swift","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":0,"open_issues":1,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/rubygarage/shopapp-ios/pulls/107"},"html":{"href":"https://github.com/rubygarage/shopapp-ios/pull/107"},"issue":{"href":"https://api.github.com/repos/rubygarage/shopapp-ios/issues/107"},"comments":{"href":"https://api.github.com/repos/rubygarage/shopapp-ios/issues/107/comments"},"review_comments":{"href":"https://api.github.com/repos/rubygarage/shopapp-ios/pulls/107/comments"},"review_comment":{"href":"https://api.github.com/repos/rubygarage/shopapp-ios/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rubygarage/shopapp-ios/pulls/107/commits"},"statuses":{"href":"https://api.github.com/repos/rubygarage/shopapp-ios/statuses/846952294cd3e869595b3429e39c37143359d878"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"radyslavkrechet"}}