test-harness 0.4.9 → 0.4.10
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/.document +0 -0
- data/.rspec +0 -0
- data/.watchr +0 -0
- data/Gemfile +0 -0
- data/Gemfile.lock +12 -12
- data/LICENSE.txt +0 -0
- data/README.markdown +0 -0
- data/Rakefile +0 -0
- data/VERSION +1 -1
- data/lib/configuration.rb +0 -0
- data/lib/given.rb +0 -0
- data/lib/mental_model.rb +0 -0
- data/lib/test_harness.rb +0 -0
- data/lib/test_helper.rb +0 -0
- data/lib/ui_component.rb +0 -0
- data/lib/ui_component_helper.rb +5 -1
- data/lib/ui_driver.rb +0 -0
- data/lib/ui_helper.rb +0 -0
- data/lib/ui_view.rb +0 -0
- data/lib/utilities.rb +0 -0
- data/spec/fake_harness/given/given_test.rb +0 -0
- data/spec/fake_harness/ui/ui_test.rb +0 -0
- data/spec/lib/given_spec.rb +0 -0
- data/spec/lib/test_harness_spec.rb +0 -0
- data/spec/lib/test_helper_spec.rb +0 -0
- data/spec/lib/ui_component_helper_spec.rb +0 -0
- data/spec/lib/utilities_spec.rb +0 -0
- data/spec/spec_helper.rb +0 -0
- data/test-harness.gemspec +3 -3
- metadata +4 -4
data/.document
CHANGED
|
File without changes
|
data/.rspec
CHANGED
|
File without changes
|
data/.watchr
CHANGED
|
File without changes
|
data/Gemfile
CHANGED
|
File without changes
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
GEM
|
|
2
2
|
remote: http://rubygems.org/
|
|
3
3
|
specs:
|
|
4
|
-
diff-lcs (1.
|
|
4
|
+
diff-lcs (1.2.2)
|
|
5
5
|
gemcutter (0.7.1)
|
|
6
6
|
git (1.2.5)
|
|
7
7
|
jeweler (1.8.4)
|
|
@@ -9,18 +9,18 @@ GEM
|
|
|
9
9
|
git (>= 1.2.5)
|
|
10
10
|
rake
|
|
11
11
|
rdoc
|
|
12
|
-
json (1.7.
|
|
13
|
-
rake (0.
|
|
14
|
-
rdoc (
|
|
12
|
+
json (1.7.7)
|
|
13
|
+
rake (10.0.4)
|
|
14
|
+
rdoc (4.0.1)
|
|
15
15
|
json (~> 1.4)
|
|
16
|
-
rspec (2.
|
|
17
|
-
rspec-core (~> 2.
|
|
18
|
-
rspec-expectations (~> 2.
|
|
19
|
-
rspec-mocks (~> 2.
|
|
20
|
-
rspec-core (2.
|
|
21
|
-
rspec-expectations (2.
|
|
22
|
-
diff-lcs (
|
|
23
|
-
rspec-mocks (2.
|
|
16
|
+
rspec (2.13.0)
|
|
17
|
+
rspec-core (~> 2.13.0)
|
|
18
|
+
rspec-expectations (~> 2.13.0)
|
|
19
|
+
rspec-mocks (~> 2.13.0)
|
|
20
|
+
rspec-core (2.13.1)
|
|
21
|
+
rspec-expectations (2.13.0)
|
|
22
|
+
diff-lcs (>= 1.1.3, < 2.0)
|
|
23
|
+
rspec-mocks (2.13.0)
|
|
24
24
|
|
|
25
25
|
PLATFORMS
|
|
26
26
|
ruby
|
data/LICENSE.txt
CHANGED
|
File without changes
|
data/README.markdown
CHANGED
|
File without changes
|
data/Rakefile
CHANGED
|
File without changes
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.4.
|
|
1
|
+
0.4.10
|
data/lib/configuration.rb
CHANGED
|
File without changes
|
data/lib/given.rb
CHANGED
|
File without changes
|
data/lib/mental_model.rb
CHANGED
|
File without changes
|
data/lib/test_harness.rb
CHANGED
|
File without changes
|
data/lib/test_helper.rb
CHANGED
|
File without changes
|
data/lib/ui_component.rb
CHANGED
|
File without changes
|
data/lib/ui_component_helper.rb
CHANGED
|
@@ -97,7 +97,11 @@ class TestHarness
|
|
|
97
97
|
|
|
98
98
|
private
|
|
99
99
|
def component_path
|
|
100
|
-
|
|
100
|
+
case path = component.path
|
|
101
|
+
when Proc then path.call(mm)
|
|
102
|
+
else
|
|
103
|
+
path.gsub(/:\w+/) {|match| mm.subject.send(match.tr(':',''))}
|
|
104
|
+
end
|
|
101
105
|
end
|
|
102
106
|
|
|
103
107
|
# @private
|
data/lib/ui_driver.rb
CHANGED
|
File without changes
|
data/lib/ui_helper.rb
CHANGED
|
File without changes
|
data/lib/ui_view.rb
CHANGED
|
File without changes
|
data/lib/utilities.rb
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
data/spec/lib/given_spec.rb
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
data/spec/lib/utilities_spec.rb
CHANGED
|
File without changes
|
data/spec/spec_helper.rb
CHANGED
|
File without changes
|
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.10"
|
|
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-
|
|
12
|
+
s.date = "2013-03-31"
|
|
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 = [
|
|
@@ -50,7 +50,7 @@ Gem::Specification.new do |s|
|
|
|
50
50
|
s.homepage = "http://github.com/gmhawash/test_harness"
|
|
51
51
|
s.licenses = ["MIT"]
|
|
52
52
|
s.require_paths = ["lib"]
|
|
53
|
-
s.rubygems_version = "1.8.
|
|
53
|
+
s.rubygems_version = "1.8.23"
|
|
54
54
|
s.summary = "Mini test harness for rspec and cucumber"
|
|
55
55
|
|
|
56
56
|
if s.respond_to? :specification_version then
|
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.10
|
|
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-
|
|
12
|
+
date: 2013-03-31 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: rspec
|
|
@@ -145,7 +145,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
145
145
|
version: '0'
|
|
146
146
|
segments:
|
|
147
147
|
- 0
|
|
148
|
-
hash:
|
|
148
|
+
hash: 1560447206924822776
|
|
149
149
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
150
150
|
none: false
|
|
151
151
|
requirements:
|
|
@@ -154,7 +154,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
154
154
|
version: '0'
|
|
155
155
|
requirements: []
|
|
156
156
|
rubyforge_project:
|
|
157
|
-
rubygems_version: 1.8.
|
|
157
|
+
rubygems_version: 1.8.23
|
|
158
158
|
signing_key:
|
|
159
159
|
specification_version: 3
|
|
160
160
|
summary: Mini test harness for rspec and cucumber
|