fix: create review_vote table in unit fixtures for review delete. Refs EventHub/EventHubBack#47
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
-include_lib("eunit/include/eunit.hrl").
|
-include_lib("eunit/include/eunit.hrl").
|
||||||
-include("records.hrl").
|
-include("records.hrl").
|
||||||
|
|
||||||
-define(TABLES, [review]).
|
-define(TABLES, [review, review_vote]).
|
||||||
|
|
||||||
setup() ->
|
setup() ->
|
||||||
eh_test_support:start_mnesia(),
|
eh_test_support:start_mnesia(),
|
||||||
|
|||||||
@@ -136,6 +136,8 @@ table_opts(booking) ->
|
|||||||
[{ram_copies, [node()]}, {attributes, record_info(fields, booking)}];
|
[{ram_copies, [node()]}, {attributes, record_info(fields, booking)}];
|
||||||
table_opts(review) ->
|
table_opts(review) ->
|
||||||
[{ram_copies, [node()]}, {attributes, record_info(fields, review)}];
|
[{ram_copies, [node()]}, {attributes, record_info(fields, review)}];
|
||||||
|
table_opts(review_vote) ->
|
||||||
|
[{ram_copies, [node()]}, {attributes, record_info(fields, review_vote)}];
|
||||||
table_opts(report) ->
|
table_opts(report) ->
|
||||||
[{ram_copies, [node()]}, {attributes, record_info(fields, report)}];
|
[{ram_copies, [node()]}, {attributes, record_info(fields, report)}];
|
||||||
table_opts(banned_word) ->
|
table_opts(banned_word) ->
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
-include_lib("eunit/include/eunit.hrl").
|
-include_lib("eunit/include/eunit.hrl").
|
||||||
-include("records.hrl").
|
-include("records.hrl").
|
||||||
|
|
||||||
-define(TABLES, [user, admin, calendar, event, booking, review]).
|
-define(TABLES, [user, admin, calendar, event, booking, review, review_vote]).
|
||||||
|
|
||||||
setup() ->
|
setup() ->
|
||||||
eh_test_support:start_mnesia(),
|
eh_test_support:start_mnesia(),
|
||||||
|
|||||||
Reference in New Issue
Block a user