{"action":"created","comment":{"url":"https://api.github.com/repos/lotus/lotus/pulls/comments/29820124","id":29820124,"diff_hunk":"@@ -0,0 +1,20 @@\n+require 'test_helper'\n+\n+describe 'Lotus' do\n+\n+  describe '.env' do\n+    it 'returns env object' do\n+      Lotus.env.must_be_kind_of String\n+    end\n+  end\n+\n+  describe '.env.test?' do\n+    before do\n+      ENV['LOTUS_ENV']  = 'test'\n+    end\n+\n+    it 'return true' do\n+      Lotus.env?(:test).must_equal true","path":"test/env_test.rb","position":17,"original_position":17,"commit_id":"6243c786c886ea00070e3ea2e9e71adc32045892","original_commit_id":"6243c786c886ea00070e3ea2e9e71adc32045892","user":{"login":"joneslee85","id":135605,"avatar_url":"https://avatars.githubusercontent.com/u/135605?v=3","gravatar_id":"","url":"https://api.github.com/users/joneslee85","html_url":"https://github.com/joneslee85","followers_url":"https://api.github.com/users/joneslee85/followers","following_url":"https://api.github.com/users/joneslee85/following{/other_user}","gists_url":"https://api.github.com/users/joneslee85/gists{/gist_id}","starred_url":"https://api.github.com/users/joneslee85/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joneslee85/subscriptions","organizations_url":"https://api.github.com/users/joneslee85/orgs","repos_url":"https://api.github.com/users/joneslee85/repos","events_url":"https://api.github.com/users/joneslee85/events{/privacy}","received_events_url":"https://api.github.com/users/joneslee85/received_events","type":"User","site_admin":false},"body":"can we also test for false scenario?","created_at":"2015-05-07T02:20:31Z","updated_at":"2015-05-07T02:20:31Z","html_url":"https://github.com/lotus/lotus/pull/216#discussion_r29820124","pull_request_url":"https://api.github.com/repos/lotus/lotus/pulls/216","_links":{"self":{"href":"https://api.github.com/repos/lotus/lotus/pulls/comments/29820124"},"html":{"href":"https://github.com/lotus/lotus/pull/216#discussion_r29820124"},"pull_request":{"href":"https://api.github.com/repos/lotus/lotus/pulls/216"}}},"pull_request":{"url":"https://api.github.com/repos/lotus/lotus/pulls/216","id":34814849,"html_url":"https://github.com/lotus/lotus/pull/216","diff_url":"https://github.com/lotus/lotus/pull/216.diff","patch_url":"https://github.com/lotus/lotus/pull/216.patch","issue_url":"https://api.github.com/repos/lotus/lotus/issues/216","number":216,"state":"open","locked":false,"title":"issue#211 Add Lotus.env","user":{"login":"nguyenngoc2505","id":3872648,"avatar_url":"https://avatars.githubusercontent.com/u/3872648?v=3","gravatar_id":"","url":"https://api.github.com/users/nguyenngoc2505","html_url":"https://github.com/nguyenngoc2505","followers_url":"https://api.github.com/users/nguyenngoc2505/followers","following_url":"https://api.github.com/users/nguyenngoc2505/following{/other_user}","gists_url":"https://api.github.com/users/nguyenngoc2505/gists{/gist_id}","starred_url":"https://api.github.com/users/nguyenngoc2505/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nguyenngoc2505/subscriptions","organizations_url":"https://api.github.com/users/nguyenngoc2505/orgs","repos_url":"https://api.github.com/users/nguyenngoc2505/repos","events_url":"https://api.github.com/users/nguyenngoc2505/events{/privacy}","received_events_url":"https://api.github.com/users/nguyenngoc2505/received_events","type":"User","site_admin":false},"body":"- Implement `Lotus.env`\r\n```ruby\r\n   Lotus.env # => \"development\"\r\n\r\n  Lotus.env?(:development) # => true \r\n  Lotus.env?(:production)  # => false\r\n```","created_at":"2015-05-06T13:12:00Z","updated_at":"2015-05-07T02:20:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cd89d0fde80e68a0d90551d2d8d059ac20f00150","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/lotus/lotus/pulls/216/commits","review_comments_url":"https://api.github.com/repos/lotus/lotus/pulls/216/comments","review_comment_url":"https://api.github.com/repos/lotus/lotus/pulls/comments{/number}","comments_url":"https://api.github.com/repos/lotus/lotus/issues/216/comments","statuses_url":"https://api.github.com/repos/lotus/lotus/statuses/6243c786c886ea00070e3ea2e9e71adc32045892","head":{"label":"nguyenngoc2505:issues/211","ref":"issues/211","sha":"6243c786c886ea00070e3ea2e9e71adc32045892","user":{"login":"nguyenngoc2505","id":3872648,"avatar_url":"https://avatars.githubusercontent.com/u/3872648?v=3","gravatar_id":"","url":"https://api.github.com/users/nguyenngoc2505","html_url":"https://github.com/nguyenngoc2505","followers_url":"https://api.github.com/users/nguyenngoc2505/followers","following_url":"https://api.github.com/users/nguyenngoc2505/following{/other_user}","gists_url":"https://api.github.com/users/nguyenngoc2505/gists{/gist_id}","starred_url":"https://api.github.com/users/nguyenngoc2505/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nguyenngoc2505/subscriptions","organizations_url":"https://api.github.com/users/nguyenngoc2505/orgs","repos_url":"https://api.github.com/users/nguyenngoc2505/repos","events_url":"https://api.github.com/users/nguyenngoc2505/events{/privacy}","received_events_url":"https://api.github.com/users/nguyenngoc2505/received_events","type":"User","site_admin":false},"repo":{"id":33162051,"name":"lotus","full_name":"nguyenngoc2505/lotus","owner":{"login":"nguyenngoc2505","id":3872648,"avatar_url":"https://avatars.githubusercontent.com/u/3872648?v=3","gravatar_id":"","url":"https://api.github.com/users/nguyenngoc2505","html_url":"https://github.com/nguyenngoc2505","followers_url":"https://api.github.com/users/nguyenngoc2505/followers","following_url":"https://api.github.com/users/nguyenngoc2505/following{/other_user}","gists_url":"https://api.github.com/users/nguyenngoc2505/gists{/gist_id}","starred_url":"https://api.github.com/users/nguyenngoc2505/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nguyenngoc2505/subscriptions","organizations_url":"https://api.github.com/users/nguyenngoc2505/orgs","repos_url":"https://api.github.com/users/nguyenngoc2505/repos","events_url":"https://api.github.com/users/nguyenngoc2505/events{/privacy}","received_events_url":"https://api.github.com/users/nguyenngoc2505/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nguyenngoc2505/lotus","description":"A complete web framework for Ruby","fork":true,"url":"https://api.github.com/repos/nguyenngoc2505/lotus","forks_url":"https://api.github.com/repos/nguyenngoc2505/lotus/forks","keys_url":"https://api.github.com/repos/nguyenngoc2505/lotus/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nguyenngoc2505/lotus/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nguyenngoc2505/lotus/teams","hooks_url":"https://api.github.com/repos/nguyenngoc2505/lotus/hooks","issue_events_url":"https://api.github.com/repos/nguyenngoc2505/lotus/issues/events{/number}","events_url":"https://api.github.com/repos/nguyenngoc2505/lotus/events","assignees_url":"https://api.github.com/repos/nguyenngoc2505/lotus/assignees{/user}","branches_url":"https://api.github.com/repos/nguyenngoc2505/lotus/branches{/branch}","tags_url":"https://api.github.com/repos/nguyenngoc2505/lotus/tags","blobs_url":"https://api.github.com/repos/nguyenngoc2505/lotus/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nguyenngoc2505/lotus/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nguyenngoc2505/lotus/git/refs{/sha}","trees_url":"https://api.github.com/repos/nguyenngoc2505/lotus/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nguyenngoc2505/lotus/statuses/{sha}","languages_url":"https://api.github.com/repos/nguyenngoc2505/lotus/languages","stargazers_url":"https://api.github.com/repos/nguyenngoc2505/lotus/stargazers","contributors_url":"https://api.github.com/repos/nguyenngoc2505/lotus/contributors","subscribers_url":"https://api.github.com/repos/nguyenngoc2505/lotus/subscribers","subscription_url":"https://api.github.com/repos/nguyenngoc2505/lotus/subscription","commits_url":"https://api.github.com/repos/nguyenngoc2505/lotus/commits{/sha}","git_commits_url":"https://api.github.com/repos/nguyenngoc2505/lotus/git/commits{/sha}","comments_url":"https://api.github.com/repos/nguyenngoc2505/lotus/comments{/number}","issue_comment_url":"https://api.github.com/repos/nguyenngoc2505/lotus/issues/comments{/number}","contents_url":"https://api.github.com/repos/nguyenngoc2505/lotus/contents/{+path}","compare_url":"https://api.github.com/repos/nguyenngoc2505/lotus/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nguyenngoc2505/lotus/merges","archive_url":"https://api.github.com/repos/nguyenngoc2505/lotus/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nguyenngoc2505/lotus/downloads","issues_url":"https://api.github.com/repos/nguyenngoc2505/lotus/issues{/number}","pulls_url":"https://api.github.com/repos/nguyenngoc2505/lotus/pulls{/number}","milestones_url":"https://api.github.com/repos/nguyenngoc2505/lotus/milestones{/number}","notifications_url":"https://api.github.com/repos/nguyenngoc2505/lotus/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nguyenngoc2505/lotus/labels{/name}","releases_url":"https://api.github.com/repos/nguyenngoc2505/lotus/releases{/id}","created_at":"2015-03-31T03:07:51Z","updated_at":"2015-03-31T03:07:52Z","pushed_at":"2015-05-07T01:36:20Z","git_url":"git://github.com/nguyenngoc2505/lotus.git","ssh_url":"git@github.com:nguyenngoc2505/lotus.git","clone_url":"https://github.com/nguyenngoc2505/lotus.git","svn_url":"https://github.com/nguyenngoc2505/lotus","homepage":"http://lotusrb.org","size":753,"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":"master"}},"base":{"label":"lotus:master","ref":"master","sha":"a68188c51bc9523d78d9614f7aea9b9c1e456948","user":{"login":"lotus","id":3210273,"avatar_url":"https://avatars.githubusercontent.com/u/3210273?v=3","gravatar_id":"","url":"https://api.github.com/users/lotus","html_url":"https://github.com/lotus","followers_url":"https://api.github.com/users/lotus/followers","following_url":"https://api.github.com/users/lotus/following{/other_user}","gists_url":"https://api.github.com/users/lotus/gists{/gist_id}","starred_url":"https://api.github.com/users/lotus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lotus/subscriptions","organizations_url":"https://api.github.com/users/lotus/orgs","repos_url":"https://api.github.com/users/lotus/repos","events_url":"https://api.github.com/users/lotus/events{/privacy}","received_events_url":"https://api.github.com/users/lotus/received_events","type":"Organization","site_admin":false},"repo":{"id":12004006,"name":"lotus","full_name":"lotus/lotus","owner":{"login":"lotus","id":3210273,"avatar_url":"https://avatars.githubusercontent.com/u/3210273?v=3","gravatar_id":"","url":"https://api.github.com/users/lotus","html_url":"https://github.com/lotus","followers_url":"https://api.github.com/users/lotus/followers","following_url":"https://api.github.com/users/lotus/following{/other_user}","gists_url":"https://api.github.com/users/lotus/gists{/gist_id}","starred_url":"https://api.github.com/users/lotus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lotus/subscriptions","organizations_url":"https://api.github.com/users/lotus/orgs","repos_url":"https://api.github.com/users/lotus/repos","events_url":"https://api.github.com/users/lotus/events{/privacy}","received_events_url":"https://api.github.com/users/lotus/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/lotus/lotus","description":"A complete web framework for Ruby","fork":false,"url":"https://api.github.com/repos/lotus/lotus","forks_url":"https://api.github.com/repos/lotus/lotus/forks","keys_url":"https://api.github.com/repos/lotus/lotus/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lotus/lotus/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lotus/lotus/teams","hooks_url":"https://api.github.com/repos/lotus/lotus/hooks","issue_events_url":"https://api.github.com/repos/lotus/lotus/issues/events{/number}","events_url":"https://api.github.com/repos/lotus/lotus/events","assignees_url":"https://api.github.com/repos/lotus/lotus/assignees{/user}","branches_url":"https://api.github.com/repos/lotus/lotus/branches{/branch}","tags_url":"https://api.github.com/repos/lotus/lotus/tags","blobs_url":"https://api.github.com/repos/lotus/lotus/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lotus/lotus/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lotus/lotus/git/refs{/sha}","trees_url":"https://api.github.com/repos/lotus/lotus/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lotus/lotus/statuses/{sha}","languages_url":"https://api.github.com/repos/lotus/lotus/languages","stargazers_url":"https://api.github.com/repos/lotus/lotus/stargazers","contributors_url":"https://api.github.com/repos/lotus/lotus/contributors","subscribers_url":"https://api.github.com/repos/lotus/lotus/subscribers","subscription_url":"https://api.github.com/repos/lotus/lotus/subscription","commits_url":"https://api.github.com/repos/lotus/lotus/commits{/sha}","git_commits_url":"https://api.github.com/repos/lotus/lotus/git/commits{/sha}","comments_url":"https://api.github.com/repos/lotus/lotus/comments{/number}","issue_comment_url":"https://api.github.com/repos/lotus/lotus/issues/comments{/number}","contents_url":"https://api.github.com/repos/lotus/lotus/contents/{+path}","compare_url":"https://api.github.com/repos/lotus/lotus/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lotus/lotus/merges","archive_url":"https://api.github.com/repos/lotus/lotus/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lotus/lotus/downloads","issues_url":"https://api.github.com/repos/lotus/lotus/issues{/number}","pulls_url":"https://api.github.com/repos/lotus/lotus/pulls{/number}","milestones_url":"https://api.github.com/repos/lotus/lotus/milestones{/number}","notifications_url":"https://api.github.com/repos/lotus/lotus/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lotus/lotus/labels{/name}","releases_url":"https://api.github.com/repos/lotus/lotus/releases{/id}","created_at":"2013-08-09T15:24:44Z","updated_at":"2015-05-06T23:12:55Z","pushed_at":"2015-05-07T01:36:20Z","git_url":"git://github.com/lotus/lotus.git","ssh_url":"git@github.com:lotus/lotus.git","clone_url":"https://github.com/lotus/lotus.git","svn_url":"https://github.com/lotus/lotus","homepage":"http://lotusrb.org","size":3744,"stargazers_count":1726,"watchers_count":1726,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":161,"mirror_url":null,"open_issues_count":24,"forks":161,"open_issues":24,"watchers":1726,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/lotus/lotus/pulls/216"},"html":{"href":"https://github.com/lotus/lotus/pull/216"},"issue":{"href":"https://api.github.com/repos/lotus/lotus/issues/216"},"comments":{"href":"https://api.github.com/repos/lotus/lotus/issues/216/comments"},"review_comments":{"href":"https://api.github.com/repos/lotus/lotus/pulls/216/comments"},"review_comment":{"href":"https://api.github.com/repos/lotus/lotus/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/lotus/lotus/pulls/216/commits"},"statuses":{"href":"https://api.github.com/repos/lotus/lotus/statuses/6243c786c886ea00070e3ea2e9e71adc32045892"}}}}