Skip to content

Instantly share code, notes, and snippets.

@kevsmith
Created September 8, 2011 20:34
Show Gist options
  • Select an option

  • Save kevsmith/1204590 to your computer and use it in GitHub Desktop.

Select an option

Save kevsmith/1204590 to your computer and use it in GitHub Desktop.
Puttin' the hurt on Erlang w/mocks
2> code:unstick_mod(os).
true
3> meck:new(os).
ok
4> meck:expect(os, timestamp, fun() -> 123 end).
Crash dump was written to: erl_crash.dump
The code server called the unloaded module `os'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment