Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

28 lines (18 sloc) 0.327 kb
module Cequel
module SpecSupport
RowStub = Struct.new(:to_hash)
class ResultStub
def initialize(rows)
@rows = rows
end
def fetch
while row = fetch_row
yield RowStub.new(row)
end
end
def fetch_row
@rows.shift
end
end
end
end
Jump to Line
Something went wrong with that request. Please try again.