![]() | Stubbing a class breaks previous test |
|
06 Oct 2010, 05:44
Andrew Porter (1 post) |
I’m following along in the book (great stuff, by the way). In section 7.2 on page 117 (B7.0), once I add the
If I remove the I posted a gist of my project_test.rb file here. My environment includes the following:
I placed Has anyone else experienced this problem? |
|
26 Dec 2010, 00:16
Artin Safari (1 post) |
Yes, I am experiencing the same problem. Were you able to resolve this? It seems to me like stubs or mocks are global when declared in an individual test. |
|
28 Dec 2010, 17:18
Enrique Temes (1 post) |
You need to update your Gemfile so that mocha is not required automatically. Update the mocha gem declaration so that it looks like this: gem ‘mocha’, :require => false |
| You must be logged in to comment |

