{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/tms_69/pulls/comments/85693500","pull_request_review_id":6393806,"id":85693500,"diff_hunk":"@@ -0,0 +1,72 @@\n+# This file is copied to spec/ when you run 'rails generate rspec:install'\n+ENV['RAILS_ENV'] ||= 'test'\n+require File.expand_path('../../config/environment', __FILE__)\n+# Prevent database truncation if the environment is production\n+abort(\"The Rails environment is running in production mode!\") if Rails.env.production?\n+require 'spec_helper'\n+require 'rspec/rails'\n+# Add additional requires below this line. Rails is not loaded until this point!\n+\n+# Requires supporting ruby files with custom matchers and macros, etc, in\n+# spec/support/ and its subdirectories. Files matching `spec/**/*_spec.rb` are\n+# run as spec files by default. This means that files in spec/support that end\n+# in _spec.rb will both be required and run as specs, causing the specs to be\n+# run twice. It is recommended that you do not name files matching this glob to\n+# end with _spec.rb. You can configure this pattern with the --pattern\n+# option on the command line or in ~/.rspec, .rspec or `.rspec-local`.\n+#\n+# The following line is provided for convenience purposes. It has the downside\n+# of increasing the boot-up time by auto-requiring all files in the support\n+# directory. Alternatively, in the individual `*_spec.rb` files, manually\n+# require only the support files necessary.\n+#\n+# Dir[Rails.root.join('spec/support/**/*.rb')].each { |f| require f }\n+\n+# Checks for pending migration and applies them before tests are run.\n+# If you are not using ActiveRecord, you can remove this line.\n+ActiveRecord::Migration.maintain_test_schema!\n+\n+RSpec.configure do |config|\n+  # Remove this line if you're not using ActiveRecord or ActiveRecord fixtures\n+  config.fixture_path = \"#{::Rails.root}/spec/fixtures\"\n+\n+  # If you're not using ActiveRecord, or you'd prefer not to run each of your\n+  # examples within a transaction, remove the following line or assign false\n+  # instead of true.\n+  config.use_transactional_fixtures = false\n+\n+  # RSpec Rails can automatically mix in different behaviours to your tests\n+  # based on their file location, for example enabling you to call `get` and\n+  # `post` in specs under `spec/controllers`.\n+  #\n+  # You can disable this behaviour by removing the line below, and instead\n+  # explicitly tag your specs with their type, e.g.:\n+  #\n+  #     RSpec.describe UsersController, :type => :controller do\n+  #       # ...\n+  #     end\n+  #\n+  # The different available types are documented in the features, such as in\n+  # https://relishapp.com/rspec/rspec-rails/docs\n+  config.infer_spec_type_from_file_location!\n+\n+  # Filter lines from Rails gems in backtraces.\n+  config.filter_rails_from_backtrace!\n+  # arbitrary gems may also be filtered via:\n+  # config.filter_gems_from_backtrace(\"gem name\")\n+  Shoulda::Matchers.configure do |config|\n+  config.integrate do |with|\n+    # Chỉ định test framework, ở đây chúng ta đang làm việc với Rspec:\n+    with.test_framework :rspec\n+    # with.test_framework :minitest\n+    # with.test_framework :minitest_4\n+    # with.test_framework :test_unit\n+    # Chỉ định các thư viện:\n+    # with.library :active_record\n+    # with.library :active_model\n+    # with.library :action_controller\n+    # Or, choose the following (which implies all of the above):\n+    with.library :rails\n+  end\n+end","path":"spec/rails_helper.rb","position":71,"original_position":71,"commit_id":"f1885f43d63cc329b7417423106c6a12cdf7989d","original_commit_id":"f1885f43d63cc329b7417423106c6a12cdf7989d","user":{"login":"nvtanh","id":5591946,"avatar_url":"https://avatars.githubusercontent.com/u/5591946?v=3","gravatar_id":"","url":"https://api.github.com/users/nvtanh","html_url":"https://github.com/nvtanh","followers_url":"https://api.github.com/users/nvtanh/followers","following_url":"https://api.github.com/users/nvtanh/following{/other_user}","gists_url":"https://api.github.com/users/nvtanh/gists{/gist_id}","starred_url":"https://api.github.com/users/nvtanh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nvtanh/subscriptions","organizations_url":"https://api.github.com/users/nvtanh/orgs","repos_url":"https://api.github.com/users/nvtanh/repos","events_url":"https://api.github.com/users/nvtanh/events{/privacy}","received_events_url":"https://api.github.com/users/nvtanh/received_events","type":"User","site_admin":false},"body":"indent","created_at":"2016-10-31T07:23:46Z","updated_at":"2016-10-31T07:23:48Z","html_url":"https://github.com/framgia/tms_69/pull/36#discussion_r85693500","pull_request_url":"https://api.github.com/repos/framgia/tms_69/pulls/36","_links":{"self":{"href":"https://api.github.com/repos/framgia/tms_69/pulls/comments/85693500"},"html":{"href":"https://github.com/framgia/tms_69/pull/36#discussion_r85693500"},"pull_request":{"href":"https://api.github.com/repos/framgia/tms_69/pulls/36"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/tms_69/pulls/36","id":91554770,"html_url":"https://github.com/framgia/tms_69/pull/36","diff_url":"https://github.com/framgia/tms_69/pull/36.diff","patch_url":"https://github.com/framgia/tms_69/pull/36.patch","issue_url":"https://api.github.com/repos/framgia/tms_69/issues/36","number":36,"state":"open","locked":false,"title":"Test model","user":{"login":"nhathanh1920","id":18419241,"avatar_url":"https://avatars.githubusercontent.com/u/18419241?v=3","gravatar_id":"","url":"https://api.github.com/users/nhathanh1920","html_url":"https://github.com/nhathanh1920","followers_url":"https://api.github.com/users/nhathanh1920/followers","following_url":"https://api.github.com/users/nhathanh1920/following{/other_user}","gists_url":"https://api.github.com/users/nhathanh1920/gists{/gist_id}","starred_url":"https://api.github.com/users/nhathanh1920/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nhathanh1920/subscriptions","organizations_url":"https://api.github.com/users/nhathanh1920/orgs","repos_url":"https://api.github.com/users/nhathanh1920/repos","events_url":"https://api.github.com/users/nhathanh1920/events{/privacy}","received_events_url":"https://api.github.com/users/nhathanh1920/received_events","type":"User","site_admin":false},"body":"ok","created_at":"2016-10-31T04:14:50Z","updated_at":"2016-10-31T07:23:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e6e04d08c492fc0155e2ae4597e50edfda29bc60","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/framgia/tms_69/pulls/36/commits","review_comments_url":"https://api.github.com/repos/framgia/tms_69/pulls/36/comments","review_comment_url":"https://api.github.com/repos/framgia/tms_69/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/tms_69/issues/36/comments","statuses_url":"https://api.github.com/repos/framgia/tms_69/statuses/f1885f43d63cc329b7417423106c6a12cdf7989d","head":{"label":"nhathanh1920:test-rspec","ref":"test-rspec","sha":"f1885f43d63cc329b7417423106c6a12cdf7989d","user":{"login":"nhathanh1920","id":18419241,"avatar_url":"https://avatars.githubusercontent.com/u/18419241?v=3","gravatar_id":"","url":"https://api.github.com/users/nhathanh1920","html_url":"https://github.com/nhathanh1920","followers_url":"https://api.github.com/users/nhathanh1920/followers","following_url":"https://api.github.com/users/nhathanh1920/following{/other_user}","gists_url":"https://api.github.com/users/nhathanh1920/gists{/gist_id}","starred_url":"https://api.github.com/users/nhathanh1920/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nhathanh1920/subscriptions","organizations_url":"https://api.github.com/users/nhathanh1920/orgs","repos_url":"https://api.github.com/users/nhathanh1920/repos","events_url":"https://api.github.com/users/nhathanh1920/events{/privacy}","received_events_url":"https://api.github.com/users/nhathanh1920/received_events","type":"User","site_admin":false},"repo":{"id":71123060,"name":"tms_69","full_name":"nhathanh1920/tms_69","owner":{"login":"nhathanh1920","id":18419241,"avatar_url":"https://avatars.githubusercontent.com/u/18419241?v=3","gravatar_id":"","url":"https://api.github.com/users/nhathanh1920","html_url":"https://github.com/nhathanh1920","followers_url":"https://api.github.com/users/nhathanh1920/followers","following_url":"https://api.github.com/users/nhathanh1920/following{/other_user}","gists_url":"https://api.github.com/users/nhathanh1920/gists{/gist_id}","starred_url":"https://api.github.com/users/nhathanh1920/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nhathanh1920/subscriptions","organizations_url":"https://api.github.com/users/nhathanh1920/orgs","repos_url":"https://api.github.com/users/nhathanh1920/repos","events_url":"https://api.github.com/users/nhathanh1920/events{/privacy}","received_events_url":"https://api.github.com/users/nhathanh1920/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nhathanh1920/tms_69","description":"Training Project - Framgia Edu DN","fork":true,"url":"https://api.github.com/repos/nhathanh1920/tms_69","forks_url":"https://api.github.com/repos/nhathanh1920/tms_69/forks","keys_url":"https://api.github.com/repos/nhathanh1920/tms_69/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nhathanh1920/tms_69/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nhathanh1920/tms_69/teams","hooks_url":"https://api.github.com/repos/nhathanh1920/tms_69/hooks","issue_events_url":"https://api.github.com/repos/nhathanh1920/tms_69/issues/events{/number}","events_url":"https://api.github.com/repos/nhathanh1920/tms_69/events","assignees_url":"https://api.github.com/repos/nhathanh1920/tms_69/assignees{/user}","branches_url":"https://api.github.com/repos/nhathanh1920/tms_69/branches{/branch}","tags_url":"https://api.github.com/repos/nhathanh1920/tms_69/tags","blobs_url":"https://api.github.com/repos/nhathanh1920/tms_69/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nhathanh1920/tms_69/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nhathanh1920/tms_69/git/refs{/sha}","trees_url":"https://api.github.com/repos/nhathanh1920/tms_69/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nhathanh1920/tms_69/statuses/{sha}","languages_url":"https://api.github.com/repos/nhathanh1920/tms_69/languages","stargazers_url":"https://api.github.com/repos/nhathanh1920/tms_69/stargazers","contributors_url":"https://api.github.com/repos/nhathanh1920/tms_69/contributors","subscribers_url":"https://api.github.com/repos/nhathanh1920/tms_69/subscribers","subscription_url":"https://api.github.com/repos/nhathanh1920/tms_69/subscription","commits_url":"https://api.github.com/repos/nhathanh1920/tms_69/commits{/sha}","git_commits_url":"https://api.github.com/repos/nhathanh1920/tms_69/git/commits{/sha}","comments_url":"https://api.github.com/repos/nhathanh1920/tms_69/comments{/number}","issue_comment_url":"https://api.github.com/repos/nhathanh1920/tms_69/issues/comments{/number}","contents_url":"https://api.github.com/repos/nhathanh1920/tms_69/contents/{+path}","compare_url":"https://api.github.com/repos/nhathanh1920/tms_69/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nhathanh1920/tms_69/merges","archive_url":"https://api.github.com/repos/nhathanh1920/tms_69/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nhathanh1920/tms_69/downloads","issues_url":"https://api.github.com/repos/nhathanh1920/tms_69/issues{/number}","pulls_url":"https://api.github.com/repos/nhathanh1920/tms_69/pulls{/number}","milestones_url":"https://api.github.com/repos/nhathanh1920/tms_69/milestones{/number}","notifications_url":"https://api.github.com/repos/nhathanh1920/tms_69/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nhathanh1920/tms_69/labels{/name}","releases_url":"https://api.github.com/repos/nhathanh1920/tms_69/releases{/id}","deployments_url":"https://api.github.com/repos/nhathanh1920/tms_69/deployments","created_at":"2016-10-17T09:44:40Z","updated_at":"2016-10-17T07:42:22Z","pushed_at":"2016-10-31T06:44:33Z","git_url":"git://github.com/nhathanh1920/tms_69.git","ssh_url":"git@github.com:nhathanh1920/tms_69.git","clone_url":"https://github.com/nhathanh1920/tms_69.git","svn_url":"https://github.com/nhathanh1920/tms_69","homepage":null,"size":3711,"stargazers_count":0,"watchers_count":0,"language":null,"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":"framgia:develop","ref":"develop","sha":"9d482bc36d57cbc0a4c7cbebf7f4e70de92ab7f6","user":{"login":"framgia","id":2322183,"avatar_url":"https://avatars.githubusercontent.com/u/2322183?v=3","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":71112464,"name":"tms_69","full_name":"framgia/tms_69","owner":{"login":"framgia","id":2322183,"avatar_url":"https://avatars.githubusercontent.com/u/2322183?v=3","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/tms_69","description":"Training Project - Framgia Edu DN","fork":false,"url":"https://api.github.com/repos/framgia/tms_69","forks_url":"https://api.github.com/repos/framgia/tms_69/forks","keys_url":"https://api.github.com/repos/framgia/tms_69/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/tms_69/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/tms_69/teams","hooks_url":"https://api.github.com/repos/framgia/tms_69/hooks","issue_events_url":"https://api.github.com/repos/framgia/tms_69/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/tms_69/events","assignees_url":"https://api.github.com/repos/framgia/tms_69/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/tms_69/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/tms_69/tags","blobs_url":"https://api.github.com/repos/framgia/tms_69/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/tms_69/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/tms_69/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/tms_69/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/tms_69/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/tms_69/languages","stargazers_url":"https://api.github.com/repos/framgia/tms_69/stargazers","contributors_url":"https://api.github.com/repos/framgia/tms_69/contributors","subscribers_url":"https://api.github.com/repos/framgia/tms_69/subscribers","subscription_url":"https://api.github.com/repos/framgia/tms_69/subscription","commits_url":"https://api.github.com/repos/framgia/tms_69/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/tms_69/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/tms_69/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/tms_69/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/tms_69/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/tms_69/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/tms_69/merges","archive_url":"https://api.github.com/repos/framgia/tms_69/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/tms_69/downloads","issues_url":"https://api.github.com/repos/framgia/tms_69/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/tms_69/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/tms_69/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/tms_69/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/tms_69/labels{/name}","releases_url":"https://api.github.com/repos/framgia/tms_69/releases{/id}","deployments_url":"https://api.github.com/repos/framgia/tms_69/deployments","created_at":"2016-10-17T07:42:22Z","updated_at":"2016-10-17T07:42:22Z","pushed_at":"2016-10-31T07:22:39Z","git_url":"git://github.com/framgia/tms_69.git","ssh_url":"git@github.com:framgia/tms_69.git","clone_url":"https://github.com/framgia/tms_69.git","svn_url":"https://github.com/framgia/tms_69","homepage":null,"size":3724,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":3,"forks":3,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/framgia/tms_69/pulls/36"},"html":{"href":"https://github.com/framgia/tms_69/pull/36"},"issue":{"href":"https://api.github.com/repos/framgia/tms_69/issues/36"},"comments":{"href":"https://api.github.com/repos/framgia/tms_69/issues/36/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/tms_69/pulls/36/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/tms_69/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/tms_69/pulls/36/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/tms_69/statuses/f1885f43d63cc329b7417423106c6a12cdf7989d"}}}}
{"actor":{"display_login":"nvtanh"}}