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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user