add spec to satisfy codeclimate

This commit is contained in:
Karol
2019-06-16 16:08:48 +02:00
parent 3941c43ef3
commit 4bea81be31

18
spec/db/seeds_spec.rb Normal file
View File

@ -0,0 +1,18 @@
# frozen_string_literal: true
require 'rails_helper'
describe 'seeds' do
subject(:seed) { Rake::Task['db:seed'].invoke }
before do
CodeOcean::Application.load_tasks
allow(Rails).to receive(:env) { 'development'.inquiry }
end
describe 'execute db:seed' do
it 'collects the test results' do
expect { seed }.not_to raise_error(StandardError)
end
end
end