From 762e3f05f3d372cb32570db0deeef27232c4dd00 Mon Sep 17 00:00:00 2001 From: Ryuta Kamizono Date: Sun, 7 Aug 2016 17:50:59 +0900 Subject: Add `Style/EmptyLines` in `.rubocop.yml` and remove extra empty lines --- actionview/lib/action_view/dependency_tracker.rb | 1 - actionview/test/active_record_unit.rb | 1 - actionview/test/template/date_helper_test.rb | 2 -- actionview/test/template/form_helper_test.rb | 1 - actionview/test/template/form_options_helper_test.rb | 1 - actionview/test/template/form_tag_helper_test.rb | 1 - 6 files changed, 7 deletions(-) (limited to 'actionview') diff --git a/actionview/lib/action_view/dependency_tracker.rb b/actionview/lib/action_view/dependency_tracker.rb index 67d98e9721..451eeec9d6 100644 --- a/actionview/lib/action_view/dependency_tracker.rb +++ b/actionview/lib/action_view/dependency_tracker.rb @@ -105,7 +105,6 @@ module ActionView attr_reader :name, :template private :name, :template - private def source template.source diff --git a/actionview/test/active_record_unit.rb b/actionview/test/active_record_unit.rb index c757c3392e..62ca2779fa 100644 --- a/actionview/test/active_record_unit.rb +++ b/actionview/test/active_record_unit.rb @@ -24,7 +24,6 @@ unless defined?(ActiveRecord) && defined?(FixtureSet) end $stderr.flush - # Define the rest of the connector class ActiveRecordTestConnector class << self diff --git a/actionview/test/template/date_helper_test.rb b/actionview/test/template/date_helper_test.rb index a40bc1c131..d83be49f40 100644 --- a/actionview/test/template/date_helper_test.rb +++ b/actionview/test/template/date_helper_test.rb @@ -1318,7 +1318,6 @@ class DateHelperTest < ActionView::TestCase expected << %(\n\n\n) expected << "\n" - expected << %(\n" @@ -1953,7 +1952,6 @@ class DateHelperTest < ActionView::TestCase concat f.date_select(:written_on) end - expected = %{\n} expected << %{\n} expected << %{\n} diff --git a/actionview/test/template/form_helper_test.rb b/actionview/test/template/form_helper_test.rb index ed58818602..590e79d114 100644 --- a/actionview/test/template/form_helper_test.rb +++ b/actionview/test/template/form_helper_test.rb @@ -2257,7 +2257,6 @@ class FormHelperTest < ActionView::TestCase assert_dom_equal expected, output_buffer end - def test_nested_fields_for_with_nested_collections form_for(@post, as: "post[]") do |f| concat f.text_field(:title) diff --git a/actionview/test/template/form_options_helper_test.rb b/actionview/test/template/form_options_helper_test.rb index 84c322e522..18dfec1b37 100644 --- a/actionview/test/template/form_options_helper_test.rb +++ b/actionview/test/template/form_options_helper_test.rb @@ -57,7 +57,6 @@ class FormOptionsHelperTest < ActionView::TestCase ) end - def test_collection_options_with_preselected_value assert_dom_equal( "\n\n", diff --git a/actionview/test/template/form_tag_helper_test.rb b/actionview/test/template/form_tag_helper_test.rb index 52f32e9f0e..a639b56b0b 100644 --- a/actionview/test/template/form_tag_helper_test.rb +++ b/actionview/test/template/form_tag_helper_test.rb @@ -517,7 +517,6 @@ class FormTagHelperTest < ActionView::TestCase ) end - def test_button_tag assert_dom_equal( %(), -- cgit v1.2.3