Add mirror method test
diff --git a/test/mustache_test.dart b/test/mustache_test.dart
index 35904c9..9f66358 100644
--- a/test/mustache_test.dart
+++ b/test/mustache_test.dart
@@ -602,6 +602,12 @@
.renderString(new Foo()..bar = 'bob');
expect(output, equals('_bob_'));
});
+
+ test('Simple field', () {
+ var output = parse('_{{jim}}_')
+ .renderString(new Foo());
+ expect(output, equals('_bob_'));
+ });
test('Lambda', () {
var output = parse('_{{lambda}}_')
@@ -706,4 +712,5 @@
class Foo {
String bar;
Function lambda;
+ jim() => 'bob';
}