module JsTestDriver # This is a class that given a directory name, puts all its *.html children # into a javascript file, so that they can later be used in the tests class HtmlFixture attr_reader :name, :namespace def initialize(directory_name, name = nil, namespace = nil) @name = name || "all" @namespace = namespace || "htmlFixtures" @data = {} load_data(directory_name) end def to_h @data end def to_s <