{"action":"created","comment":{"url":"https://api.github.com/repos/blueskybroadcast/scorm_cloud_client/pulls/comments/87008824","pull_request_review_id":7637780,"id":87008824,"diff_hunk":"@@ -22,4 +22,77 @@\n       expect(subject.send(:get_course_list)).to be_eql(result)\n     end\n   end\n+\n+  describe '#import_course_async' do\n+    subject { FactoryGirl.build(:course_response, specified_path: 'course/import_course_async.xml') }\n+    let(:result) do\n+      { token: 'superman_2128' }\n+    end\n+\n+    it 'returns import token' do\n+      expect(subject.send(:import_course_async)).to be_eql(result)\n+    end\n+  end\n+\n+  describe '#get_async_import_result' do\n+    context 'when process is finished' do\n+      subject { FactoryGirl.build(:course_response, specified_path: 'course/get_async_import_result/finished.xml') }\n+      let(:result) do\n+        {\n+          status: 'finished',\n+          success: true,\n+          title: 'Photoshop Example -- Competency',\n+          message: 'Import Successful'\n+        }\n+      end\n+\n+      it 'returns info about finished import' do\n+        expect(subject.send(:get_async_import_result)).to be_eql(result)\n+      end\n+    end\n+\n+    context 'when process is still running' do\n+      subject { FactoryGirl.build(:course_response, specified_path: 'course/get_async_import_result/running.xml') }\n+      let(:result) do\n+        {\n+          status: 'running',\n+          success: false,\n+          title: nil,\n+          message: 'Unpacking Course Files...'\n+        }\n+      end\n+\n+      it 'returns info about running import' do\n+        expect(subject.send(:get_async_import_result)).to be_eql(result)\n+      end\n+    end\n+\n+    context 'when process is failed' do\n+      subject { FactoryGirl.build(:course_response, specified_path: 'course/get_async_import_result/error.xml') }\n+      let(:result) do\n+        {\n+          status: 'error',","path":"spec/scorm_cloud_client/responses/course_spec.rb","position":53,"original_position":53,"commit_id":"63a86599cf93e7941a435d15cb4a6ba8af36087c","original_commit_id":"63a86599cf93e7941a435d15cb4a6ba8af36087c","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.","created_at":"2016-11-08T15:16:01Z","updated_at":"2016-11-08T15:16:01Z","html_url":"https://github.com/blueskybroadcast/scorm_cloud_client/pull/2#discussion_r87008824","pull_request_url":"https://api.github.com/repos/blueskybroadcast/scorm_cloud_client/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/blueskybroadcast/scorm_cloud_client/pulls/comments/87008824"},"html":{"href":"https://github.com/blueskybroadcast/scorm_cloud_client/pull/2#discussion_r87008824"},"pull_request":{"href":"https://api.github.com/repos/blueskybroadcast/scorm_cloud_client/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/blueskybroadcast/scorm_cloud_client/pulls/2","id":92796769,"html_url":"https://github.com/blueskybroadcast/scorm_cloud_client/pull/2","diff_url":"https://github.com/blueskybroadcast/scorm_cloud_client/pull/2.diff","patch_url":"https://github.com/blueskybroadcast/scorm_cloud_client/pull/2.patch","issue_url":"https://api.github.com/repos/blueskybroadcast/scorm_cloud_client/issues/2","number":2,"state":"open","locked":false,"title":"AD #1235 Add async version of import functionality","user":{"login":"Dulenchik","id":2203245,"avatar_url":"https://avatars.githubusercontent.com/u/2203245?v=3","gravatar_id":"","url":"https://api.github.com/users/Dulenchik","html_url":"https://github.com/Dulenchik","followers_url":"https://api.github.com/users/Dulenchik/followers","following_url":"https://api.github.com/users/Dulenchik/following{/other_user}","gists_url":"https://api.github.com/users/Dulenchik/gists{/gist_id}","starred_url":"https://api.github.com/users/Dulenchik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dulenchik/subscriptions","organizations_url":"https://api.github.com/users/Dulenchik/orgs","repos_url":"https://api.github.com/users/Dulenchik/repos","events_url":"https://api.github.com/users/Dulenchik/events{/privacy}","received_events_url":"https://api.github.com/users/Dulenchik/received_events","type":"User","site_admin":false},"body":"https://trello.com/c/8y86OVeo","created_at":"2016-11-08T15:15:45Z","updated_at":"2016-11-08T15:16:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"05ed1897595e01e6aac1469a45dde4595a1a7f46","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/blueskybroadcast/scorm_cloud_client/pulls/2/commits","review_comments_url":"https://api.github.com/repos/blueskybroadcast/scorm_cloud_client/pulls/2/comments","review_comment_url":"https://api.github.com/repos/blueskybroadcast/scorm_cloud_client/pulls/comments{/number}","comments_url":"https://api.github.com/repos/blueskybroadcast/scorm_cloud_client/issues/2/comments","statuses_url":"https://api.github.com/repos/blueskybroadcast/scorm_cloud_client/statuses/63a86599cf93e7941a435d15cb4a6ba8af36087c","head":{"label":"blueskybroadcast:ad-implement-async-import","ref":"ad-implement-async-import","sha":"63a86599cf93e7941a435d15cb4a6ba8af36087c","user":{"login":"blueskybroadcast","id":4744696,"avatar_url":"https://avatars.githubusercontent.com/u/4744696?v=3","gravatar_id":"","url":"https://api.github.com/users/blueskybroadcast","html_url":"https://github.com/blueskybroadcast","followers_url":"https://api.github.com/users/blueskybroadcast/followers","following_url":"https://api.github.com/users/blueskybroadcast/following{/other_user}","gists_url":"https://api.github.com/users/blueskybroadcast/gists{/gist_id}","starred_url":"https://api.github.com/users/blueskybroadcast/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blueskybroadcast/subscriptions","organizations_url":"https://api.github.com/users/blueskybroadcast/orgs","repos_url":"https://api.github.com/users/blueskybroadcast/repos","events_url":"https://api.github.com/users/blueskybroadcast/events{/privacy}","received_events_url":"https://api.github.com/users/blueskybroadcast/received_events","type":"Organization","site_admin":false},"repo":{"id":41419473,"name":"scorm_cloud_client","full_name":"blueskybroadcast/scorm_cloud_client","owner":{"login":"blueskybroadcast","id":4744696,"avatar_url":"https://avatars.githubusercontent.com/u/4744696?v=3","gravatar_id":"","url":"https://api.github.com/users/blueskybroadcast","html_url":"https://github.com/blueskybroadcast","followers_url":"https://api.github.com/users/blueskybroadcast/followers","following_url":"https://api.github.com/users/blueskybroadcast/following{/other_user}","gists_url":"https://api.github.com/users/blueskybroadcast/gists{/gist_id}","starred_url":"https://api.github.com/users/blueskybroadcast/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blueskybroadcast/subscriptions","organizations_url":"https://api.github.com/users/blueskybroadcast/orgs","repos_url":"https://api.github.com/users/blueskybroadcast/repos","events_url":"https://api.github.com/users/blueskybroadcast/events{/privacy}","received_events_url":"https://api.github.com/users/blueskybroadcast/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/blueskybroadcast/scorm_cloud_client","description":"Updated client for SCORM Cloud","fork":false,"url":"https://api.github.com/repos/blueskybroadcast/scorm_cloud_client","forks_url":"https://api.github.com/repos/blueskybroadcast/scorm_cloud_client/forks","keys_url":"https://api.github.com/repos/blueskybroadcast/scorm_cloud_client/keys{/key_id}","collaborators_url":"https://api.github.com/repos/blueskybroadcast/scorm_cloud_client/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/blueskybroadcast/scorm_cloud_client/teams","hooks_url":"https://api.github.com/repos/blueskybroadcast/scorm_cloud_client/hooks","issue_events_url":"https://api.github.com/repos/blueskybroadcast/scorm_cloud_client/issues/events{/number}","events_url":"https://api.github.com/repos/blueskybroadcast/scorm_cloud_client/events","assignees_url":"https://api.github.com/repos/blueskybroadcast/scorm_cloud_client/assignees{/user}","branches_url":"https://api.github.com/repos/blueskybroadcast/scorm_cloud_client/branches{/branch}","tags_url":"https://api.github.com/repos/blueskybroadcast/scorm_cloud_client/tags","blobs_url":"https://api.github.com/repos/blueskybroadcast/scorm_cloud_client/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/blueskybroadcast/scorm_cloud_client/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/blueskybroadcast/scorm_cloud_client/git/refs{/sha}","trees_url":"https://api.github.com/repos/blueskybroadcast/scorm_cloud_client/git/trees{/sha}","statuses_url":"https://api.github.com/repos/blueskybroadcast/scorm_cloud_client/statuses/{sha}","languages_url":"https://api.github.com/repos/blueskybroadcast/scorm_cloud_client/languages","stargazers_url":"https://api.github.com/repos/blueskybroadcast/scorm_cloud_client/stargazers","contributors_url":"https://api.github.com/repos/blueskybroadcast/scorm_cloud_client/contributors","subscribers_url":"https://api.github.com/repos/blueskybroadcast/scorm_cloud_client/subscribers","subscription_url":"https://api.github.com/repos/blueskybroadcast/scorm_cloud_client/subscription","commits_url":"https://api.github.com/repos/blueskybroadcast/scorm_cloud_client/commits{/sha}","git_commits_url":"https://api.github.com/repos/blueskybroadcast/scorm_cloud_client/git/commits{/sha}","comments_url":"https://api.github.com/repos/blueskybroadcast/scorm_cloud_client/comments{/number}","issue_comment_url":"https://api.github.com/repos/blueskybroadcast/scorm_cloud_client/issues/comments{/number}","contents_url":"https://api.github.com/repos/blueskybroadcast/scorm_cloud_client/contents/{+path}","compare_url":"https://api.github.com/repos/blueskybroadcast/scorm_cloud_client/compare/{base}...{head}","merges_url":"https://api.github.com/repos/blueskybroadcast/scorm_cloud_client/merges","archive_url":"https://api.github.com/repos/blueskybroadcast/scorm_cloud_client/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/blueskybroadcast/scorm_cloud_client/downloads","issues_url":"https://api.github.com/repos/blueskybroadcast/scorm_cloud_client/issues{/number}","pulls_url":"https://api.github.com/repos/blueskybroadcast/scorm_cloud_client/pulls{/number}","milestones_url":"https://api.github.com/repos/blueskybroadcast/scorm_cloud_client/milestones{/number}","notifications_url":"https://api.github.com/repos/blueskybroadcast/scorm_cloud_client/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/blueskybroadcast/scorm_cloud_client/labels{/name}","releases_url":"https://api.github.com/repos/blueskybroadcast/scorm_cloud_client/releases{/id}","deployments_url":"https://api.github.com/repos/blueskybroadcast/scorm_cloud_client/deployments","created_at":"2015-08-26T10:24:31Z","updated_at":"2015-08-26T10:25:06Z","pushed_at":"2016-11-08T15:15:45Z","git_url":"git://github.com/blueskybroadcast/scorm_cloud_client.git","ssh_url":"git@github.com:blueskybroadcast/scorm_cloud_client.git","clone_url":"https://github.com/blueskybroadcast/scorm_cloud_client.git","svn_url":"https://github.com/blueskybroadcast/scorm_cloud_client","homepage":null,"size":23,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"blueskybroadcast:master","ref":"master","sha":"9d4daaa542e72ef5613d3c170d2988c890b67f40","user":{"login":"blueskybroadcast","id":4744696,"avatar_url":"https://avatars.githubusercontent.com/u/4744696?v=3","gravatar_id":"","url":"https://api.github.com/users/blueskybroadcast","html_url":"https://github.com/blueskybroadcast","followers_url":"https://api.github.com/users/blueskybroadcast/followers","following_url":"https://api.github.com/users/blueskybroadcast/following{/other_user}","gists_url":"https://api.github.com/users/blueskybroadcast/gists{/gist_id}","starred_url":"https://api.github.com/users/blueskybroadcast/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blueskybroadcast/subscriptions","organizations_url":"https://api.github.com/users/blueskybroadcast/orgs","repos_url":"https://api.github.com/users/blueskybroadcast/repos","events_url":"https://api.github.com/users/blueskybroadcast/events{/privacy}","received_events_url":"https://api.github.com/users/blueskybroadcast/received_events","type":"Organization","site_admin":false},"repo":{"id":41419473,"name":"scorm_cloud_client","full_name":"blueskybroadcast/scorm_cloud_client","owner":{"login":"blueskybroadcast","id":4744696,"avatar_url":"https://avatars.githubusercontent.com/u/4744696?v=3","gravatar_id":"","url":"https://api.github.com/users/blueskybroadcast","html_url":"https://github.com/blueskybroadcast","followers_url":"https://api.github.com/users/blueskybroadcast/followers","following_url":"https://api.github.com/users/blueskybroadcast/following{/other_user}","gists_url":"https://api.github.com/users/blueskybroadcast/gists{/gist_id}","starred_url":"https://api.github.com/users/blueskybroadcast/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blueskybroadcast/subscriptions","organizations_url":"https://api.github.com/users/blueskybroadcast/orgs","repos_url":"https://api.github.com/users/blueskybroadcast/repos","events_url":"https://api.github.com/users/blueskybroadcast/events{/privacy}","received_events_url":"https://api.github.com/users/blueskybroadcast/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/blueskybroadcast/scorm_cloud_client","description":"Updated client for SCORM Cloud","fork":false,"url":"https://api.github.com/repos/blueskybroadcast/scorm_cloud_client","forks_url":"https://api.github.com/repos/blueskybroadcast/scorm_cloud_client/forks","keys_url":"https://api.github.com/repos/blueskybroadcast/scorm_cloud_client/keys{/key_id}","collaborators_url":"https://api.github.com/repos/blueskybroadcast/scorm_cloud_client/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/blueskybroadcast/scorm_cloud_client/teams","hooks_url":"https://api.github.com/repos/blueskybroadcast/scorm_cloud_client/hooks","issue_events_url":"https://api.github.com/repos/blueskybroadcast/scorm_cloud_client/issues/events{/number}","events_url":"https://api.github.com/repos/blueskybroadcast/scorm_cloud_client/events","assignees_url":"https://api.github.com/repos/blueskybroadcast/scorm_cloud_client/assignees{/user}","branches_url":"https://api.github.com/repos/blueskybroadcast/scorm_cloud_client/branches{/branch}","tags_url":"https://api.github.com/repos/blueskybroadcast/scorm_cloud_client/tags","blobs_url":"https://api.github.com/repos/blueskybroadcast/scorm_cloud_client/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/blueskybroadcast/scorm_cloud_client/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/blueskybroadcast/scorm_cloud_client/git/refs{/sha}","trees_url":"https://api.github.com/repos/blueskybroadcast/scorm_cloud_client/git/trees{/sha}","statuses_url":"https://api.github.com/repos/blueskybroadcast/scorm_cloud_client/statuses/{sha}","languages_url":"https://api.github.com/repos/blueskybroadcast/scorm_cloud_client/languages","stargazers_url":"https://api.github.com/repos/blueskybroadcast/scorm_cloud_client/stargazers","contributors_url":"https://api.github.com/repos/blueskybroadcast/scorm_cloud_client/contributors","subscribers_url":"https://api.github.com/repos/blueskybroadcast/scorm_cloud_client/subscribers","subscription_url":"https://api.github.com/repos/blueskybroadcast/scorm_cloud_client/subscription","commits_url":"https://api.github.com/repos/blueskybroadcast/scorm_cloud_client/commits{/sha}","git_commits_url":"https://api.github.com/repos/blueskybroadcast/scorm_cloud_client/git/commits{/sha}","comments_url":"https://api.github.com/repos/blueskybroadcast/scorm_cloud_client/comments{/number}","issue_comment_url":"https://api.github.com/repos/blueskybroadcast/scorm_cloud_client/issues/comments{/number}","contents_url":"https://api.github.com/repos/blueskybroadcast/scorm_cloud_client/contents/{+path}","compare_url":"https://api.github.com/repos/blueskybroadcast/scorm_cloud_client/compare/{base}...{head}","merges_url":"https://api.github.com/repos/blueskybroadcast/scorm_cloud_client/merges","archive_url":"https://api.github.com/repos/blueskybroadcast/scorm_cloud_client/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/blueskybroadcast/scorm_cloud_client/downloads","issues_url":"https://api.github.com/repos/blueskybroadcast/scorm_cloud_client/issues{/number}","pulls_url":"https://api.github.com/repos/blueskybroadcast/scorm_cloud_client/pulls{/number}","milestones_url":"https://api.github.com/repos/blueskybroadcast/scorm_cloud_client/milestones{/number}","notifications_url":"https://api.github.com/repos/blueskybroadcast/scorm_cloud_client/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/blueskybroadcast/scorm_cloud_client/labels{/name}","releases_url":"https://api.github.com/repos/blueskybroadcast/scorm_cloud_client/releases{/id}","deployments_url":"https://api.github.com/repos/blueskybroadcast/scorm_cloud_client/deployments","created_at":"2015-08-26T10:24:31Z","updated_at":"2015-08-26T10:25:06Z","pushed_at":"2016-11-08T15:15:45Z","git_url":"git://github.com/blueskybroadcast/scorm_cloud_client.git","ssh_url":"git@github.com:blueskybroadcast/scorm_cloud_client.git","clone_url":"https://github.com/blueskybroadcast/scorm_cloud_client.git","svn_url":"https://github.com/blueskybroadcast/scorm_cloud_client","homepage":null,"size":23,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/blueskybroadcast/scorm_cloud_client/pulls/2"},"html":{"href":"https://github.com/blueskybroadcast/scorm_cloud_client/pull/2"},"issue":{"href":"https://api.github.com/repos/blueskybroadcast/scorm_cloud_client/issues/2"},"comments":{"href":"https://api.github.com/repos/blueskybroadcast/scorm_cloud_client/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/blueskybroadcast/scorm_cloud_client/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/blueskybroadcast/scorm_cloud_client/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/blueskybroadcast/scorm_cloud_client/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/blueskybroadcast/scorm_cloud_client/statuses/63a86599cf93e7941a435d15cb4a6ba8af36087c"}}}}
{"actor":{"display_login":"houndci-bot"}}