{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/fdf_42/pulls/comments/202930928","pull_request_review_id":137718638,"id":202930928,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwMjkzMDkyOA==","diff_hunk":"@@ -0,0 +1,88 @@\n+require \"rails_helper\"\n+\n+RSpec.describe Devise::RegistrationsController, type: :controller do\n+  before(:each) {@request.env[\"devise.mapping\"] = Devise.mappings[:user]}\n+\n+  describe \"GET new\" do\n+    it \"should render new template\" do\n+      get :new\n+      expect(response).to render_template :new\n+    end\n+  end\n+\n+  describe \"POST create\" do\n+    it \"should create new user\" do\n+      user_params = {\n+        user: {\n+          name: Faker::Name.name,\n+          email: Faker::Internet.email,\n+          phone: Faker::PhoneNumber.phone_number,\n+          address: Faker::Address.street_address,\n+          city: Faker::Address.city,\n+          password: \"foobar\",\n+          password_confirmation: \"foobar\"\n+        }\n+      }\n+      expect{post :create, params: user_params}.to change{User.count}.by 1\n+      expect(response).to redirect_to root_path\n+    end\n+  end\n+\n+  describe \"GET edit\" do\n+    login_user\n+\n+    it \"should render edit template\" do\n+      get :edit\n+      expect(response).to render_template :edit\n+    end\n+  end\n+\n+  describe \"PUT update\" do\n+    login_user\n+\n+    context \"invalid attributes\" do\n+      it \"should render edit template\" do\n+        user_params = {\n+          user: {\n+            name: Faker::Name.name\n+          }\n+        }\n+        put :update, params: user_params\n+        @user.reload\n+        expect(@user.name).to_not eq user_params[:user][:name]\n+        expect(response).to render_template :edit\n+      end\n+    end\n+\n+    context \"valid attributes\" do\n+      it \"should changes user attributes\" do\n+        user_params = {","path":"spec/controllers/devise_registrations_controller_spec.rb","position":59,"original_position":59,"commit_id":"54fc655144590301a45f8950e723bfa9ce858681","original_commit_id":"54fc655144590301a45f8950e723bfa9ce858681","user":{"login":"hhhhuy112","id":17910318,"node_id":"MDQ6VXNlcjE3OTEwMzE4","avatar_url":"https://avatars0.githubusercontent.com/u/17910318?v=4","gravatar_id":"","url":"https://api.github.com/users/hhhhuy112","html_url":"https://github.com/hhhhuy112","followers_url":"https://api.github.com/users/hhhhuy112/followers","following_url":"https://api.github.com/users/hhhhuy112/following{/other_user}","gists_url":"https://api.github.com/users/hhhhuy112/gists{/gist_id}","starred_url":"https://api.github.com/users/hhhhuy112/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hhhhuy112/subscriptions","organizations_url":"https://api.github.com/users/hhhhuy112/orgs","repos_url":"https://api.github.com/users/hhhhuy112/repos","events_url":"https://api.github.com/users/hhhhuy112/events{/privacy}","received_events_url":"https://api.github.com/users/hhhhuy112/received_events","type":"User","site_admin":false},"body":"Sử dụng attribute_for đi em","created_at":"2018-07-17T08:16:11Z","updated_at":"2018-07-17T08:16:19Z","html_url":"https://github.com/framgia/fdf_42/pull/23#discussion_r202930928","pull_request_url":"https://api.github.com/repos/framgia/fdf_42/pulls/23","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/framgia/fdf_42/pulls/comments/202930928"},"html":{"href":"https://github.com/framgia/fdf_42/pull/23#discussion_r202930928"},"pull_request":{"href":"https://api.github.com/repos/framgia/fdf_42/pulls/23"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/fdf_42/pulls/23","id":201854264,"node_id":"MDExOlB1bGxSZXF1ZXN0MjAxODU0MjY0","html_url":"https://github.com/framgia/fdf_42/pull/23","diff_url":"https://github.com/framgia/fdf_42/pull/23.diff","patch_url":"https://github.com/framgia/fdf_42/pull/23.patch","issue_url":"https://api.github.com/repos/framgia/fdf_42/issues/23","number":23,"state":"open","locked":false,"title":"rspec users controller","user":{"login":"ThanhNguyenUIT","id":26410511,"node_id":"MDQ6VXNlcjI2NDEwNTEx","avatar_url":"https://avatars3.githubusercontent.com/u/26410511?v=4","gravatar_id":"","url":"https://api.github.com/users/ThanhNguyenUIT","html_url":"https://github.com/ThanhNguyenUIT","followers_url":"https://api.github.com/users/ThanhNguyenUIT/followers","following_url":"https://api.github.com/users/ThanhNguyenUIT/following{/other_user}","gists_url":"https://api.github.com/users/ThanhNguyenUIT/gists{/gist_id}","starred_url":"https://api.github.com/users/ThanhNguyenUIT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ThanhNguyenUIT/subscriptions","organizations_url":"https://api.github.com/users/ThanhNguyenUIT/orgs","repos_url":"https://api.github.com/users/ThanhNguyenUIT/repos","events_url":"https://api.github.com/users/ThanhNguyenUIT/events{/privacy}","received_events_url":"https://api.github.com/users/ThanhNguyenUIT/received_events","type":"User","site_admin":false},"body":"![image](https://user-images.githubusercontent.com/26410511/42803999-d790845a-89d1-11e8-86f2-ddea58c1da99.png)\r\n","created_at":"2018-07-17T07:58:22Z","updated_at":"2018-07-17T08:16:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d3352cbeeff8238c089492603b600e7685187c99","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/framgia/fdf_42/pulls/23/commits","review_comments_url":"https://api.github.com/repos/framgia/fdf_42/pulls/23/comments","review_comment_url":"https://api.github.com/repos/framgia/fdf_42/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/fdf_42/issues/23/comments","statuses_url":"https://api.github.com/repos/framgia/fdf_42/statuses/54fc655144590301a45f8950e723bfa9ce858681","head":{"label":"ThanhNguyenUIT:rspec_controller","ref":"rspec_controller","sha":"54fc655144590301a45f8950e723bfa9ce858681","user":{"login":"ThanhNguyenUIT","id":26410511,"node_id":"MDQ6VXNlcjI2NDEwNTEx","avatar_url":"https://avatars3.githubusercontent.com/u/26410511?v=4","gravatar_id":"","url":"https://api.github.com/users/ThanhNguyenUIT","html_url":"https://github.com/ThanhNguyenUIT","followers_url":"https://api.github.com/users/ThanhNguyenUIT/followers","following_url":"https://api.github.com/users/ThanhNguyenUIT/following{/other_user}","gists_url":"https://api.github.com/users/ThanhNguyenUIT/gists{/gist_id}","starred_url":"https://api.github.com/users/ThanhNguyenUIT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ThanhNguyenUIT/subscriptions","organizations_url":"https://api.github.com/users/ThanhNguyenUIT/orgs","repos_url":"https://api.github.com/users/ThanhNguyenUIT/repos","events_url":"https://api.github.com/users/ThanhNguyenUIT/events{/privacy}","received_events_url":"https://api.github.com/users/ThanhNguyenUIT/received_events","type":"User","site_admin":false},"repo":{"id":137437160,"node_id":"MDEwOlJlcG9zaXRvcnkxMzc0MzcxNjA=","name":"fdf_42","full_name":"ThanhNguyenUIT/fdf_42","owner":{"login":"ThanhNguyenUIT","id":26410511,"node_id":"MDQ6VXNlcjI2NDEwNTEx","avatar_url":"https://avatars3.githubusercontent.com/u/26410511?v=4","gravatar_id":"","url":"https://api.github.com/users/ThanhNguyenUIT","html_url":"https://github.com/ThanhNguyenUIT","followers_url":"https://api.github.com/users/ThanhNguyenUIT/followers","following_url":"https://api.github.com/users/ThanhNguyenUIT/following{/other_user}","gists_url":"https://api.github.com/users/ThanhNguyenUIT/gists{/gist_id}","starred_url":"https://api.github.com/users/ThanhNguyenUIT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ThanhNguyenUIT/subscriptions","organizations_url":"https://api.github.com/users/ThanhNguyenUIT/orgs","repos_url":"https://api.github.com/users/ThanhNguyenUIT/repos","events_url":"https://api.github.com/users/ThanhNguyenUIT/events{/privacy}","received_events_url":"https://api.github.com/users/ThanhNguyenUIT/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ThanhNguyenUIT/fdf_42","description":null,"fork":true,"url":"https://api.github.com/repos/ThanhNguyenUIT/fdf_42","forks_url":"https://api.github.com/repos/ThanhNguyenUIT/fdf_42/forks","keys_url":"https://api.github.com/repos/ThanhNguyenUIT/fdf_42/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ThanhNguyenUIT/fdf_42/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ThanhNguyenUIT/fdf_42/teams","hooks_url":"https://api.github.com/repos/ThanhNguyenUIT/fdf_42/hooks","issue_events_url":"https://api.github.com/repos/ThanhNguyenUIT/fdf_42/issues/events{/number}","events_url":"https://api.github.com/repos/ThanhNguyenUIT/fdf_42/events","assignees_url":"https://api.github.com/repos/ThanhNguyenUIT/fdf_42/assignees{/user}","branches_url":"https://api.github.com/repos/ThanhNguyenUIT/fdf_42/branches{/branch}","tags_url":"https://api.github.com/repos/ThanhNguyenUIT/fdf_42/tags","blobs_url":"https://api.github.com/repos/ThanhNguyenUIT/fdf_42/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ThanhNguyenUIT/fdf_42/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ThanhNguyenUIT/fdf_42/git/refs{/sha}","trees_url":"https://api.github.com/repos/ThanhNguyenUIT/fdf_42/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ThanhNguyenUIT/fdf_42/statuses/{sha}","languages_url":"https://api.github.com/repos/ThanhNguyenUIT/fdf_42/languages","stargazers_url":"https://api.github.com/repos/ThanhNguyenUIT/fdf_42/stargazers","contributors_url":"https://api.github.com/repos/ThanhNguyenUIT/fdf_42/contributors","subscribers_url":"https://api.github.com/repos/ThanhNguyenUIT/fdf_42/subscribers","subscription_url":"https://api.github.com/repos/ThanhNguyenUIT/fdf_42/subscription","commits_url":"https://api.github.com/repos/ThanhNguyenUIT/fdf_42/commits{/sha}","git_commits_url":"https://api.github.com/repos/ThanhNguyenUIT/fdf_42/git/commits{/sha}","comments_url":"https://api.github.com/repos/ThanhNguyenUIT/fdf_42/comments{/number}","issue_comment_url":"https://api.github.com/repos/ThanhNguyenUIT/fdf_42/issues/comments{/number}","contents_url":"https://api.github.com/repos/ThanhNguyenUIT/fdf_42/contents/{+path}","compare_url":"https://api.github.com/repos/ThanhNguyenUIT/fdf_42/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ThanhNguyenUIT/fdf_42/merges","archive_url":"https://api.github.com/repos/ThanhNguyenUIT/fdf_42/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ThanhNguyenUIT/fdf_42/downloads","issues_url":"https://api.github.com/repos/ThanhNguyenUIT/fdf_42/issues{/number}","pulls_url":"https://api.github.com/repos/ThanhNguyenUIT/fdf_42/pulls{/number}","milestones_url":"https://api.github.com/repos/ThanhNguyenUIT/fdf_42/milestones{/number}","notifications_url":"https://api.github.com/repos/ThanhNguyenUIT/fdf_42/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ThanhNguyenUIT/fdf_42/labels{/name}","releases_url":"https://api.github.com/repos/ThanhNguyenUIT/fdf_42/releases{/id}","deployments_url":"https://api.github.com/repos/ThanhNguyenUIT/fdf_42/deployments","created_at":"2018-06-15T03:32:46Z","updated_at":"2018-06-15T03:32:48Z","pushed_at":"2018-07-17T07:56:09Z","git_url":"git://github.com/ThanhNguyenUIT/fdf_42.git","ssh_url":"git@github.com:ThanhNguyenUIT/fdf_42.git","clone_url":"https://github.com/ThanhNguyenUIT/fdf_42.git","svn_url":"https://github.com/ThanhNguyenUIT/fdf_42","homepage":null,"size":192,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"framgia:rails_advance2","ref":"rails_advance2","sha":"536fe3af645633de3483538b94ffc4a035239c03","user":{"login":"framgia","id":2322183,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIzMjIxODM=","avatar_url":"https://avatars3.githubusercontent.com/u/2322183?v=4","gravatar_id":"","url":"https://api.github.com/users/framgia","html_url":"https://github.com/framgia","followers_url":"https://api.github.com/users/framgia/followers","following_url":"https://api.github.com/users/framgia/following{/other_user}","gists_url":"https://api.github.com/users/framgia/gists{/gist_id}","starred_url":"https://api.github.com/users/framgia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/framgia/subscriptions","organizations_url":"https://api.github.com/users/framgia/orgs","repos_url":"https://api.github.com/users/framgia/repos","events_url":"https://api.github.com/users/framgia/events{/privacy}","received_events_url":"https://api.github.com/users/framgia/received_events","type":"Organization","site_admin":false},"repo":{"id":136576456,"node_id":"MDEwOlJlcG9zaXRvcnkxMzY1NzY0NTY=","name":"fdf_42","full_name":"framgia/fdf_42","owner":{"login":"framgia","id":2322183,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIzMjIxODM=","avatar_url":"https://avatars3.githubusercontent.com/u/2322183?v=4","gravatar_id":"","url":"https://api.github.com/users/framgia","html_url":"https://github.com/framgia","followers_url":"https://api.github.com/users/framgia/followers","following_url":"https://api.github.com/users/framgia/following{/other_user}","gists_url":"https://api.github.com/users/framgia/gists{/gist_id}","starred_url":"https://api.github.com/users/framgia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/framgia/subscriptions","organizations_url":"https://api.github.com/users/framgia/orgs","repos_url":"https://api.github.com/users/framgia/repos","events_url":"https://api.github.com/users/framgia/events{/privacy}","received_events_url":"https://api.github.com/users/framgia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/framgia/fdf_42","description":null,"fork":false,"url":"https://api.github.com/repos/framgia/fdf_42","forks_url":"https://api.github.com/repos/framgia/fdf_42/forks","keys_url":"https://api.github.com/repos/framgia/fdf_42/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/fdf_42/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/fdf_42/teams","hooks_url":"https://api.github.com/repos/framgia/fdf_42/hooks","issue_events_url":"https://api.github.com/repos/framgia/fdf_42/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/fdf_42/events","assignees_url":"https://api.github.com/repos/framgia/fdf_42/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/fdf_42/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/fdf_42/tags","blobs_url":"https://api.github.com/repos/framgia/fdf_42/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/fdf_42/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/fdf_42/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/fdf_42/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/fdf_42/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/fdf_42/languages","stargazers_url":"https://api.github.com/repos/framgia/fdf_42/stargazers","contributors_url":"https://api.github.com/repos/framgia/fdf_42/contributors","subscribers_url":"https://api.github.com/repos/framgia/fdf_42/subscribers","subscription_url":"https://api.github.com/repos/framgia/fdf_42/subscription","commits_url":"https://api.github.com/repos/framgia/fdf_42/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/fdf_42/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/fdf_42/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/fdf_42/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/fdf_42/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/fdf_42/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/fdf_42/merges","archive_url":"https://api.github.com/repos/framgia/fdf_42/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/fdf_42/downloads","issues_url":"https://api.github.com/repos/framgia/fdf_42/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/fdf_42/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/fdf_42/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/fdf_42/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/fdf_42/labels{/name}","releases_url":"https://api.github.com/repos/framgia/fdf_42/releases{/id}","deployments_url":"https://api.github.com/repos/framgia/fdf_42/deployments","created_at":"2018-06-08T06:30:31Z","updated_at":"2018-06-29T07:11:59Z","pushed_at":"2018-07-17T07:58:23Z","git_url":"git://github.com/framgia/fdf_42.git","ssh_url":"git@github.com:framgia/fdf_42.git","clone_url":"https://github.com/framgia/fdf_42.git","svn_url":"https://github.com/framgia/fdf_42","homepage":null,"size":193,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":2,"open_issues":1,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/framgia/fdf_42/pulls/23"},"html":{"href":"https://github.com/framgia/fdf_42/pull/23"},"issue":{"href":"https://api.github.com/repos/framgia/fdf_42/issues/23"},"comments":{"href":"https://api.github.com/repos/framgia/fdf_42/issues/23/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/fdf_42/pulls/23/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/fdf_42/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/fdf_42/pulls/23/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/fdf_42/statuses/54fc655144590301a45f8950e723bfa9ce858681"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"hhhhuy112"}}