Remove unused variables
Detected thanks to the RSpec/LetSetup rule after updating rubocop-rspec.
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
shared_examples "followable" do |followable_class_name, followable_path, followable_path_arguments|
|
||||
let!(:arguments) { {} }
|
||||
let!(:followable) { create(followable_class_name) }
|
||||
let!(:followable_dom_name) { followable_class_name.tr("_", "-") }
|
||||
|
||||
def dom_id(record)
|
||||
ActionView::RecordIdentifier.dom_id(record)
|
||||
|
||||
@@ -1,10 +1,8 @@
|
||||
shared_examples "imageable" do |imageable_factory_name, imageable_path, imageable_path_arguments|
|
||||
let!(:administrator) { create(:user) }
|
||||
let!(:user) { create(:user) }
|
||||
let!(:imageable_arguments) { {} }
|
||||
let!(:imageables_arguments) { {} }
|
||||
let!(:imageable) { create(imageable_factory_name, author: user) }
|
||||
let!(:imageable_dom_name) { imageable_factory_name.parameterize }
|
||||
let!(:administrator) { create(:user) }
|
||||
let!(:user) { create(:user) }
|
||||
let!(:imageable_arguments) { {} }
|
||||
let!(:imageable) { create(imageable_factory_name, author: user) }
|
||||
|
||||
before do
|
||||
create(:administrator, user: administrator)
|
||||
|
||||
Reference in New Issue
Block a user