{"action":"created","comment":{"url":"https://api.github.com/repos/spree/spree/pulls/comments/52118457","id":52118457,"diff_hunk":"@@ -83,18 +83,18 @@ def initialize(user)\n     end\n \n     # Regression test for #3684\n-    context \"#edit\" do\n-      it \"does not refresh rates if the order is completed\" do\n-        allow(order).to receive_messages completed?: true\n-        expect(order).not_to receive :refresh_shipment_rates\n-        spree_get :edit, id: order.number\n+    describe \"#edit\" do\n+      before do\n+        allow(controller).to receive(:can_not_transition_without_customer_info)\n+        allow(order).to receive(:refresh_shipment_rates).with(Spree::ShippingMethod::DISPLAY_ON_FRONT_AND_BACK_END).and_return(true)\n       end\n \n-      it \"does refresh the rates if the order is incomplete\" do\n-        allow(order).to receive_messages completed?: false\n-        expect(order).to receive :refresh_shipment_rates\n+      after do\n         spree_get :edit, id: order.number\n       end\n+\n+      it { expect(controller).to receive(:can_not_transition_without_customer_info) }\n+      it { expect(order).to receive(:refresh_shipment_rates).with(Spree::ShippingMethod::DISPLAY_ON_FRONT_AND_BACK_END).and_return(true) }","path":"backend/spec/controllers/spree/admin/orders_controller_spec.rb","position":23,"original_position":23,"commit_id":"3a1bcbeffb11a9e535c5e64c6b27bd052bbadc15","original_commit_id":"3a1bcbeffb11a9e535c5e64c6b27bd052bbadc15","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":"Line is too long. [138/120]","created_at":"2016-02-07T14:46:11Z","updated_at":"2016-02-07T14:46:11Z","html_url":"https://github.com/spree/spree/pull/7009#discussion_r52118457","pull_request_url":"https://api.github.com/repos/spree/spree/pulls/7009","_links":{"self":{"href":"https://api.github.com/repos/spree/spree/pulls/comments/52118457"},"html":{"href":"https://github.com/spree/spree/pull/7009#discussion_r52118457"},"pull_request":{"href":"https://api.github.com/repos/spree/spree/pulls/7009"}}},"pull_request":{"url":"https://api.github.com/repos/spree/spree/pulls/7009","id":58547929,"html_url":"https://github.com/spree/spree/pull/7009","diff_url":"https://github.com/spree/spree/pull/7009.diff","patch_url":"https://github.com/spree/spree/pull/7009.patch","issue_url":"https://api.github.com/repos/spree/spree/issues/7009","number":7009,"state":"open","locked":false,"title":"Fixes #6693, Modify #edit in orders_controller","user":{"login":"nishant-cyro","id":1930749,"avatar_url":"https://avatars.githubusercontent.com/u/1930749?v=3","gravatar_id":"","url":"https://api.github.com/users/nishant-cyro","html_url":"https://github.com/nishant-cyro","followers_url":"https://api.github.com/users/nishant-cyro/followers","following_url":"https://api.github.com/users/nishant-cyro/following{/other_user}","gists_url":"https://api.github.com/users/nishant-cyro/gists{/gist_id}","starred_url":"https://api.github.com/users/nishant-cyro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nishant-cyro/subscriptions","organizations_url":"https://api.github.com/users/nishant-cyro/orgs","repos_url":"https://api.github.com/users/nishant-cyro/repos","events_url":"https://api.github.com/users/nishant-cyro/events{/privacy}","received_events_url":"https://api.github.com/users/nishant-cyro/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-02-07T14:46:08Z","updated_at":"2016-02-07T14:46:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"879037c07262a778e72006d368b78ce25cbac3fa","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/spree/spree/pulls/7009/commits","review_comments_url":"https://api.github.com/repos/spree/spree/pulls/7009/comments","review_comment_url":"https://api.github.com/repos/spree/spree/pulls/comments{/number}","comments_url":"https://api.github.com/repos/spree/spree/issues/7009/comments","statuses_url":"https://api.github.com/repos/spree/spree/statuses/3a1bcbeffb11a9e535c5e64c6b27bd052bbadc15","head":{"label":"vinsol:fixes_6693","ref":"fixes_6693","sha":"3a1bcbeffb11a9e535c5e64c6b27bd052bbadc15","user":{"login":"vinsol","id":72388,"avatar_url":"https://avatars.githubusercontent.com/u/72388?v=3","gravatar_id":"","url":"https://api.github.com/users/vinsol","html_url":"https://github.com/vinsol","followers_url":"https://api.github.com/users/vinsol/followers","following_url":"https://api.github.com/users/vinsol/following{/other_user}","gists_url":"https://api.github.com/users/vinsol/gists{/gist_id}","starred_url":"https://api.github.com/users/vinsol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vinsol/subscriptions","organizations_url":"https://api.github.com/users/vinsol/orgs","repos_url":"https://api.github.com/users/vinsol/repos","events_url":"https://api.github.com/users/vinsol/events{/privacy}","received_events_url":"https://api.github.com/users/vinsol/received_events","type":"Organization","site_admin":false},"repo":{"id":50100254,"name":"spree","full_name":"vinsol/spree","owner":{"login":"vinsol","id":72388,"avatar_url":"https://avatars.githubusercontent.com/u/72388?v=3","gravatar_id":"","url":"https://api.github.com/users/vinsol","html_url":"https://github.com/vinsol","followers_url":"https://api.github.com/users/vinsol/followers","following_url":"https://api.github.com/users/vinsol/following{/other_user}","gists_url":"https://api.github.com/users/vinsol/gists{/gist_id}","starred_url":"https://api.github.com/users/vinsol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vinsol/subscriptions","organizations_url":"https://api.github.com/users/vinsol/orgs","repos_url":"https://api.github.com/users/vinsol/repos","events_url":"https://api.github.com/users/vinsol/events{/privacy}","received_events_url":"https://api.github.com/users/vinsol/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/vinsol/spree","description":"Spree is a complete open source e-commerce solution for Ruby on Rails.","fork":true,"url":"https://api.github.com/repos/vinsol/spree","forks_url":"https://api.github.com/repos/vinsol/spree/forks","keys_url":"https://api.github.com/repos/vinsol/spree/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vinsol/spree/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vinsol/spree/teams","hooks_url":"https://api.github.com/repos/vinsol/spree/hooks","issue_events_url":"https://api.github.com/repos/vinsol/spree/issues/events{/number}","events_url":"https://api.github.com/repos/vinsol/spree/events","assignees_url":"https://api.github.com/repos/vinsol/spree/assignees{/user}","branches_url":"https://api.github.com/repos/vinsol/spree/branches{/branch}","tags_url":"https://api.github.com/repos/vinsol/spree/tags","blobs_url":"https://api.github.com/repos/vinsol/spree/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vinsol/spree/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vinsol/spree/git/refs{/sha}","trees_url":"https://api.github.com/repos/vinsol/spree/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vinsol/spree/statuses/{sha}","languages_url":"https://api.github.com/repos/vinsol/spree/languages","stargazers_url":"https://api.github.com/repos/vinsol/spree/stargazers","contributors_url":"https://api.github.com/repos/vinsol/spree/contributors","subscribers_url":"https://api.github.com/repos/vinsol/spree/subscribers","subscription_url":"https://api.github.com/repos/vinsol/spree/subscription","commits_url":"https://api.github.com/repos/vinsol/spree/commits{/sha}","git_commits_url":"https://api.github.com/repos/vinsol/spree/git/commits{/sha}","comments_url":"https://api.github.com/repos/vinsol/spree/comments{/number}","issue_comment_url":"https://api.github.com/repos/vinsol/spree/issues/comments{/number}","contents_url":"https://api.github.com/repos/vinsol/spree/contents/{+path}","compare_url":"https://api.github.com/repos/vinsol/spree/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vinsol/spree/merges","archive_url":"https://api.github.com/repos/vinsol/spree/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vinsol/spree/downloads","issues_url":"https://api.github.com/repos/vinsol/spree/issues{/number}","pulls_url":"https://api.github.com/repos/vinsol/spree/pulls{/number}","milestones_url":"https://api.github.com/repos/vinsol/spree/milestones{/number}","notifications_url":"https://api.github.com/repos/vinsol/spree/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vinsol/spree/labels{/name}","releases_url":"https://api.github.com/repos/vinsol/spree/releases{/id}","deployments_url":"https://api.github.com/repos/vinsol/spree/deployments","created_at":"2016-01-21T10:30:54Z","updated_at":"2016-01-21T10:31:01Z","pushed_at":"2016-02-07T14:45:18Z","git_url":"git://github.com/vinsol/spree.git","ssh_url":"git@github.com:vinsol/spree.git","clone_url":"https://github.com/vinsol/spree.git","svn_url":"https://github.com/vinsol/spree","homepage":"http://spreecommerce.com","size":74849,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":9,"forks":3,"open_issues":9,"watchers":0,"default_branch":"master"}},"base":{"label":"spree:master","ref":"master","sha":"0229d608658414a08106a89d57531d651649c793","user":{"login":"spree","id":56702,"avatar_url":"https://avatars.githubusercontent.com/u/56702?v=3","gravatar_id":"","url":"https://api.github.com/users/spree","html_url":"https://github.com/spree","followers_url":"https://api.github.com/users/spree/followers","following_url":"https://api.github.com/users/spree/following{/other_user}","gists_url":"https://api.github.com/users/spree/gists{/gist_id}","starred_url":"https://api.github.com/users/spree/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spree/subscriptions","organizations_url":"https://api.github.com/users/spree/orgs","repos_url":"https://api.github.com/users/spree/repos","events_url":"https://api.github.com/users/spree/events{/privacy}","received_events_url":"https://api.github.com/users/spree/received_events","type":"Organization","site_admin":false},"repo":{"id":3314,"name":"spree","full_name":"spree/spree","owner":{"login":"spree","id":56702,"avatar_url":"https://avatars.githubusercontent.com/u/56702?v=3","gravatar_id":"","url":"https://api.github.com/users/spree","html_url":"https://github.com/spree","followers_url":"https://api.github.com/users/spree/followers","following_url":"https://api.github.com/users/spree/following{/other_user}","gists_url":"https://api.github.com/users/spree/gists{/gist_id}","starred_url":"https://api.github.com/users/spree/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spree/subscriptions","organizations_url":"https://api.github.com/users/spree/orgs","repos_url":"https://api.github.com/users/spree/repos","events_url":"https://api.github.com/users/spree/events{/privacy}","received_events_url":"https://api.github.com/users/spree/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/spree/spree","description":"Spree is a complete open source e-commerce solution for Ruby on Rails.","fork":false,"url":"https://api.github.com/repos/spree/spree","forks_url":"https://api.github.com/repos/spree/spree/forks","keys_url":"https://api.github.com/repos/spree/spree/keys{/key_id}","collaborators_url":"https://api.github.com/repos/spree/spree/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/spree/spree/teams","hooks_url":"https://api.github.com/repos/spree/spree/hooks","issue_events_url":"https://api.github.com/repos/spree/spree/issues/events{/number}","events_url":"https://api.github.com/repos/spree/spree/events","assignees_url":"https://api.github.com/repos/spree/spree/assignees{/user}","branches_url":"https://api.github.com/repos/spree/spree/branches{/branch}","tags_url":"https://api.github.com/repos/spree/spree/tags","blobs_url":"https://api.github.com/repos/spree/spree/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/spree/spree/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/spree/spree/git/refs{/sha}","trees_url":"https://api.github.com/repos/spree/spree/git/trees{/sha}","statuses_url":"https://api.github.com/repos/spree/spree/statuses/{sha}","languages_url":"https://api.github.com/repos/spree/spree/languages","stargazers_url":"https://api.github.com/repos/spree/spree/stargazers","contributors_url":"https://api.github.com/repos/spree/spree/contributors","subscribers_url":"https://api.github.com/repos/spree/spree/subscribers","subscription_url":"https://api.github.com/repos/spree/spree/subscription","commits_url":"https://api.github.com/repos/spree/spree/commits{/sha}","git_commits_url":"https://api.github.com/repos/spree/spree/git/commits{/sha}","comments_url":"https://api.github.com/repos/spree/spree/comments{/number}","issue_comment_url":"https://api.github.com/repos/spree/spree/issues/comments{/number}","contents_url":"https://api.github.com/repos/spree/spree/contents/{+path}","compare_url":"https://api.github.com/repos/spree/spree/compare/{base}...{head}","merges_url":"https://api.github.com/repos/spree/spree/merges","archive_url":"https://api.github.com/repos/spree/spree/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/spree/spree/downloads","issues_url":"https://api.github.com/repos/spree/spree/issues{/number}","pulls_url":"https://api.github.com/repos/spree/spree/pulls{/number}","milestones_url":"https://api.github.com/repos/spree/spree/milestones{/number}","notifications_url":"https://api.github.com/repos/spree/spree/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/spree/spree/labels{/name}","releases_url":"https://api.github.com/repos/spree/spree/releases{/id}","deployments_url":"https://api.github.com/repos/spree/spree/deployments","created_at":"2008-03-10T14:45:35Z","updated_at":"2016-02-07T07:52:56Z","pushed_at":"2016-02-07T14:46:08Z","git_url":"git://github.com/spree/spree.git","ssh_url":"git@github.com:spree/spree.git","clone_url":"https://github.com/spree/spree.git","svn_url":"https://github.com/spree/spree","homepage":"http://spreecommerce.com","size":99869,"stargazers_count":7139,"watchers_count":7139,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3375,"mirror_url":null,"open_issues_count":228,"forks":3375,"open_issues":228,"watchers":7139,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/spree/spree/pulls/7009"},"html":{"href":"https://github.com/spree/spree/pull/7009"},"issue":{"href":"https://api.github.com/repos/spree/spree/issues/7009"},"comments":{"href":"https://api.github.com/repos/spree/spree/issues/7009/comments"},"review_comments":{"href":"https://api.github.com/repos/spree/spree/pulls/7009/comments"},"review_comment":{"href":"https://api.github.com/repos/spree/spree/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/spree/spree/pulls/7009/commits"},"statuses":{"href":"https://api.github.com/repos/spree/spree/statuses/3a1bcbeffb11a9e535c5e64c6b27bd052bbadc15"}}}}