aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/template/lookup_context_test.rb
diff options
context:
space:
mode:
authorNick Sutterer <apotonick@gmail.com>2011-05-03 23:38:44 +0200
committerNick Sutterer <apotonick@gmail.com>2011-05-03 23:38:44 +0200
commit37f448e05e411cb07e829a0d93f6a83ee95ccdf3 (patch)
tree7428997c56cbb05d7e6158c5be372b9286a5f3b3 /actionpack/test/template/lookup_context_test.rb
parentbff374050d5a7e237fda98a1d4cc6256484e94f2 (diff)
downloadrails-37f448e05e411cb07e829a0d93f6a83ee95ccdf3.tar.gz
rails-37f448e05e411cb07e829a0d93f6a83ee95ccdf3.tar.bz2
rails-37f448e05e411cb07e829a0d93f6a83ee95ccdf3.zip
added :prefixes accessor to LookupContext.
Diffstat (limited to 'actionpack/test/template/lookup_context_test.rb')
-rw-r--r--actionpack/test/template/lookup_context_test.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/actionpack/test/template/lookup_context_test.rb b/actionpack/test/template/lookup_context_test.rb
index ff94cba59f..82ca7ba173 100644
--- a/actionpack/test/template/lookup_context_test.rb
+++ b/actionpack/test/template/lookup_context_test.rb
@@ -180,6 +180,12 @@ class LookupContextTest < ActiveSupport::TestCase
assert_not_equal template, old_template
end
+
+ test "responds to #prefixes" do
+ assert_equal nil, @lookup_context.prefixes
+ @lookup_context.prefixes = ["foo"]
+ assert_equal ["foo"], @lookup_context.prefixes
+ end
end
class LookupContextWithFalseCaching < ActiveSupport::TestCase