Use symbols instead of constants for behaviours

This way we can be more flexible about the factory we can pass as
parameter.
This commit is contained in:
Javi Martín
2019-09-27 19:48:23 +02:00
parent b8d3f426a5
commit dcc9a6b561
7 changed files with 8 additions and 8 deletions

View File

@@ -8,7 +8,7 @@ describe "Legislation Proposals" do
let(:proposal) { create(:legislation_proposal) }
context "Concerns" do
it_behaves_like "notifiable in-app", Legislation::Proposal
it_behaves_like "notifiable in-app", :legislation_proposal
end
scenario "Only one menu element has 'active' CSS selector" do