acceptance_test 1.10.5 → 1.10.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/CHANGES +4 -0
- data/lib/acceptance_test/acceptance_config.rb +17 -7
- data/lib/acceptance_test/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
OWU5NDk2OWMwMTYzM2Y2NTEzODk1ZDY1ZTk0Zjc0NmI5MmM1MzYzNQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NDFlOTQ1ZjY3ZTc4NGRlM2Q3NWVlZThlNmFiZmZmOTIzY2YwZjFlMQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MWVmNGZlZWEwNjg3NjRjMmU3OTJiNTU2ZjQzNWQ4NTMxZTU3MTAzNmI5OWRi
|
10
|
+
Y2Q1MzllNjBmNjI0YWY2MWRhODVkOGQ0MzM1Yjk3YjQ4OTg0NGJhZjY1MmQ5
|
11
|
+
NWI0NGUxNzdlN2FmZDBhMjExYzZmZGRlZTg3NGQ4MmYyOGY0ZGU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
N2MwOWQ5M2NlYTM1NTJkMGI4MzllNGNjNzQ3OTY4MTVhZTMzMDBmMTlhOWUw
|
14
|
+
NmI5YjI5OGM3N2M3YzQ5OGU1MjRiYTJiNDRhY2ExY2I0YWFmMzdjOThkM2Vl
|
15
|
+
NjQ5MDUxMDg1OTA5YTY0MzI0ZWVjNGNjZTkzNjc4NmUwMWI5MmY=
|
data/CHANGES
CHANGED
@@ -64,6 +64,10 @@ class AcceptanceConfig
|
|
64
64
|
ENV['RESULTS_DIR'] ? detect_file(ENV['RESULTS_DIR'], name) : detect_file("acceptance_results", name)
|
65
65
|
end
|
66
66
|
|
67
|
+
def webapp_url name=:webapp_url
|
68
|
+
AcceptanceTest.instance.config[name]
|
69
|
+
end
|
70
|
+
|
67
71
|
def screenshots_dir
|
68
72
|
AcceptanceTest.instance.config[:screenshots_dir]
|
69
73
|
end
|
@@ -130,23 +134,29 @@ class AcceptanceConfig
|
|
130
134
|
|
131
135
|
target = ARGV.last unless target
|
132
136
|
|
133
|
-
if
|
134
|
-
|
137
|
+
if target
|
138
|
+
if File.directory?(target)
|
139
|
+
target_dir = target
|
140
|
+
else
|
141
|
+
target_dir = File.dirname(target)
|
142
|
+
end
|
135
143
|
else
|
136
|
-
target_dir =
|
144
|
+
target_dir = basedir
|
137
145
|
end
|
138
146
|
|
139
|
-
support_dir = "#{target_dir}/../support"
|
140
|
-
|
141
147
|
$: << File.expand_path("#{basedir}/support")
|
142
|
-
|
148
|
+
|
149
|
+
support_dir = File.expand_path("#{target_dir}/../support")
|
150
|
+
support_dir = File.expand_path("#{target_dir}/support") unless File.exist?(support_dir)
|
151
|
+
|
152
|
+
$: << support_dir if File.exist?(support_dir)
|
143
153
|
|
144
154
|
Dir.glob("#{support_dir}/**/steps/*_steps.rb").each do |name|
|
145
155
|
ext = File.extname(name)
|
146
156
|
|
147
157
|
require name[support_dir.length+1..name.length-ext.length-1]
|
148
158
|
end
|
149
|
-
|
159
|
+
end
|
150
160
|
|
151
161
|
def detect_file dir, name
|
152
162
|
ext = File.extname(name)
|