make tests runnable from basic rebar.config for users who have meck on path already

This commit is contained in:
alisdair sullivan 2012-03-06 19:59:49 -08:00
parent b5c2e3757b
commit 5155c96ac7
4 changed files with 8 additions and 3 deletions

View file

@ -1,7 +1,12 @@
%% edit eunit_test_path if you want to run your own tests, use "../" not
%% "./" as rebar changes working dir to .eunit when running tests
{eunit_compile_opts, [{d, eunit_test_path, "../test/cases"}]}.
%% uncomment to get verbose output from test suite
%% {eunit_opts, [verbose]}.
{erl_opts, [
{i, "include"},
{i, "src"},
{src_dirs, ["src"]},
warn_unused_vars,

View file

@ -40,7 +40,7 @@ decoder(Handler, State, Opts) ->
-include("../include/jsx_opts.hrl").
-include("jsx_opts.hrl").
%% whitespace

View file

@ -39,7 +39,7 @@ encoder(Handler, State, Opts) ->
-include("../include/jsx_opts.hrl").
-include("jsx_opts.hrl").
-ifndef(error).

View file

@ -27,7 +27,7 @@
-export([extract_opts/1]).
-export([json_escape/2]).
-include("../include/jsx_opts.hrl").
-include("jsx_opts.hrl").
%% parsing of jsx opts