calabash-cucumber 0.9.120 → 0.9.121
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/calabash-cucumber/core.rb +10 -1
- data/lib/calabash-cucumber/version.rb +1 -1
- metadata +1 -1
@@ -301,7 +301,16 @@ EOF
|
|
301
301
|
elsif (File.exists?("#{DATA_PATH}/resources/#{recording}"))
|
302
302
|
data = File.read("#{DATA_PATH}/resources/#{recording}")
|
303
303
|
else
|
304
|
-
|
304
|
+
if os=="ios6"
|
305
|
+
recording = recording.gsub("ios6","ios5")
|
306
|
+
if (File.exists?("#{DATA_PATH}/resources/#{recording}"))
|
307
|
+
data = File.read("#{DATA_PATH}/resources/#{recording}")
|
308
|
+
else
|
309
|
+
screenshot_and_raise "Playback not found: #{recording} (searched for #{recording} in #{Dir.pwd}, #{rec_dir}, #{DATA_PATH}/resources"
|
310
|
+
end
|
311
|
+
else
|
312
|
+
screenshot_and_raise "Playback not found: #{recording} (searched for #{recording} in #{Dir.pwd}, #{rec_dir}, #{DATA_PATH}/resources"
|
313
|
+
end
|
305
314
|
end
|
306
315
|
data
|
307
316
|
end
|