{"action":"created","comment":{"url":"https://api.github.com/repos/abak-press/simple_hstore_accessor/pulls/comments/38620480","id":38620480,"diff_hunk":"@@ -0,0 +1,76 @@\n+# coding: utf-8\n+require 'spec_helper'\n+\n+describe Dummy do\n+  let(:dummy) { described_class.new(latitude: 7, longitude: 11) }\n+\n+  it { expect(dummy).to respond_to(:coordinates) }\n+\n+  it { expect(dummy).to respond_to(:latitude) }\n+  it { expect(dummy).to respond_to(:latitude=) }\n+  it { expect(dummy).to respond_to(:latitude_will_change!) }\n+  it { expect(dummy).to respond_to(:latitude_changed?) }\n+\n+  it { expect(dummy).to respond_to(:longitude) }\n+  it { expect(dummy).to respond_to(:longitude=) }\n+  it { expect(dummy).to respond_to(:longitude_will_change!) }\n+  it { expect(dummy).to respond_to(:longitude_changed?) }\n+\n+  describe '#latitude=' do\n+    after { dummy.latitude = 14 }\n+\n+    it { expect(dummy).to receive(:latitude_will_change!).and_return(7).once }\n+  end\n+\n+  describe '#longitude=' do\n+    after { dummy.longitude = 22 }\n+\n+    it { expect(dummy).to receive(:longitude_will_change!).and_return(11).once }\n+  end\n+\n+  describe '#latitude_will_change!' do\n+    after { dummy.latitude_will_change! }\n+\n+    it { expect(dummy).to receive(:attribute_will_change!).and_return(7).once }\n+  end\n+\n+  describe '#longitude_will_change!' do\n+    after { dummy.longitude_will_change! }\n+\n+    it { expect(dummy).to receive(:attribute_will_change!).and_return(11).once }\n+  end\n+\n+  context 'when is new record' do\n+    describe 'latitude_changed?' do\n+      it { expect(dummy.latitude_changed?).to be true }\n+    end\n+\n+    describe 'longitude_changed?' do\n+      it { expect(dummy.longitude_changed?).to be true }","path":"spec/app/models/dummy_spec.rb","position":49,"original_position":49,"commit_id":"c63610e8a6d3f9ace347f3f09b95eaf4824f041b","original_commit_id":"c63610e8a6d3f9ace347f3f09b95eaf4824f041b","user":{"login":"folklore","id":1191354,"avatar_url":"https://avatars.githubusercontent.com/u/1191354?v=3","gravatar_id":"","url":"https://api.github.com/users/folklore","html_url":"https://github.com/folklore","followers_url":"https://api.github.com/users/folklore/followers","following_url":"https://api.github.com/users/folklore/following{/other_user}","gists_url":"https://api.github.com/users/folklore/gists{/gist_id}","starred_url":"https://api.github.com/users/folklore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/folklore/subscriptions","organizations_url":"https://api.github.com/users/folklore/orgs","repos_url":"https://api.github.com/users/folklore/repos","events_url":"https://api.github.com/users/folklore/events{/privacy}","received_events_url":"https://api.github.com/users/folklore/received_events","type":"User","site_admin":false},"body":"Исправлюсь.","created_at":"2015-09-03T07:47:47Z","updated_at":"2015-09-03T07:47:47Z","html_url":"https://github.com/abak-press/simple_hstore_accessor/pull/3#discussion_r38620480","pull_request_url":"https://api.github.com/repos/abak-press/simple_hstore_accessor/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/abak-press/simple_hstore_accessor/pulls/comments/38620480"},"html":{"href":"https://github.com/abak-press/simple_hstore_accessor/pull/3#discussion_r38620480"},"pull_request":{"href":"https://api.github.com/repos/abak-press/simple_hstore_accessor/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/abak-press/simple_hstore_accessor/pulls/3","id":43954492,"html_url":"https://github.com/abak-press/simple_hstore_accessor/pull/3","diff_url":"https://github.com/abak-press/simple_hstore_accessor/pull/3.diff","patch_url":"https://github.com/abak-press/simple_hstore_accessor/pull/3.patch","issue_url":"https://api.github.com/repos/abak-press/simple_hstore_accessor/issues/3","number":3,"state":"open","locked":false,"title":"fix(offer): исправление нормализации внешней ссылки на акцию","user":{"login":"folklore","id":1191354,"avatar_url":"https://avatars.githubusercontent.com/u/1191354?v=3","gravatar_id":"","url":"https://api.github.com/users/folklore","html_url":"https://github.com/folklore","followers_url":"https://api.github.com/users/folklore/followers","following_url":"https://api.github.com/users/folklore/following{/other_user}","gists_url":"https://api.github.com/users/folklore/gists{/gist_id}","starred_url":"https://api.github.com/users/folklore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/folklore/subscriptions","organizations_url":"https://api.github.com/users/folklore/orgs","repos_url":"https://api.github.com/users/folklore/repos","events_url":"https://api.github.com/users/folklore/events{/privacy}","received_events_url":"https://api.github.com/users/folklore/received_events","type":"User","site_admin":false},"body":"https://jira.railsc.ru/browse/SG-3748","created_at":"2015-09-02T05:12:54Z","updated_at":"2015-09-03T07:47:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d3678210a7d33a7bce342ad0b4adf24d2f16b7e3","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/abak-press/simple_hstore_accessor/pulls/3/commits","review_comments_url":"https://api.github.com/repos/abak-press/simple_hstore_accessor/pulls/3/comments","review_comment_url":"https://api.github.com/repos/abak-press/simple_hstore_accessor/pulls/comments{/number}","comments_url":"https://api.github.com/repos/abak-press/simple_hstore_accessor/issues/3/comments","statuses_url":"https://api.github.com/repos/abak-press/simple_hstore_accessor/statuses/c63610e8a6d3f9ace347f3f09b95eaf4824f041b","head":{"label":"folklore:master","ref":"master","sha":"c63610e8a6d3f9ace347f3f09b95eaf4824f041b","user":{"login":"folklore","id":1191354,"avatar_url":"https://avatars.githubusercontent.com/u/1191354?v=3","gravatar_id":"","url":"https://api.github.com/users/folklore","html_url":"https://github.com/folklore","followers_url":"https://api.github.com/users/folklore/followers","following_url":"https://api.github.com/users/folklore/following{/other_user}","gists_url":"https://api.github.com/users/folklore/gists{/gist_id}","starred_url":"https://api.github.com/users/folklore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/folklore/subscriptions","organizations_url":"https://api.github.com/users/folklore/orgs","repos_url":"https://api.github.com/users/folklore/repos","events_url":"https://api.github.com/users/folklore/events{/privacy}","received_events_url":"https://api.github.com/users/folklore/received_events","type":"User","site_admin":false},"repo":{"id":41745492,"name":"simple_hstore_accessor","full_name":"folklore/simple_hstore_accessor","owner":{"login":"folklore","id":1191354,"avatar_url":"https://avatars.githubusercontent.com/u/1191354?v=3","gravatar_id":"","url":"https://api.github.com/users/folklore","html_url":"https://github.com/folklore","followers_url":"https://api.github.com/users/folklore/followers","following_url":"https://api.github.com/users/folklore/following{/other_user}","gists_url":"https://api.github.com/users/folklore/gists{/gist_id}","starred_url":"https://api.github.com/users/folklore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/folklore/subscriptions","organizations_url":"https://api.github.com/users/folklore/orgs","repos_url":"https://api.github.com/users/folklore/repos","events_url":"https://api.github.com/users/folklore/events{/privacy}","received_events_url":"https://api.github.com/users/folklore/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/folklore/simple_hstore_accessor","description":"","fork":true,"url":"https://api.github.com/repos/folklore/simple_hstore_accessor","forks_url":"https://api.github.com/repos/folklore/simple_hstore_accessor/forks","keys_url":"https://api.github.com/repos/folklore/simple_hstore_accessor/keys{/key_id}","collaborators_url":"https://api.github.com/repos/folklore/simple_hstore_accessor/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/folklore/simple_hstore_accessor/teams","hooks_url":"https://api.github.com/repos/folklore/simple_hstore_accessor/hooks","issue_events_url":"https://api.github.com/repos/folklore/simple_hstore_accessor/issues/events{/number}","events_url":"https://api.github.com/repos/folklore/simple_hstore_accessor/events","assignees_url":"https://api.github.com/repos/folklore/simple_hstore_accessor/assignees{/user}","branches_url":"https://api.github.com/repos/folklore/simple_hstore_accessor/branches{/branch}","tags_url":"https://api.github.com/repos/folklore/simple_hstore_accessor/tags","blobs_url":"https://api.github.com/repos/folklore/simple_hstore_accessor/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/folklore/simple_hstore_accessor/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/folklore/simple_hstore_accessor/git/refs{/sha}","trees_url":"https://api.github.com/repos/folklore/simple_hstore_accessor/git/trees{/sha}","statuses_url":"https://api.github.com/repos/folklore/simple_hstore_accessor/statuses/{sha}","languages_url":"https://api.github.com/repos/folklore/simple_hstore_accessor/languages","stargazers_url":"https://api.github.com/repos/folklore/simple_hstore_accessor/stargazers","contributors_url":"https://api.github.com/repos/folklore/simple_hstore_accessor/contributors","subscribers_url":"https://api.github.com/repos/folklore/simple_hstore_accessor/subscribers","subscription_url":"https://api.github.com/repos/folklore/simple_hstore_accessor/subscription","commits_url":"https://api.github.com/repos/folklore/simple_hstore_accessor/commits{/sha}","git_commits_url":"https://api.github.com/repos/folklore/simple_hstore_accessor/git/commits{/sha}","comments_url":"https://api.github.com/repos/folklore/simple_hstore_accessor/comments{/number}","issue_comment_url":"https://api.github.com/repos/folklore/simple_hstore_accessor/issues/comments{/number}","contents_url":"https://api.github.com/repos/folklore/simple_hstore_accessor/contents/{+path}","compare_url":"https://api.github.com/repos/folklore/simple_hstore_accessor/compare/{base}...{head}","merges_url":"https://api.github.com/repos/folklore/simple_hstore_accessor/merges","archive_url":"https://api.github.com/repos/folklore/simple_hstore_accessor/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/folklore/simple_hstore_accessor/downloads","issues_url":"https://api.github.com/repos/folklore/simple_hstore_accessor/issues{/number}","pulls_url":"https://api.github.com/repos/folklore/simple_hstore_accessor/pulls{/number}","milestones_url":"https://api.github.com/repos/folklore/simple_hstore_accessor/milestones{/number}","notifications_url":"https://api.github.com/repos/folklore/simple_hstore_accessor/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/folklore/simple_hstore_accessor/labels{/name}","releases_url":"https://api.github.com/repos/folklore/simple_hstore_accessor/releases{/id}","created_at":"2015-09-01T15:04:27Z","updated_at":"2015-09-01T15:04:28Z","pushed_at":"2015-09-03T06:22:04Z","git_url":"git://github.com/folklore/simple_hstore_accessor.git","ssh_url":"git@github.com:folklore/simple_hstore_accessor.git","clone_url":"https://github.com/folklore/simple_hstore_accessor.git","svn_url":"https://github.com/folklore/simple_hstore_accessor","homepage":null,"size":84,"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":"abak-press:master","ref":"master","sha":"5556adf4077cc032d68fc8758b8a11b172cd9c4b","user":{"login":"abak-press","id":1352227,"avatar_url":"https://avatars.githubusercontent.com/u/1352227?v=3","gravatar_id":"","url":"https://api.github.com/users/abak-press","html_url":"https://github.com/abak-press","followers_url":"https://api.github.com/users/abak-press/followers","following_url":"https://api.github.com/users/abak-press/following{/other_user}","gists_url":"https://api.github.com/users/abak-press/gists{/gist_id}","starred_url":"https://api.github.com/users/abak-press/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abak-press/subscriptions","organizations_url":"https://api.github.com/users/abak-press/orgs","repos_url":"https://api.github.com/users/abak-press/repos","events_url":"https://api.github.com/users/abak-press/events{/privacy}","received_events_url":"https://api.github.com/users/abak-press/received_events","type":"Organization","site_admin":false},"repo":{"id":36712007,"name":"simple_hstore_accessor","full_name":"abak-press/simple_hstore_accessor","owner":{"login":"abak-press","id":1352227,"avatar_url":"https://avatars.githubusercontent.com/u/1352227?v=3","gravatar_id":"","url":"https://api.github.com/users/abak-press","html_url":"https://github.com/abak-press","followers_url":"https://api.github.com/users/abak-press/followers","following_url":"https://api.github.com/users/abak-press/following{/other_user}","gists_url":"https://api.github.com/users/abak-press/gists{/gist_id}","starred_url":"https://api.github.com/users/abak-press/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abak-press/subscriptions","organizations_url":"https://api.github.com/users/abak-press/orgs","repos_url":"https://api.github.com/users/abak-press/repos","events_url":"https://api.github.com/users/abak-press/events{/privacy}","received_events_url":"https://api.github.com/users/abak-press/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/abak-press/simple_hstore_accessor","description":"","fork":false,"url":"https://api.github.com/repos/abak-press/simple_hstore_accessor","forks_url":"https://api.github.com/repos/abak-press/simple_hstore_accessor/forks","keys_url":"https://api.github.com/repos/abak-press/simple_hstore_accessor/keys{/key_id}","collaborators_url":"https://api.github.com/repos/abak-press/simple_hstore_accessor/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/abak-press/simple_hstore_accessor/teams","hooks_url":"https://api.github.com/repos/abak-press/simple_hstore_accessor/hooks","issue_events_url":"https://api.github.com/repos/abak-press/simple_hstore_accessor/issues/events{/number}","events_url":"https://api.github.com/repos/abak-press/simple_hstore_accessor/events","assignees_url":"https://api.github.com/repos/abak-press/simple_hstore_accessor/assignees{/user}","branches_url":"https://api.github.com/repos/abak-press/simple_hstore_accessor/branches{/branch}","tags_url":"https://api.github.com/repos/abak-press/simple_hstore_accessor/tags","blobs_url":"https://api.github.com/repos/abak-press/simple_hstore_accessor/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/abak-press/simple_hstore_accessor/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/abak-press/simple_hstore_accessor/git/refs{/sha}","trees_url":"https://api.github.com/repos/abak-press/simple_hstore_accessor/git/trees{/sha}","statuses_url":"https://api.github.com/repos/abak-press/simple_hstore_accessor/statuses/{sha}","languages_url":"https://api.github.com/repos/abak-press/simple_hstore_accessor/languages","stargazers_url":"https://api.github.com/repos/abak-press/simple_hstore_accessor/stargazers","contributors_url":"https://api.github.com/repos/abak-press/simple_hstore_accessor/contributors","subscribers_url":"https://api.github.com/repos/abak-press/simple_hstore_accessor/subscribers","subscription_url":"https://api.github.com/repos/abak-press/simple_hstore_accessor/subscription","commits_url":"https://api.github.com/repos/abak-press/simple_hstore_accessor/commits{/sha}","git_commits_url":"https://api.github.com/repos/abak-press/simple_hstore_accessor/git/commits{/sha}","comments_url":"https://api.github.com/repos/abak-press/simple_hstore_accessor/comments{/number}","issue_comment_url":"https://api.github.com/repos/abak-press/simple_hstore_accessor/issues/comments{/number}","contents_url":"https://api.github.com/repos/abak-press/simple_hstore_accessor/contents/{+path}","compare_url":"https://api.github.com/repos/abak-press/simple_hstore_accessor/compare/{base}...{head}","merges_url":"https://api.github.com/repos/abak-press/simple_hstore_accessor/merges","archive_url":"https://api.github.com/repos/abak-press/simple_hstore_accessor/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/abak-press/simple_hstore_accessor/downloads","issues_url":"https://api.github.com/repos/abak-press/simple_hstore_accessor/issues{/number}","pulls_url":"https://api.github.com/repos/abak-press/simple_hstore_accessor/pulls{/number}","milestones_url":"https://api.github.com/repos/abak-press/simple_hstore_accessor/milestones{/number}","notifications_url":"https://api.github.com/repos/abak-press/simple_hstore_accessor/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/abak-press/simple_hstore_accessor/labels{/name}","releases_url":"https://api.github.com/repos/abak-press/simple_hstore_accessor/releases{/id}","created_at":"2015-06-02T06:10:23Z","updated_at":"2015-06-02T09:49:46Z","pushed_at":"2015-09-03T06:22:04Z","git_url":"git://github.com/abak-press/simple_hstore_accessor.git","ssh_url":"git@github.com:abak-press/simple_hstore_accessor.git","clone_url":"https://github.com/abak-press/simple_hstore_accessor.git","svn_url":"https://github.com/abak-press/simple_hstore_accessor","homepage":null,"size":187,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/abak-press/simple_hstore_accessor/pulls/3"},"html":{"href":"https://github.com/abak-press/simple_hstore_accessor/pull/3"},"issue":{"href":"https://api.github.com/repos/abak-press/simple_hstore_accessor/issues/3"},"comments":{"href":"https://api.github.com/repos/abak-press/simple_hstore_accessor/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/abak-press/simple_hstore_accessor/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/abak-press/simple_hstore_accessor/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/abak-press/simple_hstore_accessor/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/abak-press/simple_hstore_accessor/statuses/c63610e8a6d3f9ace347f3f09b95eaf4824f041b"}}}}