From af79330646c702c7c71e0df8fadbcc7ecb049b32 Mon Sep 17 00:00:00 2001 From: voodoorai2000 Date: Tue, 26 Mar 2019 12:13:56 +0100 Subject: [PATCH] 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. --- spec/lib/tasks/dashboards_spec.rb | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/spec/lib/tasks/dashboards_spec.rb b/spec/lib/tasks/dashboards_spec.rb index 745f267f4..434f2b249 100644 --- a/spec/lib/tasks/dashboards_spec.rb +++ b/spec/lib/tasks/dashboards_spec.rb @@ -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