diff --git a/test/helper.rb b/test/helper.rb
index <HASH>..<HASH> 100644
--- a/test/helper.rb
+++ b/test/helper.rb
@@ -131,6 +131,10 @@ class Env
 end
 
 class ViewEnv
+  def output_number
+     1337
+  end
+
   def person
     [{:name => 'Joe'}, {:name => 'Jack'}]
   end
diff --git a/test/slim/test_wrapper.rb b/test/slim/test_wrapper.rb
index <HASH>..<HASH> 100644
--- a/test/slim/test_wrapper.rb
+++ b/test/slim/test_wrapper.rb
@@ -29,4 +29,11 @@ ul
     assert_html '<ul><li>Andy</li><li>Atlanta</li><li>Fred</li><li>Melbourne</li><li>Daniel</li><li>Karlsruhe</li></ul>', source, :sections => true
   end
 
+  def test_method
+    source = %q{
+a href=output_number Link
+}
+    assert_html '<a href="1337">Link</a>', source, :sections => true
+  end
+
 end
add failing test (issue #<I>)