8000 Remove unused lets (#7291) · activeadmin/activeadmin@74825da · GitHub
[go: up one dir, main page]

Skip to content

Commit 74825da

Browse files
Remove unused lets (#7291)
1 parent a9547ef commit 74825da

File tree

7 files changed

+0
-8
lines changed

7 files changed

+0
-8
lines changed

spec/unit/belongs_to_spec.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
end
1010
end
1111

12-
let(:namespace) { ActiveAdmin.application.namespace(:admin) }
1312
let(:user_config) { ActiveAdmin.register User }
1413
let(:post_config) { ActiveAdmin.register(Post) { belongs_to :user } }
1514
let(:belongs_to) { post_config.belongs_to_config }

spec/unit/csv_builder_spec.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,8 +269,6 @@ def view_context
269269
end
270270
DummyController.new
271271
end
272-
let(:encoding) { Encoding::ASCII }
273-
let(:opts) { {} }
274272
let(:builder) do
275273
ActiveAdmin::CSVBuilder.new(encoding: encoding, encoding_options: opts) do
276274
column "おはようございます"

spec/unit/filters/active_filter_spec.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,6 @@ def self.name
243243
end
244244

245245
let(:user) { User.create! first_name: "John", last_name: "Doe" }
246-
let(:store) { resource_klass.create! name: "Store 1", user_id: user.id }
247246

248247
let(:search) do
249248
resource_klass.ransack(user_id_eq: user.id)

spec/unit/view_helpers/form_helper_spec.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
describe ".active_admin_form_for" do
66
let(:view) { mock_action_view }
77
let(:resource) { double "resource" }
8-
let(:default_options) { { builder: ActiveAdmin::FormBuilder } }
98

109
it "calls semantic_form_for with the ActiveAdmin form builder" do
1110
expect(view).to receive(:semantic_form_for).with(resource, builder: ActiveAdmin::FormBuilder)

spec/unit/views/components/attributes_table_spec.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,6 @@
210210
].each_with_index do |set, i|
211211
describe "for #{set[0]}" do
212212
let(:title) { set[0] }
213-
let(:content) { set[1] }
214213
let(:current_row) { table.find_by_tag("tr")[i] }
215214

216215
it "should have the title '#{set[0]}'" do

spec/unit/views/components/unsupported_browser_spec.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
RSpec.describe ActiveAdmin::Views::UnsupportedBrowser do
55
let(:helpers) { mock_action_view }
66
let(:namespace) { double :namespace, unsupported_browser_matcher: /MSIE [1-8]\.0/ }
7-
let(:component) { double :unsupported_browser_component }
87
let(:base) { ActiveAdmin::Views::Pages::Base.new }
98

109
def build_panel

spec/unit/views/pages/layout_spec.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
ActiveAdmin::Namespace.new(ActiveAdmin.application, :myspace)
2929
end
3030
let(:active_admin_application) { ActiveAdmin.application }
31-
let(:view_factory) { ActiveAdmin::ViewFactory.new }
3231

3332
let(:layout) do
3433
render_arbre_component assigns, helpers do

0 commit comments

Comments
 (0)
0