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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ODAwZjEwODY5NzgxYTIzNmEwZTYzYzdkNWQ4NGE5ZDY2NzJkYzhkNg==
4
+ OWU5NDk2OWMwMTYzM2Y2NTEzODk1ZDY1ZTk0Zjc0NmI5MmM1MzYzNQ==
5
5
  data.tar.gz: !binary |-
6
- YjQ5MWRkNjdiYjIwMDQ0NzM0NTMxMWViMjkxOGVmYjMyYjVmM2ExYg==
6
+ NDFlOTQ1ZjY3ZTc4NGRlM2Q3NWVlZThlNmFiZmZmOTIzY2YwZjFlMQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZDU4Yjc1NTlkNmJjYWJmMTFkN2NhNWRiMjA1NGEwZmU3MTEwZjY4YjJjNDA1
10
- ZTZiZGQwOWUxZjNlZTFjYThjN2Q5MmZhNWYyNTEzYzViOWNmNTFlOWZkNGIy
11
- YzlmNDI4YjQ5ZWRmNDAwZGE1YjhjYjk4NWUwYzI4M2ZjOTUzOWE=
9
+ MWVmNGZlZWEwNjg3NjRjMmU3OTJiNTU2ZjQzNWQ4NTMxZTU3MTAzNmI5OWRi
10
+ Y2Q1MzllNjBmNjI0YWY2MWRhODVkOGQ0MzM1Yjk3YjQ4OTg0NGJhZjY1MmQ5
11
+ NWI0NGUxNzdlN2FmZDBhMjExYzZmZGRlZTg3NGQ4MmYyOGY0ZGU=
12
12
  data.tar.gz: !binary |-
13
- MDVhYWU0NjcwMWQzYTY4YmNiOWUwYTU5YmY4NTRjY2VlMzIxZDM3MjQ2NTAz
14
- ODY4Mzg2YzUxM2IzZjRiN2VmMjIzMjllMzdiMDNmZmNkYjQ2ZmZlMDVhZDQ2
15
- NzEzYTBjYjA0ODBlMjY2NTAxZmZhMTVmOWJmNzljMmE4ZWI0NzU=
13
+ N2MwOWQ5M2NlYTM1NTJkMGI4MzllNGNjNzQ3OTY4MTVhZTMzMDBmMTlhOWUw
14
+ NmI5YjI5OGM3N2M3YzQ5OGU1MjRiYTJiNDRhY2ExY2I0YWFmMzdjOThkM2Vl
15
+ NjQ5MDUxMDg1OTA5YTY0MzI0ZWVjNGNjZTkzNjc4NmUwMWI5MmY=
data/CHANGES CHANGED
@@ -312,3 +312,7 @@
312
312
  == Version 1.10.5
313
313
 
314
314
  * Bug fixes
315
+
316
+ == Version 1.10.6
317
+
318
+ * Bug fixes
@@ -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 File.directory?(target)
134
- target_dir = target
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 = File.dirname(target)
144
+ target_dir = basedir
137
145
  end
138
146
 
139
- support_dir = "#{target_dir}/../support"
140
-
141
147
  $: << File.expand_path("#{basedir}/support")
142
- $: << File.expand_path(support_dir)
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
- end
159
+ end
150
160
 
151
161
  def detect_file dir, name
152
162
  ext = File.extname(name)
@@ -1,3 +1,3 @@
1
1
  class AcceptanceTest
2
- VERSION = "1.10.5"
2
+ VERSION = "1.10.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acceptance_test
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.10.5
4
+ version: 1.10.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Shvets