test-harness 0.4.2 → 0.4.3
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/given.rb +1 -1
- data/lib/test_harness.rb +3 -2
- data/lib/ui_helper.rb +1 -1
- data/test-harness.gemspec +1 -1
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.4.
|
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
|
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
|
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
|
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
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:
|
4
|
+
hash: 9
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 4
|
9
|
-
-
|
10
|
-
version: 0.4.
|
9
|
+
- 3
|
10
|
+
version: 0.4.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Maher Hawash
|