test/factbase/test_query.rb in factbase-0.0.56 vs test/factbase/test_query.rb in factbase-0.0.57
- old
+ new
@@ -171,6 +171,13 @@
def test_with_nil_alias
maps = []
maps << { 'foo' => [42] }
assert(Factbase::Query.new(maps, Mutex.new, '(as bar (plus xxx 3))').each.to_a[0]['bar'].nil?)
end
+
+ def test_get_all_properties
+ maps = []
+ maps << { 'foo' => [42] }
+ f = Factbase::Query.new(maps, Mutex.new, '(always)').each.to_a[0]
+ assert(f.all_properties.include?('foo'))
+ end
end