Remove unnecessary spec

This spec is giving some problems related to duplicity of records due to the way rake tasks are loaded.

It will soon become part of seeds anyways. Removing for now.
This commit is contained in:
voodoorai2000
2019-03-26 12:13:56 +01:00
parent f6526f4a45
commit af79330646

View File

@@ -80,27 +80,4 @@ describe "Dashboards Rake" do
end
describe "#create_basic_dashboard_actions_template" do
before do
Rake.application.rake_require "tasks/dashboards"
Rake::Task.define_task(:environment)
ActionMailer::Base.deliveries.clear
end
let :run_rake_task do
Rake::Task["dashboards:create_basic_dashboard_actions_template"].reenable
Rake.application.invoke_task "dashboards:create_basic_dashboard_actions_template"
end
it "Create 34 basic dashboad actions template" do
expect(Dashboard::Action.count).to eq 0
run_rake_task
expect(Dashboard::Action.count).to eq 34
end
end
end