Permalink
Browse files

Revert "disable failing constant access test"

This reverts commit d383692.
  • Loading branch information...
1 parent d2e2601 commit 81e6b3f82c0d4d81c363bdc9a02e17a40f0a598f @rtomayko committed Aug 1, 2010
Showing with 4 additions and 6 deletions.
  1. +4 −6 test/tilt_template_test.rb
@@ -150,10 +150,8 @@ class FastPerson < Person
include Tilt::CompileSite
end
- # FAILING CONSTANT TEST. DISABLED FOR 1.0.
-
- # test "template which accesses a constant with Tilt::CompileSite" do
- # inst = SourceGeneratingMockTemplate.new { |t| 'Hey #{CONSTANT}!' }
- # assert_equal "Hey Bob!", inst.render(FastPerson.new("Joe"))
- # end
+ test "template which accesses a constant with Tilt::CompileSite" do
+ inst = SourceGeneratingMockTemplate.new { |t| 'Hey #{CONSTANT}!' }
+ assert_equal "Hey Bob!", inst.render(FastPerson.new("Joe"))
+ end
end

0 comments on commit 81e6b3f

Please sign in to comment.