Minor change in existing spec to user the service

This commit is contained in:
Luka Murn 2018-04-20 16:31:28 +02:00
parent 6218907d31
commit 611a25ca9f

View file

@ -13,11 +13,7 @@ describe RepositoryDatatableService do
data_type: :RepositoryListValue
end
let!(:repository_state) do
RepositoryTableState.create(
repository: repository,
user: user,
state: Constants::REPOSITORY_TABLE_DEFAULT_STATE
)
RepositoryTableStateService.new(user, repository).create_default_state
end
let!(:repository_row) do
create :repository_row, name: 'A row',