Fixed #239
Proposals dashboard refactored to dashboard. Added missing specs for the dashboard.
This commit is contained in:
15
spec/models/dashboard/administrator_task_spec.rb
Normal file
15
spec/models/dashboard/administrator_task_spec.rb
Normal 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
|
||||
|
||||
Reference in New Issue
Block a user