In Rspec, I'd do something like obj.should_receive(:method_name).with("foo",anything) to specify a case where obj.method_name() should be called and the first argument must be "foo" but the second argument can be whatever.
Is there a way to do the equivalent in Jasmine?
expect(obj.method_name).toHaveBeenCalledWith('foo',anything); //doesn't work, but would be nice if it did...
The code in question is a NodeJS app that calls memcache client's get method passing "foo" and an anonymous function. I just want to assert that "foo" is passed as the first argument. Suggestions?