I’m using a expectation like this :
When I run my spec, it fails with the following message :
Spec::Mocks::MockExpectationError in ‘MiniGemServer should add a new gem
the repository after it has been uploaded’
#MiniGemServer::Repository:0xb11164 expected :add_gem with
:anything) but received it with (“test.txt”,
Shouldn’t it be working? The first argument is the same and I don’t
care about the second one as long as it is there. I also tried to
:anything with :string and got the same error.
Any idea why I get this?