module Turnip::Execute
Public Class Methods
attach_file(title, file, opts = {})
click to toggle source
can use attach_file
method in step.
# File lib/allure_turnip/turnip_extension.rb, line 8 def self.attach_file(title, file, opts = {}) ::RSpec.current_example.attach_file(title, file, opts) end
Public Instance Methods
step(step_or_description, *extra_args)
click to toggle source
# File lib/allure_turnip/turnip_extension.rb, line 6 def step(step_or_description, *extra_args) # can use attach_file method in step. def self.attach_file(title, file, opts = {}) ::RSpec.current_example.attach_file(title, file, opts) end ::RSpec.current_example.allure_step(step_or_description) do original_step(step_or_description, *extra_args) end end
Also aliased as: original_step