Use named parameter in mappable shared example
Boolean arguments are harder to read, so we added a useless variable. This is the perfect scenario for a named parameter.
This commit is contained in:
@@ -16,7 +16,7 @@ describe "Budget Investments" do
|
||||
"",
|
||||
"management_budget_investment_path",
|
||||
{ "budget_id": "budget_id" },
|
||||
management = true
|
||||
management: true
|
||||
|
||||
context "Load" do
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
shared_examples "mappable" do |mappable_factory_name, mappable_association_name, mappable_new_path, mappable_edit_path, mappable_show_path, mappable_path_arguments, management = false|
|
||||
shared_examples "mappable" do |mappable_factory_name, mappable_association_name, mappable_new_path, mappable_edit_path, mappable_show_path, mappable_path_arguments, management: false|
|
||||
|
||||
include ActionView::Helpers
|
||||
|
||||
|
||||
Reference in New Issue
Block a user