Sha256: 02b2853a522aa0e52bdaaa600525c1d97596883c05fe8d9c45dbf24f62a31f4b
Contents?: true
Size: 519 Bytes
Versions: 2
Compression:
Stored size: 519 Bytes
Contents
class TestHarness class UIHelper def self.register_ui_components Dir.glob(Rails.root.join('app', 'test_harness', 'ui/*.rb')).each do |file| component = File.basename(file, '.rb') klass = ("TestHarness::%s::%s" % [component.camelize, self.name.split('::').last]).constantize TestHarness.register_instance_option(self, component, klass.new) klass.send(:include, TestHarness::UIComponentHelper) klass.send(:include, TestHarness::TestHelper) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
test-harness-0.4.0 | lib/ui_helper.rb |
test-harness-0.3.0 | lib/ui_helper.rb |