{"action":"created","comment":{"url":"https://api.github.com/repos/AgileVentures/osra/pulls/comments/22439045","id":22439045,"diff_hunk":"@@ -0,0 +1,35 @@\n+module Helpers\n+  \n+  DEFAULT_ADMIN = {\n+    :email => 'default@man.net',\n+    :password => 'defaultpass'    \n+  }\n+\n+  def create_admin_user email= DEFAULT_ADMIN[:email], password= DEFAULT_ADMIN[:password]\n+    AdminUser.new(email: email, password: password, password_confirmation: password).save!\n+  end\n+\n+  def login email= DEFAULT_ADMIN[:email], password= DEFAULT_ADMIN[:password]\n+    visit new_admin_user_session_path\n+    fill_in \"admin_user_email\", :with => email\n+    fill_in \"admin_user_password\", :with => password\n+    click_button \"Login\"\n+  end\n+\n+  def logout\n+    visit destroy_admin_user_session_path","path":"features_hq/support/step_helper.rb","position":20,"original_position":20,"commit_id":"6b0235e70148167210a1a3a93915acca68abdce5","original_commit_id":"6b0235e70148167210a1a3a93915acca68abdce5","user":{"login":"razorcd","id":3721810,"avatar_url":"https://avatars.githubusercontent.com/u/3721810?v=3","gravatar_id":"","url":"https://api.github.com/users/razorcd","html_url":"https://github.com/razorcd","followers_url":"https://api.github.com/users/razorcd/followers","following_url":"https://api.github.com/users/razorcd/following{/other_user}","gists_url":"https://api.github.com/users/razorcd/gists{/gist_id}","starred_url":"https://api.github.com/users/razorcd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/razorcd/subscriptions","organizations_url":"https://api.github.com/users/razorcd/orgs","repos_url":"https://api.github.com/users/razorcd/repos","events_url":"https://api.github.com/users/razorcd/events{/privacy}","received_events_url":"https://api.github.com/users/razorcd/received_events","type":"User","site_admin":false},"body":"or should I use `session.clear` here?","created_at":"2015-01-04T13:05:45Z","updated_at":"2015-01-04T13:05:45Z","html_url":"https://github.com/AgileVentures/osra/pull/261#discussion_r22439045","pull_request_url":"https://api.github.com/repos/AgileVentures/osra/pulls/261","_links":{"self":{"href":"https://api.github.com/repos/AgileVentures/osra/pulls/comments/22439045"},"html":{"href":"https://github.com/AgileVentures/osra/pull/261#discussion_r22439045"},"pull_request":{"href":"https://api.github.com/repos/AgileVentures/osra/pulls/261"}}},"pull_request":{"url":"https://api.github.com/repos/AgileVentures/osra/pulls/261","id":26794937,"html_url":"https://github.com/AgileVentures/osra/pull/261","diff_url":"https://github.com/AgileVentures/osra/pull/261.diff","patch_url":"https://github.com/AgileVentures/osra/pull/261.patch","issue_url":"https://api.github.com/repos/AgileVentures/osra/issues/261","number":261,"state":"open","locked":false,"title":"Osra315 hq cucumber tests for authentication","user":{"login":"razorcd","id":3721810,"avatar_url":"https://avatars.githubusercontent.com/u/3721810?v=3","gravatar_id":"","url":"https://api.github.com/users/razorcd","html_url":"https://github.com/razorcd","followers_url":"https://api.github.com/users/razorcd/followers","following_url":"https://api.github.com/users/razorcd/following{/other_user}","gists_url":"https://api.github.com/users/razorcd/gists{/gist_id}","starred_url":"https://api.github.com/users/razorcd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/razorcd/subscriptions","organizations_url":"https://api.github.com/users/razorcd/orgs","repos_url":"https://api.github.com/users/razorcd/repos","events_url":"https://api.github.com/users/razorcd/events{/privacy}","received_events_url":"https://api.github.com/users/razorcd/received_events","type":"User","site_admin":false},"body":"https://osraav.atlassian.net/browse/OSRA-315\r\n\r\nCucumber authentication test with use of hq partners#index\r\n- created `features_hq` folder for all independent cucumber hq tests\r\n- created `step_helpers.rb` to move logic from step definitions into helper methods.\r\n- configured cucumber and rake tasks to run admin and hq tests independently\r\n\r\nrun `$ cucumber`         for admin cucumber tests\r\nrun `$ cucumber -p hq`   for hq cucumber tests\r\nrun `$ rake test_with_coveralls`   for all tests: rspec, cucumber_hq , cucumber\r\n","created_at":"2015-01-04T13:04:47Z","updated_at":"2015-01-04T13:05:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ba51883cc82885baec5ee2c363f49a61206e8a00","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/AgileVentures/osra/pulls/261/commits","review_comments_url":"https://api.github.com/repos/AgileVentures/osra/pulls/261/comments","review_comment_url":"https://api.github.com/repos/AgileVentures/osra/pulls/comments/{number}","comments_url":"https://api.github.com/repos/AgileVentures/osra/issues/261/comments","statuses_url":"https://api.github.com/repos/AgileVentures/osra/statuses/6b0235e70148167210a1a3a93915acca68abdce5","head":{"label":"razorcd:osra315_hq_cucumber_tests_for_authentication","ref":"osra315_hq_cucumber_tests_for_authentication","sha":"6b0235e70148167210a1a3a93915acca68abdce5","user":{"login":"razorcd","id":3721810,"avatar_url":"https://avatars.githubusercontent.com/u/3721810?v=3","gravatar_id":"","url":"https://api.github.com/users/razorcd","html_url":"https://github.com/razorcd","followers_url":"https://api.github.com/users/razorcd/followers","following_url":"https://api.github.com/users/razorcd/following{/other_user}","gists_url":"https://api.github.com/users/razorcd/gists{/gist_id}","starred_url":"https://api.github.com/users/razorcd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/razorcd/subscriptions","organizations_url":"https://api.github.com/users/razorcd/orgs","repos_url":"https://api.github.com/users/razorcd/repos","events_url":"https://api.github.com/users/razorcd/events{/privacy}","received_events_url":"https://api.github.com/users/razorcd/received_events","type":"User","site_admin":false},"repo":{"id":27792556,"name":"osra","full_name":"razorcd/osra","owner":{"login":"razorcd","id":3721810,"avatar_url":"https://avatars.githubusercontent.com/u/3721810?v=3","gravatar_id":"","url":"https://api.github.com/users/razorcd","html_url":"https://github.com/razorcd","followers_url":"https://api.github.com/users/razorcd/followers","following_url":"https://api.github.com/users/razorcd/following{/other_user}","gists_url":"https://api.github.com/users/razorcd/gists{/gist_id}","starred_url":"https://api.github.com/users/razorcd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/razorcd/subscriptions","organizations_url":"https://api.github.com/users/razorcd/orgs","repos_url":"https://api.github.com/users/razorcd/repos","events_url":"https://api.github.com/users/razorcd/events{/privacy}","received_events_url":"https://api.github.com/users/razorcd/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/razorcd/osra","description":"Sponsor orphans in Syria & insure basic life & education requirements for Syrian children","fork":true,"url":"https://api.github.com/repos/razorcd/osra","forks_url":"https://api.github.com/repos/razorcd/osra/forks","keys_url":"https://api.github.com/repos/razorcd/osra/keys{/key_id}","collaborators_url":"https://api.github.com/repos/razorcd/osra/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/razorcd/osra/teams","hooks_url":"https://api.github.com/repos/razorcd/osra/hooks","issue_events_url":"https://api.github.com/repos/razorcd/osra/issues/events{/number}","events_url":"https://api.github.com/repos/razorcd/osra/events","assignees_url":"https://api.github.com/repos/razorcd/osra/assignees{/user}","branches_url":"https://api.github.com/repos/razorcd/osra/branches{/branch}","tags_url":"https://api.github.com/repos/razorcd/osra/tags","blobs_url":"https://api.github.com/repos/razorcd/osra/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/razorcd/osra/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/razorcd/osra/git/refs{/sha}","trees_url":"https://api.github.com/repos/razorcd/osra/git/trees{/sha}","statuses_url":"https://api.github.com/repos/razorcd/osra/statuses/{sha}","languages_url":"https://api.github.com/repos/razorcd/osra/languages","stargazers_url":"https://api.github.com/repos/razorcd/osra/stargazers","contributors_url":"https://api.github.com/repos/razorcd/osra/contributors","subscribers_url":"https://api.github.com/repos/razorcd/osra/subscribers","subscription_url":"https://api.github.com/repos/razorcd/osra/subscription","commits_url":"https://api.github.com/repos/razorcd/osra/commits{/sha}","git_commits_url":"https://api.github.com/repos/razorcd/osra/git/commits{/sha}","comments_url":"https://api.github.com/repos/razorcd/osra/comments{/number}","issue_comment_url":"https://api.github.com/repos/razorcd/osra/issues/comments/{number}","contents_url":"https://api.github.com/repos/razorcd/osra/contents/{+path}","compare_url":"https://api.github.com/repos/razorcd/osra/compare/{base}...{head}","merges_url":"https://api.github.com/repos/razorcd/osra/merges","archive_url":"https://api.github.com/repos/razorcd/osra/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/razorcd/osra/downloads","issues_url":"https://api.github.com/repos/razorcd/osra/issues{/number}","pulls_url":"https://api.github.com/repos/razorcd/osra/pulls{/number}","milestones_url":"https://api.github.com/repos/razorcd/osra/milestones{/number}","notifications_url":"https://api.github.com/repos/razorcd/osra/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/razorcd/osra/labels{/name}","releases_url":"https://api.github.com/repos/razorcd/osra/releases{/id}","created_at":"2014-12-09T23:26:34Z","updated_at":"2015-01-03T12:53:02Z","pushed_at":"2015-01-04T12:56:13Z","git_url":"git://github.com/razorcd/osra.git","ssh_url":"git@github.com:razorcd/osra.git","clone_url":"https://github.com/razorcd/osra.git","svn_url":"https://github.com/razorcd/osra","homepage":null,"size":1758,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"AgileVentures:develop","ref":"develop","sha":"a3bf99ced5bbc637eb8de9ac2d6486a5567ad48a","user":{"login":"AgileVentures","id":5116968,"avatar_url":"https://avatars.githubusercontent.com/u/5116968?v=3","gravatar_id":"","url":"https://api.github.com/users/AgileVentures","html_url":"https://github.com/AgileVentures","followers_url":"https://api.github.com/users/AgileVentures/followers","following_url":"https://api.github.com/users/AgileVentures/following{/other_user}","gists_url":"https://api.github.com/users/AgileVentures/gists{/gist_id}","starred_url":"https://api.github.com/users/AgileVentures/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AgileVentures/subscriptions","organizations_url":"https://api.github.com/users/AgileVentures/orgs","repos_url":"https://api.github.com/users/AgileVentures/repos","events_url":"https://api.github.com/users/AgileVentures/events{/privacy}","received_events_url":"https://api.github.com/users/AgileVentures/received_events","type":"Organization","site_admin":false},"repo":{"id":18855271,"name":"osra","full_name":"AgileVentures/osra","owner":{"login":"AgileVentures","id":5116968,"avatar_url":"https://avatars.githubusercontent.com/u/5116968?v=3","gravatar_id":"","url":"https://api.github.com/users/AgileVentures","html_url":"https://github.com/AgileVentures","followers_url":"https://api.github.com/users/AgileVentures/followers","following_url":"https://api.github.com/users/AgileVentures/following{/other_user}","gists_url":"https://api.github.com/users/AgileVentures/gists{/gist_id}","starred_url":"https://api.github.com/users/AgileVentures/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AgileVentures/subscriptions","organizations_url":"https://api.github.com/users/AgileVentures/orgs","repos_url":"https://api.github.com/users/AgileVentures/repos","events_url":"https://api.github.com/users/AgileVentures/events{/privacy}","received_events_url":"https://api.github.com/users/AgileVentures/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/AgileVentures/osra","description":"Sponsor orphans in Syria & ensure basic life & education requirements for Syrian children","fork":false,"url":"https://api.github.com/repos/AgileVentures/osra","forks_url":"https://api.github.com/repos/AgileVentures/osra/forks","keys_url":"https://api.github.com/repos/AgileVentures/osra/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AgileVentures/osra/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AgileVentures/osra/teams","hooks_url":"https://api.github.com/repos/AgileVentures/osra/hooks","issue_events_url":"https://api.github.com/repos/AgileVentures/osra/issues/events{/number}","events_url":"https://api.github.com/repos/AgileVentures/osra/events","assignees_url":"https://api.github.com/repos/AgileVentures/osra/assignees{/user}","branches_url":"https://api.github.com/repos/AgileVentures/osra/branches{/branch}","tags_url":"https://api.github.com/repos/AgileVentures/osra/tags","blobs_url":"https://api.github.com/repos/AgileVentures/osra/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AgileVentures/osra/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AgileVentures/osra/git/refs{/sha}","trees_url":"https://api.github.com/repos/AgileVentures/osra/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AgileVentures/osra/statuses/{sha}","languages_url":"https://api.github.com/repos/AgileVentures/osra/languages","stargazers_url":"https://api.github.com/repos/AgileVentures/osra/stargazers","contributors_url":"https://api.github.com/repos/AgileVentures/osra/contributors","subscribers_url":"https://api.github.com/repos/AgileVentures/osra/subscribers","subscription_url":"https://api.github.com/repos/AgileVentures/osra/subscription","commits_url":"https://api.github.com/repos/AgileVentures/osra/commits{/sha}","git_commits_url":"https://api.github.com/repos/AgileVentures/osra/git/commits{/sha}","comments_url":"https://api.github.com/repos/AgileVentures/osra/comments{/number}","issue_comment_url":"https://api.github.com/repos/AgileVentures/osra/issues/comments/{number}","contents_url":"https://api.github.com/repos/AgileVentures/osra/contents/{+path}","compare_url":"https://api.github.com/repos/AgileVentures/osra/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AgileVentures/osra/merges","archive_url":"https://api.github.com/repos/AgileVentures/osra/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AgileVentures/osra/downloads","issues_url":"https://api.github.com/repos/AgileVentures/osra/issues{/number}","pulls_url":"https://api.github.com/repos/AgileVentures/osra/pulls{/number}","milestones_url":"https://api.github.com/repos/AgileVentures/osra/milestones{/number}","notifications_url":"https://api.github.com/repos/AgileVentures/osra/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AgileVentures/osra/labels{/name}","releases_url":"https://api.github.com/repos/AgileVentures/osra/releases{/id}","created_at":"2014-04-16T20:43:09Z","updated_at":"2015-01-04T07:41:17Z","pushed_at":"2015-01-04T07:41:17Z","git_url":"git://github.com/AgileVentures/osra.git","ssh_url":"git@github.com:AgileVentures/osra.git","clone_url":"https://github.com/AgileVentures/osra.git","svn_url":"https://github.com/AgileVentures/osra","homepage":"","size":3994,"stargazers_count":8,"watchers_count":8,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":28,"mirror_url":null,"open_issues_count":8,"forks":28,"open_issues":8,"watchers":8,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/AgileVentures/osra/pulls/261"},"html":{"href":"https://github.com/AgileVentures/osra/pull/261"},"issue":{"href":"https://api.github.com/repos/AgileVentures/osra/issues/261"},"comments":{"href":"https://api.github.com/repos/AgileVentures/osra/issues/261/comments"},"review_comments":{"href":"https://api.github.com/repos/AgileVentures/osra/pulls/261/comments"},"review_comment":{"href":"https://api.github.com/repos/AgileVentures/osra/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/AgileVentures/osra/pulls/261/commits"},"statuses":{"href":"https://api.github.com/repos/AgileVentures/osra/statuses/6b0235e70148167210a1a3a93915acca68abdce5"}}}}