diff options
author | José Valim <jose.valim@gmail.com> | 2010-06-07 10:13:41 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-06-07 10:13:41 +0200 |
commit | 5273bd97e6746bd5bdc2450ad5a2d60f6a6eb7ae (patch) | |
tree | 23d99be0735ada0ea0be1b84fdca31cf449263d3 /actionpack/test | |
parent | b3d2080278fc2b17d64010c3bfb149a08583b667 (diff) | |
download | rails-5273bd97e6746bd5bdc2450ad5a2d60f6a6eb7ae.tar.gz rails-5273bd97e6746bd5bdc2450ad5a2d60f6a6eb7ae.tar.bz2 rails-5273bd97e6746bd5bdc2450ad5a2d60f6a6eb7ae.zip |
Make AP test suite green once again and speed up performance in layouts lookup for some cases.
Diffstat (limited to 'actionpack/test')
-rw-r--r-- | actionpack/test/template/lookup_context_test.rb | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/actionpack/test/template/lookup_context_test.rb b/actionpack/test/template/lookup_context_test.rb index df1aa2edb2..cc71cb42d0 100644 --- a/actionpack/test/template/lookup_context_test.rb +++ b/actionpack/test/template/lookup_context_test.rb @@ -26,18 +26,6 @@ class LookupContextTest < ActiveSupport::TestCase assert_equal :en, @lookup_context.locale end - test "allows me to update details" do - @lookup_context.update_details(:formats => [:html], :locale => :pt) - assert_equal [:html], @lookup_context.formats - assert_equal :pt, @lookup_context.locale - end - - test "allows me to update an specific detail" do - @lookup_context.update_details(:locale => :pt) - assert_equal :pt, I18n.locale - assert_equal :pt, @lookup_context.locale - end - test "allows me to freeze and retrieve frozen formats" do @lookup_context.formats.freeze assert @lookup_context.formats.frozen? @@ -54,7 +42,7 @@ class LookupContextTest < ActiveSupport::TestCase end test "provides getters and setters for formats" do - @lookup_context.formats = :html + @lookup_context.formats = [:html] assert_equal [:html], @lookup_context.formats end @@ -138,7 +126,7 @@ class LookupContextTest < ActiveSupport::TestCase keys << @lookup_context.details_key assert_equal 2, keys.uniq.size - @lookup_context.formats = :html + @lookup_context.formats = [:html] keys << @lookup_context.details_key assert_equal 3, keys.uniq.size |