refactors notifications into concerns and shared examples

This commit is contained in:
rgarcia
2017-12-14 16:15:30 +01:00
parent 56a7c46c12
commit 2b52d26d82
35 changed files with 630 additions and 376 deletions

View File

@@ -9,6 +9,10 @@ feature 'Proposals' do
Setting['feature.proposals'] = true
end
context "Concerns" do
it_behaves_like 'notifiable in-app', Proposal
end
context 'Index' do
scenario 'Lists featured and regular proposals' do
featured_proposals = create_featured_proposals