diff options
author | Xavier Noria <fxn@hashref.com> | 2016-08-06 18:50:17 +0200 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2016-08-06 18:50:17 +0200 |
commit | 4b6c68dfb810c836f87587a16353317d1a180805 (patch) | |
tree | bebdbb90baa5f07de0688ec255ee18b460053d18 /actionview/test/template/test_test.rb | |
parent | 66a7cfa91045e05f134efc9ac0e226e66161e2e6 (diff) | |
download | rails-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/test_test.rb')
-rw-r--r-- | actionview/test/template/test_test.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/actionview/test/template/test_test.rb b/actionview/test/template/test_test.rb index e1ff639979..47d57c0c04 100644 --- a/actionview/test/template/test_test.rb +++ b/actionview/test/template/test_test.rb @@ -1,4 +1,4 @@ -require 'abstract_unit' +require "abstract_unit" module PeopleHelper def title(text) @@ -41,7 +41,7 @@ class PeopleHelperTest < ActionView::TestCase extend ActiveModel::Naming def to_model; self; end def persisted?; true; end - def self.name; 'Minitest::Mock'; end + def self.name; "Minitest::Mock"; end }.new "David" the_model = nil @@ -60,7 +60,7 @@ class PeopleHelperTest < ActionView::TestCase def with_test_route_set with_routing do |set| set.draw do - get 'people', :to => 'people#index', :as => :people + get "people", :to => "people#index", :as => :people end yield end @@ -84,7 +84,7 @@ class CrazySymbolHelperTest < ActionView::TestCase end class CrazyStringHelperTest < ActionView::TestCase - tests 'people' + tests "people" def test_set_helper_class_using_string assert_equal PeopleHelper, self.class.helper_class |