{"action":"closed","issue":{"url":"https://api.github.com/repos/sinonjs/sinon/issues/965","repository_url":"https://api.github.com/repos/sinonjs/sinon","labels_url":"https://api.github.com/repos/sinonjs/sinon/issues/965/labels{/name}","comments_url":"https://api.github.com/repos/sinonjs/sinon/issues/965/comments","events_url":"https://api.github.com/repos/sinonjs/sinon/issues/965/events","html_url":"https://github.com/sinonjs/sinon/issues/965","id":126856513,"number":965,"title":"Restoring stubbed node modules with Sinon 1.17.2 does not work","user":{"login":"medialwerk","id":738512,"avatar_url":"https://avatars.githubusercontent.com/u/738512?v=3","gravatar_id":"","url":"https://api.github.com/users/medialwerk","html_url":"https://github.com/medialwerk","followers_url":"https://api.github.com/users/medialwerk/followers","following_url":"https://api.github.com/users/medialwerk/following{/other_user}","gists_url":"https://api.github.com/users/medialwerk/gists{/gist_id}","starred_url":"https://api.github.com/users/medialwerk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/medialwerk/subscriptions","organizations_url":"https://api.github.com/users/medialwerk/orgs","repos_url":"https://api.github.com/users/medialwerk/repos","events_url":"https://api.github.com/users/medialwerk/events{/privacy}","received_events_url":"https://api.github.com/users/medialwerk/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/sinonjs/sinon/labels/1.x","name":"1.x","color":"bfe5bf"},{"url":"https://api.github.com/repos/sinonjs/sinon/labels/Bug","name":"Bug","color":"e11d21"},{"url":"https://api.github.com/repos/sinonjs/sinon/labels/Help%20wanted","name":"Help wanted","color":"0052cc"},{"url":"https://api.github.com/repos/sinonjs/sinon/labels/Needs%20investigation","name":"Needs investigation","color":"207de5"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-01-15T11:35:21Z","updated_at":"2016-06-29T11:51:18Z","closed_at":"2016-06-29T11:51:17Z","body":"## Environment\r\n\r\n    Node v5.1.1\r\n    Sinon 1.17.2\r\n    CoffeeScript 1.10.0 (i guess its unimportant)\r\n\r\n## Test Case\r\n\r\n```coffeescript\r\ndescribe.only 'SinonTestCase', ->\r\n  sinonTestCase = null\r\n\r\n  beforeEach ->\r\n    sandbox = sinon.sandbox.create()\r\n    sinonTestCase = require './sinon_test_case.server'\r\n    console.log sinonTestCase.init.restore?\r\n    sandbox.stub sinonTestCase\r\n    console.log sinonTestCase.init.restore?\r\n\r\n  afterEach ->\r\n    sandbox.restore()\r\n    console.log sinonTestCase.init.restore?\r\n\r\n\r\n  it 'should work', ->\r\n    expect(true).to.be.true\r\n```\r\n\r\n```coffeescript\r\nmodule.exports =\r\n  init: ->\r\n    console.log 'Hello World'\r\n```\r\n\r\n## Expected result\r\n\r\n```bash\r\ninfo: [mongodb_adapter.coffee#null:105] MongoDB: Connected\r\n  SinonTestCase\r\nfalse\r\ntrue\r\n    ✓ should work\r\nfalse\r\n```\r\n\r\n## Actual result\r\n\r\n```bash\r\ninfo: [mongodb_adapter.coffee#null:105] MongoDB: Connected\r\n  SinonTestCase\r\nfalse\r\ntrue\r\n    ✓ should work\r\ntrue\r\n```\r\n\r\n## More info:\r\n\r\n    I updated sinon from version 1.16.1 to 1.17.2. Sinon 1.16.1 restores the modules correctly.\r\n\r\nThanks! :-)"}}
{"actor":{"display_login":"fatso83"}}