test-harness 0.4.2 → 0.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.2
1
+ 0.4.3
data/lib/given.rb CHANGED
@@ -5,7 +5,7 @@ class TestHarness
5
5
 
6
6
  Dir.glob(Rails.root.join(TestHarness.autoload_path, 'given/*.rb')).each do |file|
7
7
  component = File.basename(file, '.rb')
8
- require "given/#{component}"
8
+ require "%s/given/%s" % [TestHarness.autoload_path, component]
9
9
  klass = ("TestHarness::Given::%s" % File.basename(file, '.rb').camelize).constantize
10
10
  include klass
11
11
  end
data/lib/test_harness.rb CHANGED
@@ -1,3 +1,5 @@
1
+ require 'configuration'
2
+
1
3
  class TestHarness
2
4
  class << self
3
5
  def configuration
@@ -25,7 +27,7 @@ class TestHarness
25
27
  end
26
28
 
27
29
  def autoload_path
28
- @path = Configuration.autoload_path || 'test_harness'
30
+ @path ||= configuration.autoload_path || 'test_harness'
29
31
  end
30
32
 
31
33
  def register_instance_option(scope, option_name, default_value = nil)
@@ -45,7 +47,6 @@ require 'ui_helper'
45
47
 
46
48
  require 'ui_component'
47
49
  require 'ui_component_helper'
48
- require 'configuration'
49
50
  require 'ui_driver'
50
51
  require 'ui_view'
51
52
  require 'mental_model'
data/lib/ui_helper.rb CHANGED
@@ -3,7 +3,7 @@ class TestHarness
3
3
  def self.register_ui_components
4
4
  Dir.glob(Rails.root.join(TestHarness.autoload_path, 'ui/*.rb')).each do |file|
5
5
  component = File.basename(file, '.rb')
6
- require "ui/#{component}"
6
+ require "%s/ui/%s" % [TestHarness.autoload_path, component]
7
7
  klass = ("TestHarness::%s::%s" % [component.camelize, self.name.split('::').last]).constantize
8
8
  TestHarness.register_instance_option(self, component, klass.new)
9
9
  klass.send(:include, TestHarness::UIComponentHelper)
data/test-harness.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "test-harness"
8
- s.version = "0.4.2"
8
+ s.version = "0.4.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Maher Hawash"]
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: test-harness
3
3
  version: !ruby/object:Gem::Version
4
- hash: 11
4
+ hash: 9
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 4
9
- - 2
10
- version: 0.4.2
9
+ - 3
10
+ version: 0.4.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Maher Hawash