test/test_adapter.rb in swift-0.6.0 vs test/test_adapter.rb in swift-0.6.1
- old
+ new
@@ -90,9 +90,13 @@
it 'returns a result set on Adapter#results' do
@db.execute('select * from users')
assert_kind_of Swift::Result, @db.results
end
+
+ it 'returns fields' do
+ assert_equal [ :id, :name, :created_at ], @sth.fields
+ end
end
#--
# TODO: Not sure how I feel about the block in write; feels like it's just there to get around the fields in the