aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/test/template/log_subscriber_test.rb
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2016-08-06 18:50:17 +0200
committerXavier Noria <fxn@hashref.com>2016-08-06 18:50:17 +0200
commit4b6c68dfb810c836f87587a16353317d1a180805 (patch)
treebebdbb90baa5f07de0688ec255ee18b460053d18 /actionview/test/template/log_subscriber_test.rb
parent66a7cfa91045e05f134efc9ac0e226e66161e2e6 (diff)
downloadrails-4b6c68dfb810c836f87587a16353317d1a180805.tar.gz
rails-4b6c68dfb810c836f87587a16353317d1a180805.tar.bz2
rails-4b6c68dfb810c836f87587a16353317d1a180805.zip
applies new string literal convention in actionview/test
The current code base is not uniform. After some discussion, we have chosen to go with double quotes by default.
Diffstat (limited to 'actionview/test/template/log_subscriber_test.rb')
-rw-r--r--actionview/test/template/log_subscriber_test.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/actionview/test/template/log_subscriber_test.rb b/actionview/test/template/log_subscriber_test.rb
index 7683444bf0..f864999a8e 100644
--- a/actionview/test/template/log_subscriber_test.rb
+++ b/actionview/test/template/log_subscriber_test.rb
@@ -116,10 +116,10 @@ class AVLogSubscriberTest < ActiveSupport::TestCase
def test_render_collection_with_cached_set
Rails.stub(:root, File.expand_path(FIXTURE_LOAD_PATH)) do
def @view.view_cache_dependencies; []; end
- def @view.fragment_cache_key(*); 'ahoy `controller` dependency'; end
+ def @view.fragment_cache_key(*); "ahoy `controller` dependency"; end
- @view.render(partial: 'customers/customer', collection: [ Customer.new('david'), Customer.new('mary') ], cached: true,
- locals: { greeting: 'hi' })
+ @view.render(partial: "customers/customer", collection: [ Customer.new("david"), Customer.new("mary") ], cached: true,
+ locals: { greeting: "hi" })
wait
assert_equal 1, @logger.logged(:info).size