Skip to content

Commit

Permalink
Revert "disable failing constant access test"
Browse files Browse the repository at this point in the history
This reverts commit d383692.
  • Loading branch information
rtomayko committed Aug 1, 2010
1 parent d2e2601 commit 81e6b3f
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions test/tilt_template_test.rb
Expand Up @@ -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.