@@ -33,7 +33,8 @@ def copy_attributes copied
33
33
== Example
34
34
image::resources/copy_images/example1.png[]
35
35
ASCIIDOC
36
- convert input , attributes , match ( /INFO: <stdin>: line 2: copying resources\/ copy_images\/ example1.png/ )
36
+ convert input , attributes ,
37
+ eq ( "INFO: <stdin>: line 2: copying #{ spec_dir } \/ resources\/ copy_images\/ example1.png" )
37
38
expect ( copied ) . to eq ( [
38
39
[ "resources/copy_images/example1.png" , "#{ spec_dir } /resources/copy_images/example1.png" ]
39
40
] )
@@ -46,7 +47,8 @@ def copy_attributes copied
46
47
== Example
47
48
image::example1.png[]
48
49
ASCIIDOC
49
- convert input , attributes , match ( /INFO: <stdin>: line 2: copying example1.png/ )
50
+ convert input , attributes ,
51
+ eq ( "INFO: <stdin>: line 2: copying #{ spec_dir } /resources/copy_images/example1.png" )
50
52
expect ( copied ) . to eq ( [
51
53
[ "example1.png" , "#{ spec_dir } /resources/copy_images/example1.png" ]
52
54
] )
@@ -59,7 +61,8 @@ def copy_attributes copied
59
61
== Example
60
62
image::copy_images/example1.png[]
61
63
ASCIIDOC
62
- convert input , attributes , match ( /INFO: <stdin>: line 2: copying copy_images\/ example1.png/ )
64
+ convert input , attributes ,
65
+ eq ( "INFO: <stdin>: line 2: copying #{ spec_dir } /resources/copy_images/example1.png" )
63
66
expect ( copied ) . to eq ( [
64
67
[ "copy_images/example1.png" , "#{ spec_dir } /resources/copy_images/example1.png" ]
65
68
] )
@@ -93,9 +96,12 @@ def copy_attributes copied
93
96
image::resources/copy_images/example2.png[]
94
97
image::resources/copy_images/example1.png[]
95
98
image::resources/copy_images/example2.png[]
96
- ASCIIDOC
97
- convert input , attributes , match ( /INFO: <stdin>: line 2: copying resources\/ copy_images\/ example1.png/ ) . and (
98
- match ( /INFO: <stdin>: line 4: copying resources\/ copy_images\/ example2.png/ ) )
99
+ ASCIIDOC
100
+ expected_warnings = <<~LOG
101
+ INFO: <stdin>: line 2: copying #{ spec_dir } /resources/copy_images/example1.png
102
+ INFO: <stdin>: line 4: copying #{ spec_dir } /resources/copy_images/example2.png
103
+ LOG
104
+ convert input , attributes , eq ( expected_warnings . strip )
99
105
expect ( copied ) . to eq ( [
100
106
[ "resources/copy_images/example1.png" , "#{ spec_dir } /resources/copy_images/example1.png" ] ,
101
107
[ "resources/copy_images/example2.png" , "#{ spec_dir } /resources/copy_images/example2.png" ] ,
@@ -127,8 +133,8 @@ def copy_attributes copied
127
133
== Example
128
134
image::tmp_example1.png[]
129
135
ASCIIDOC
130
- # NOCOMMIT full paths in logs too, I think
131
- convert input , attributes , match ( / INFO: <stdin>: line 2: copying tmp_example1.png/ )
136
+ convert input , attributes ,
137
+ eq ( " INFO: <stdin>: line 2: copying #{ tmp } / tmp_example1.png" )
132
138
expect ( copied ) . to eq ( [
133
139
[ "tmp_example1.png" , "#{ tmp } /tmp_example1.png" ]
134
140
] )
@@ -149,7 +155,8 @@ def copy_attributes copied
149
155
== Example
150
156
image::tmp_example1.png[]
151
157
ASCIIDOC
152
- convert input , attributes , match ( /INFO: <stdin>: line 2: copying tmp_example1.png/ )
158
+ convert input , attributes ,
159
+ eq ( "INFO: <stdin>: line 2: copying #{ tmp } /tmp_example1.png" )
153
160
expect ( copied ) . to eq ( [
154
161
[ "tmp_example1.png" , "#{ tmp } /tmp_example1.png" ]
155
162
] )
0 commit comments