Public view for suggested actions as well as resources has been
completelly redesigned.

Private side for this feature has been adapted as well in order to meet
the requirements.
This commit is contained in:
Juan Salvador Pérez García
2018-07-02 17:16:59 +02:00
parent 53baf983b5
commit 3c3f60dfcc
31 changed files with 290 additions and 158 deletions

View File

@@ -5,8 +5,7 @@ describe ProposalExecutedDashboardAction do
build :proposal_executed_dashboard_action,
proposal: proposal,
proposal_dashboard_action: proposal_dashboard_action,
executed_at: executed_at,
comments: comments
executed_at: executed_at
end
let(:proposal) { create :proposal }
@@ -15,7 +14,6 @@ describe ProposalExecutedDashboardAction do
end
let(:request_to_administrators) { false }
let(:executed_at) { Time.current }
let(:comments) { '' }
it { should be_valid }
@@ -40,17 +38,7 @@ describe ProposalExecutedDashboardAction do
context 'when the action sends a request to the administrators' do
let(:request_to_administrators) { true }
context 'and comments are blank' do
let(:comments) { '' }
it { should_not be_valid }
end
context 'and comments have value' do
let(:comments) { Faker::Lorem.sentence }
it { should be_valid }
end
it { should be_valid }
end
context 'when it has been already executed' do