Proposals dashboard refactored to dashboard.
Added missing specs for the dashboard.
This commit is contained in:
Juan Salvador Pérez García
2018-07-24 15:52:43 +02:00
parent 0ea0a0031c
commit e5f9cf6710
82 changed files with 1131 additions and 694 deletions

View File

@@ -0,0 +1,15 @@
require 'rails_helper'
describe Dashboard::AdministratorTask do
subject { build :dashboard_administrator_task, source: executed_action }
let(:executed_action) { build :dashboard_executed_action }
it { should be_valid }
context 'when source is nil' do
let(:executed_action) { nil }
it { should_not be_valid }
end
end