acceptance_test 1.7.13 → 1.7.14
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/screenshot_maker.rb +12 -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
|
+
ODIwYmRkYjAwZWQzNDJhNzRlN2RkOTNhNmUwNWRmMmY3YzkzMDdiMQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YzA1Zjc0MTdjNjRjOTQ2NTRjNmZmZmQ5YjBlOWQyZGJmNWY2Y2M3NA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YWI0NmIwMmU1MDM3YTM1OWE0OGY3NzZkNDM5ZjlmMTI1MDZkMGYwMjg1YTM3
|
10
|
+
ZTZhMmJiNWUwMmNkNGJjZTY1ZGJjM2ExNmJjMzQwNzQ0MWQ3MjY5MDMyYTky
|
11
|
+
YTEyMzFmZDNkNzM1ODFkMDQyNDkzZTc1MDA1OThlNDNjOWQ4ZTI=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZjM0ZjAzY2EzNjk2NmZjYzFmMDE2NjI2M2Q1NjJjN2EzZWYzMWU5OGRhMjU2
|
14
|
+
ZjI1MWFkOTMzMjNmM2JlNGI1ODZhM2YzNTI5ZjM0MDhkYzIzMmU1M2QwYzll
|
15
|
+
MDhmOTU3YzFhNGEyYTAwMDM3MTUwODgyYzZjNWJmYjQxMTA5MzQ=
|
data/CHANGES
CHANGED
@@ -38,16 +38,21 @@ class ScreenshotMaker
|
|
38
38
|
|
39
39
|
def build_name path
|
40
40
|
full_path = File.expand_path(path)
|
41
|
-
extension = File.extname(path)
|
42
41
|
|
43
|
-
|
44
|
-
index2 = full_path.index(extension)
|
42
|
+
spec_index = full_path.index("/spec")
|
45
43
|
|
46
|
-
|
44
|
+
if spec_index
|
45
|
+
extension = File.extname(path)
|
46
|
+
ext_index = extension.size == 0 ? -1 : full_path.index(extension)-1
|
47
47
|
|
48
|
-
|
49
|
-
|
50
|
-
|
48
|
+
name = full_path[spec_index+1..ext_index].gsub("/", "_")
|
49
|
+
|
50
|
+
name = name[5..-1] if name =~ /^spec_/
|
51
|
+
name = name[9..-1] if name =~ /^features_/
|
52
|
+
name = name[11..-1] if name =~ /^acceptance_/
|
53
|
+
else
|
54
|
+
name = path
|
55
|
+
end
|
51
56
|
|
52
57
|
name
|
53
58
|
end
|