Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Remove parametrized module test

Erlang/OTP R16, coming soon, will do away with parameterized modules
(see Issue 4 under http://www.erlang.org/news/35 for details).
  • Loading branch information...
commit 633a5962403cae487dffc8a74d31e66edb581f64 1 parent d6230ae
@norton authored
Showing with 0 additions and 33 deletions.
  1. +0 −7 test/meck_test_parametrized_module.erl
  2. +0 −26 test/meck_tests.erl
View
7 test/meck_test_parametrized_module.erl
@@ -1,7 +0,0 @@
--module(meck_test_parametrized_module, [Var1, Var2]).
--export([which/0, var1/0, var2/0]).
-
-which() -> original.
-
-var1() -> {original, Var1}.
-var2() -> {original, Var2}.
View
26 test/meck_tests.erl
@@ -851,32 +851,6 @@ cannot_expect_bif_or_autogenerated_test() ->
meck:expect(unicode, module_info, 0, doh)),
?assertEqual(ok, meck:unload(unicode)).
-meck_parametrized_module_test() ->
- ?assertEqual(ok, meck:new(meck_test_parametrized_module)),
- ?assertEqual(ok, meck:expect(meck_test_parametrized_module, new,
- fun(V1, V2) ->
- {meck_test_parametrized_module, V1, V2}
- end)),
- ?assertEqual(ok, meck:expect(meck_test_parametrized_module, which, 1, mecked)),
- Object = meck_test_parametrized_module:new(var1, var2),
- ?assertEqual(mecked, Object:which()),
- ?assertEqual(ok, meck:unload(meck_test_parametrized_module)).
-
-meck_parametrized_module_passthrough_test() ->
- ?assertEqual(ok, meck:new(meck_test_parametrized_module, [passthrough])),
- ?assertEqual(ok, meck:expect(meck_test_parametrized_module, new,
- fun(V1, V2) ->
- {meck_test_parametrized_module, V1, V2}
- end)),
- ?assertEqual(ok, meck:expect(meck_test_parametrized_module, var2,
- fun({_, _Var1, Var2} = _This) ->
- {mecked, Var2}
- end)),
- Object = meck_test_parametrized_module:new(var1, var2),
- ?assertEqual({original, var1}, Object:var1()),
- ?assertEqual({mecked, var2}, Object:var2()),
- ?assertEqual(ok, meck:unload(meck_test_parametrized_module)).
-
%%==============================================================================
%% Internal Functions
%%==============================================================================
Please sign in to comment.
Something went wrong with that request. Please try again.