Permalink
Browse files

Minor updates to make rebar compatible

  • Loading branch information...
1 parent b91a1dd commit 09c53032536d7286249da1b4ea53b76a998bd4a4 @jtuple jtuple committed Mar 28, 2011
Showing with 17 additions and 5 deletions.
  1. 0 ebin/{em.app → em.app.maven}
  2. +9 −0 ebin/erlymock.app
  3. BIN rebar
  4. +3 −0 rebar.config
  5. +5 −5 src/em.erl
File renamed without changes.
View
@@ -0,0 +1,9 @@
+{application, erlymock,
+ [{description, "An EasyMock inspired mocking library for erlang."},
+ {vsn, "3.0.0"},
+ {modules, [em]},
+ {registered, []},
+ {included_applications, []},
+ {applications, [kernel, stdlib]},
+ {env, []},
+ {start_phases, []}]}.
View
BIN rebar
Binary file not shown.
View
@@ -0,0 +1,3 @@
+{require_otp_vsn, "R13B04|R14"}.
+{cover_enabled, true}.
+{erl_opts, [debug_info, fail_on_warning]}.
View
@@ -462,8 +462,8 @@ invoke(M, Mod, Fun, Args) ->
%%------------------------------------------------------------------------------
unload_mock_modules(#state{mocked_modules = MMs}) ->
[begin
- code:delete(Mod),
- code:purge(Mod),
+ code:delete(Mod),
+ code:purge(Mod),
case MaybeBin of
nothing ->
ignore;
@@ -473,8 +473,8 @@ unload_mock_modules(#state{mocked_modules = MMs}) ->
end
|| {Mod, MaybeBin} <- MMs].
-test() ->
- ok.
+%% test() ->
+%% ok.
%%------------------------------------------------------------------------------
%% @private
@@ -491,7 +491,7 @@ install_mock_modules(#state{strict = ExpectationsStrict,
install_mock_module(Mod, Expectations) ->
MaybeBin = get_cover_compiled_binary(Mod),
ModHeaderSyn = [erl_syntax:attribute(erl_syntax:atom(module),
- [erl_syntax:atom(Mod)]),
+ [erl_syntax:atom(Mod)]),
erl_syntax:attribute(erl_syntax:atom(compile),
[erl_syntax:list(
[erl_syntax:atom(export_all)])])],

0 comments on commit 09c5303

Please sign in to comment.