{"action":"created","comment":{"url":"https://api.github.com/repos/benoittgt/SmsSpree/pulls/comments/25444214","id":25444214,"diff_hunk":"@@ -0,0 +1,27 @@\n+require 'rails_helper'\n+\n+RSpec.describe ParticipantsController, type: :controller do\n+  describe \"When testing the Participant controller\" do\n+    it \"it should success when getting new\" do\n+      get :new\n+      expect(response).to render_template(:new)\n+    end\n+\n+    it \"it should return name and phone with a zero used starting\" do\n+      post :create, participant: { name: \"Hafid\", phonenumber: \"0688767868\" }\n+      expect(flash[:notice]).to be_present\n+      expect(Participant.first.name).to eq(\"Hafid\")\n+      expect(Participant.first.phonenumber).to eq(\"0688767868\")\n+      expect(response).to redirect_to(root_path)\n+    end\n+\n+    it \"it should return name and phone without a zero used\" do\n+      post :create, participant: { name: \"Bernard\", phonenumber: \"3688767868\" }\n+      expect(flash[:notice]).to be_present\n+      expect(Participant.first.name).to eq(\"Bernard\")\n+      expect(Participant.first.phonenumber).to eq(\"3688767868\")\n+      expect(response).to redirect_to(root_path)\n+    end\n+","path":"spec/controllers/participants_controller_spec.rb","position":25,"original_position":25,"commit_id":"8006a11c7a3750de521dca5e9f610edb3031a496","original_commit_id":"8006a11c7a3750de521dca5e9f610edb3031a496","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Extra empty line detected at block body end.","created_at":"2015-02-26T17:06:05Z","updated_at":"2015-02-26T17:06:05Z","html_url":"https://github.com/benoittgt/SmsSpree/pull/2#discussion_r25444214","pull_request_url":"https://api.github.com/repos/benoittgt/SmsSpree/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/benoittgt/SmsSpree/pulls/comments/25444214"},"html":{"href":"https://github.com/benoittgt/SmsSpree/pull/2#discussion_r25444214"},"pull_request":{"href":"https://api.github.com/repos/benoittgt/SmsSpree/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/benoittgt/SmsSpree/pulls/2","id":30095978,"html_url":"https://github.com/benoittgt/SmsSpree/pull/2","diff_url":"https://github.com/benoittgt/SmsSpree/pull/2.diff","patch_url":"https://github.com/benoittgt/SmsSpree/pull/2.patch","issue_url":"https://api.github.com/repos/benoittgt/SmsSpree/issues/2","number":2,"state":"open","locked":false,"title":"Rspec swith tests fails","user":{"login":"benoittgt","id":8417720,"avatar_url":"https://avatars.githubusercontent.com/u/8417720?v=3","gravatar_id":"","url":"https://api.github.com/users/benoittgt","html_url":"https://github.com/benoittgt","followers_url":"https://api.github.com/users/benoittgt/followers","following_url":"https://api.github.com/users/benoittgt/following{/other_user}","gists_url":"https://api.github.com/users/benoittgt/gists{/gist_id}","starred_url":"https://api.github.com/users/benoittgt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benoittgt/subscriptions","organizations_url":"https://api.github.com/users/benoittgt/orgs","repos_url":"https://api.github.com/users/benoittgt/repos","events_url":"https://api.github.com/users/benoittgt/events{/privacy}","received_events_url":"https://api.github.com/users/benoittgt/received_events","type":"User","site_admin":false},"body":"* Postgres trim leading zero @yaf ?\r\n* Don't understand why the second test crash too. I should used\r\nfabrication for my object maybe. It doesn't seem I can use `Participant.first` twice ?","created_at":"2015-02-26T17:06:01Z","updated_at":"2015-02-26T17:06:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e8f301d27c7c2dea015f4b75055509c7d9e2b545","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/benoittgt/SmsSpree/pulls/2/commits","review_comments_url":"https://api.github.com/repos/benoittgt/SmsSpree/pulls/2/comments","review_comment_url":"https://api.github.com/repos/benoittgt/SmsSpree/pulls/comments{/number}","comments_url":"https://api.github.com/repos/benoittgt/SmsSpree/issues/2/comments","statuses_url":"https://api.github.com/repos/benoittgt/SmsSpree/statuses/8006a11c7a3750de521dca5e9f610edb3031a496","head":{"label":"benoittgt:rspec_switch","ref":"rspec_switch","sha":"8006a11c7a3750de521dca5e9f610edb3031a496","user":{"login":"benoittgt","id":8417720,"avatar_url":"https://avatars.githubusercontent.com/u/8417720?v=3","gravatar_id":"","url":"https://api.github.com/users/benoittgt","html_url":"https://github.com/benoittgt","followers_url":"https://api.github.com/users/benoittgt/followers","following_url":"https://api.github.com/users/benoittgt/following{/other_user}","gists_url":"https://api.github.com/users/benoittgt/gists{/gist_id}","starred_url":"https://api.github.com/users/benoittgt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benoittgt/subscriptions","organizations_url":"https://api.github.com/users/benoittgt/orgs","repos_url":"https://api.github.com/users/benoittgt/repos","events_url":"https://api.github.com/users/benoittgt/events{/privacy}","received_events_url":"https://api.github.com/users/benoittgt/received_events","type":"User","site_admin":false},"repo":{"id":31337015,"name":"SmsSpree","full_name":"benoittgt/SmsSpree","owner":{"login":"benoittgt","id":8417720,"avatar_url":"https://avatars.githubusercontent.com/u/8417720?v=3","gravatar_id":"","url":"https://api.github.com/users/benoittgt","html_url":"https://github.com/benoittgt","followers_url":"https://api.github.com/users/benoittgt/followers","following_url":"https://api.github.com/users/benoittgt/following{/other_user}","gists_url":"https://api.github.com/users/benoittgt/gists{/gist_id}","starred_url":"https://api.github.com/users/benoittgt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benoittgt/subscriptions","organizations_url":"https://api.github.com/users/benoittgt/orgs","repos_url":"https://api.github.com/users/benoittgt/repos","events_url":"https://api.github.com/users/benoittgt/events{/privacy}","received_events_url":"https://api.github.com/users/benoittgt/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/benoittgt/SmsSpree","description":"SmsSpree is the Sms ListServe version","fork":false,"url":"https://api.github.com/repos/benoittgt/SmsSpree","forks_url":"https://api.github.com/repos/benoittgt/SmsSpree/forks","keys_url":"https://api.github.com/repos/benoittgt/SmsSpree/keys{/key_id}","collaborators_url":"https://api.github.com/repos/benoittgt/SmsSpree/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/benoittgt/SmsSpree/teams","hooks_url":"https://api.github.com/repos/benoittgt/SmsSpree/hooks","issue_events_url":"https://api.github.com/repos/benoittgt/SmsSpree/issues/events{/number}","events_url":"https://api.github.com/repos/benoittgt/SmsSpree/events","assignees_url":"https://api.github.com/repos/benoittgt/SmsSpree/assignees{/user}","branches_url":"https://api.github.com/repos/benoittgt/SmsSpree/branches{/branch}","tags_url":"https://api.github.com/repos/benoittgt/SmsSpree/tags","blobs_url":"https://api.github.com/repos/benoittgt/SmsSpree/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/benoittgt/SmsSpree/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/benoittgt/SmsSpree/git/refs{/sha}","trees_url":"https://api.github.com/repos/benoittgt/SmsSpree/git/trees{/sha}","statuses_url":"https://api.github.com/repos/benoittgt/SmsSpree/statuses/{sha}","languages_url":"https://api.github.com/repos/benoittgt/SmsSpree/languages","stargazers_url":"https://api.github.com/repos/benoittgt/SmsSpree/stargazers","contributors_url":"https://api.github.com/repos/benoittgt/SmsSpree/contributors","subscribers_url":"https://api.github.com/repos/benoittgt/SmsSpree/subscribers","subscription_url":"https://api.github.com/repos/benoittgt/SmsSpree/subscription","commits_url":"https://api.github.com/repos/benoittgt/SmsSpree/commits{/sha}","git_commits_url":"https://api.github.com/repos/benoittgt/SmsSpree/git/commits{/sha}","comments_url":"https://api.github.com/repos/benoittgt/SmsSpree/comments{/number}","issue_comment_url":"https://api.github.com/repos/benoittgt/SmsSpree/issues/comments{/number}","contents_url":"https://api.github.com/repos/benoittgt/SmsSpree/contents/{+path}","compare_url":"https://api.github.com/repos/benoittgt/SmsSpree/compare/{base}...{head}","merges_url":"https://api.github.com/repos/benoittgt/SmsSpree/merges","archive_url":"https://api.github.com/repos/benoittgt/SmsSpree/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/benoittgt/SmsSpree/downloads","issues_url":"https://api.github.com/repos/benoittgt/SmsSpree/issues{/number}","pulls_url":"https://api.github.com/repos/benoittgt/SmsSpree/pulls{/number}","milestones_url":"https://api.github.com/repos/benoittgt/SmsSpree/milestones{/number}","notifications_url":"https://api.github.com/repos/benoittgt/SmsSpree/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/benoittgt/SmsSpree/labels{/name}","releases_url":"https://api.github.com/repos/benoittgt/SmsSpree/releases{/id}","created_at":"2015-02-25T21:36:30Z","updated_at":"2015-02-26T16:16:58Z","pushed_at":"2015-02-26T17:04:39Z","git_url":"git://github.com/benoittgt/SmsSpree.git","ssh_url":"git@github.com:benoittgt/SmsSpree.git","clone_url":"https://github.com/benoittgt/SmsSpree.git","svn_url":"https://github.com/benoittgt/SmsSpree","homepage":"","size":0,"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":"benoittgt:master","ref":"master","sha":"3631c677ce762e15a7e489acaab6e5cc4c7e828a","user":{"login":"benoittgt","id":8417720,"avatar_url":"https://avatars.githubusercontent.com/u/8417720?v=3","gravatar_id":"","url":"https://api.github.com/users/benoittgt","html_url":"https://github.com/benoittgt","followers_url":"https://api.github.com/users/benoittgt/followers","following_url":"https://api.github.com/users/benoittgt/following{/other_user}","gists_url":"https://api.github.com/users/benoittgt/gists{/gist_id}","starred_url":"https://api.github.com/users/benoittgt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benoittgt/subscriptions","organizations_url":"https://api.github.com/users/benoittgt/orgs","repos_url":"https://api.github.com/users/benoittgt/repos","events_url":"https://api.github.com/users/benoittgt/events{/privacy}","received_events_url":"https://api.github.com/users/benoittgt/received_events","type":"User","site_admin":false},"repo":{"id":31337015,"name":"SmsSpree","full_name":"benoittgt/SmsSpree","owner":{"login":"benoittgt","id":8417720,"avatar_url":"https://avatars.githubusercontent.com/u/8417720?v=3","gravatar_id":"","url":"https://api.github.com/users/benoittgt","html_url":"https://github.com/benoittgt","followers_url":"https://api.github.com/users/benoittgt/followers","following_url":"https://api.github.com/users/benoittgt/following{/other_user}","gists_url":"https://api.github.com/users/benoittgt/gists{/gist_id}","starred_url":"https://api.github.com/users/benoittgt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benoittgt/subscriptions","organizations_url":"https://api.github.com/users/benoittgt/orgs","repos_url":"https://api.github.com/users/benoittgt/repos","events_url":"https://api.github.com/users/benoittgt/events{/privacy}","received_events_url":"https://api.github.com/users/benoittgt/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/benoittgt/SmsSpree","description":"SmsSpree is the Sms ListServe version","fork":false,"url":"https://api.github.com/repos/benoittgt/SmsSpree","forks_url":"https://api.github.com/repos/benoittgt/SmsSpree/forks","keys_url":"https://api.github.com/repos/benoittgt/SmsSpree/keys{/key_id}","collaborators_url":"https://api.github.com/repos/benoittgt/SmsSpree/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/benoittgt/SmsSpree/teams","hooks_url":"https://api.github.com/repos/benoittgt/SmsSpree/hooks","issue_events_url":"https://api.github.com/repos/benoittgt/SmsSpree/issues/events{/number}","events_url":"https://api.github.com/repos/benoittgt/SmsSpree/events","assignees_url":"https://api.github.com/repos/benoittgt/SmsSpree/assignees{/user}","branches_url":"https://api.github.com/repos/benoittgt/SmsSpree/branches{/branch}","tags_url":"https://api.github.com/repos/benoittgt/SmsSpree/tags","blobs_url":"https://api.github.com/repos/benoittgt/SmsSpree/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/benoittgt/SmsSpree/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/benoittgt/SmsSpree/git/refs{/sha}","trees_url":"https://api.github.com/repos/benoittgt/SmsSpree/git/trees{/sha}","statuses_url":"https://api.github.com/repos/benoittgt/SmsSpree/statuses/{sha}","languages_url":"https://api.github.com/repos/benoittgt/SmsSpree/languages","stargazers_url":"https://api.github.com/repos/benoittgt/SmsSpree/stargazers","contributors_url":"https://api.github.com/repos/benoittgt/SmsSpree/contributors","subscribers_url":"https://api.github.com/repos/benoittgt/SmsSpree/subscribers","subscription_url":"https://api.github.com/repos/benoittgt/SmsSpree/subscription","commits_url":"https://api.github.com/repos/benoittgt/SmsSpree/commits{/sha}","git_commits_url":"https://api.github.com/repos/benoittgt/SmsSpree/git/commits{/sha}","comments_url":"https://api.github.com/repos/benoittgt/SmsSpree/comments{/number}","issue_comment_url":"https://api.github.com/repos/benoittgt/SmsSpree/issues/comments{/number}","contents_url":"https://api.github.com/repos/benoittgt/SmsSpree/contents/{+path}","compare_url":"https://api.github.com/repos/benoittgt/SmsSpree/compare/{base}...{head}","merges_url":"https://api.github.com/repos/benoittgt/SmsSpree/merges","archive_url":"https://api.github.com/repos/benoittgt/SmsSpree/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/benoittgt/SmsSpree/downloads","issues_url":"https://api.github.com/repos/benoittgt/SmsSpree/issues{/number}","pulls_url":"https://api.github.com/repos/benoittgt/SmsSpree/pulls{/number}","milestones_url":"https://api.github.com/repos/benoittgt/SmsSpree/milestones{/number}","notifications_url":"https://api.github.com/repos/benoittgt/SmsSpree/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/benoittgt/SmsSpree/labels{/name}","releases_url":"https://api.github.com/repos/benoittgt/SmsSpree/releases{/id}","created_at":"2015-02-25T21:36:30Z","updated_at":"2015-02-26T16:16:58Z","pushed_at":"2015-02-26T17:04:39Z","git_url":"git://github.com/benoittgt/SmsSpree.git","ssh_url":"git@github.com:benoittgt/SmsSpree.git","clone_url":"https://github.com/benoittgt/SmsSpree.git","svn_url":"https://github.com/benoittgt/SmsSpree","homepage":"","size":0,"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/benoittgt/SmsSpree/pulls/2"},"html":{"href":"https://github.com/benoittgt/SmsSpree/pull/2"},"issue":{"href":"https://api.github.com/repos/benoittgt/SmsSpree/issues/2"},"comments":{"href":"https://api.github.com/repos/benoittgt/SmsSpree/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/benoittgt/SmsSpree/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/benoittgt/SmsSpree/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/benoittgt/SmsSpree/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/benoittgt/SmsSpree/statuses/8006a11c7a3750de521dca5e9f610edb3031a496"}}}}