Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update meck for OTP 18.0 #139

Merged
merged 2 commits into from
Apr 1, 2015
Merged

Commits on Mar 31, 2015

  1. Change macro name for namespaced types

    Meck used to have 'namespaced_dict' while Hamcrest recently introduced
    a similar macro, 'namespaced_types' for the same purpose.
    In OTP 18.0 the affected non-namespaced types were completely removed and
    using them results in a compile error instead of deprecation wagning in 17.
    So hamcrest.hrl relies on the precense of 'namespaced_types' macro
    to use the right type. Meck's test module meck_tests.erl includes this header
    so the 'namespaced_types' macro also have to be defined in meck's test.config.
    To eliminate duplication I chose to unite the above two macros and
    use the more generic 'namespaced_types' name.
    Péter Gömöri committed Mar 31, 2015
    Configuration menu
    Copy the full SHA
    79cb5c9 View commit details
    Browse the repository at this point in the history
  2. Update meck_cover for OTP 18.0

    In order to avoid creating temporary files meck_cover needs direct
    access to some unexported functions of cover.
    In OTP 18.0 the internal API of cover changed a bit and
    compile_beam/2 (which allows passing a binary instead just a filename)
    was replaced by compile_beams/1.
    
    See erlang/otp@ab435488
    Péter Gömöri committed Mar 31, 2015
    Configuration menu
    Copy the full SHA
    e3c9d24 View commit details
    Browse the repository at this point in the history