lib/generators/templates/helpers/allure_helper.tt in ruby_raider-0.3.5 vs lib/generators/templates/helpers/allure_helper.tt in ruby_raider-0.3.6
- old
+ new
@@ -14,10 +14,10 @@
end
def add_screenshot(screenshot_name)
Allure.add_attachment(
name: name,
- source: "File.open(allure-results/screenshots/#{screenshot_name}.png)",
+ source: File.open("allure-results/screenshots/#{screenshot_name}.png"),
type: Allure::ContentType::PNG,
test_case: true
)
end
\ No newline at end of file