test-harness 0.4.13 → 0.4.14
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 +1 -1
- data/lib/ui_component_helper.rb +10 -2
- data/test-harness.gemspec +2 -2
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.4.
|
1
|
+
0.4.14
|
data/lib/ui_component_helper.rb
CHANGED
@@ -32,7 +32,11 @@ class TestHarness
|
|
32
32
|
# component.
|
33
33
|
def method_missing(name, *args, &block)
|
34
34
|
if respond_to?(name)
|
35
|
-
|
35
|
+
if component.within
|
36
|
+
browser.within(component.within) do
|
37
|
+
browser.send(name, *args, &block)
|
38
|
+
end
|
39
|
+
else
|
36
40
|
browser.send(name, *args, &block)
|
37
41
|
end
|
38
42
|
else
|
@@ -61,7 +65,11 @@ class TestHarness
|
|
61
65
|
|
62
66
|
# Since Kernel#select is defined, we have to override it specifically here.
|
63
67
|
def select(*args, &block)
|
64
|
-
|
68
|
+
if component.within
|
69
|
+
browser.within(component.within) do
|
70
|
+
browser.select(*args, &block)
|
71
|
+
end
|
72
|
+
else
|
65
73
|
browser.select(*args, &block)
|
66
74
|
end
|
67
75
|
end
|
data/test-harness.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "test-harness"
|
8
|
-
s.version = "0.4.
|
8
|
+
s.version = "0.4.14"
|
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"]
|
12
|
-
s.date = "2013-04-
|
12
|
+
s.date = "2013-04-28"
|
13
13
|
s.description = "A test harness for rspec and cucumber which allows for separating responsibility between setting up the context and interacting with the browser, and cleaning up the step definition files."
|
14
14
|
s.email = "gmhawash@gmail.com"
|
15
15
|
s.extra_rdoc_files = [
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: test-harness
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.14
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-04-
|
12
|
+
date: 2013-04-28 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|
@@ -146,7 +146,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
146
146
|
version: '0'
|
147
147
|
segments:
|
148
148
|
- 0
|
149
|
-
hash: -
|
149
|
+
hash: -2887427416671466432
|
150
150
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
151
151
|
none: false
|
152
152
|
requirements:
|