Sha256: c6ff7b4e2e56100454da54130619a1f64e8962a8d1aaf5230b5903c06f3a6ba1

Contents?: true

Size: 427 Bytes

Versions: 7

Compression:

Stored size: 427 Bytes

Contents

module Turnip
  module Execute

    alias original_step step

    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
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
allure_turnip-0.4.0 lib/allure_turnip/turnip_extension.rb
allure_turnip-0.3.1 lib/allure_turnip/turnip_extension.rb
allure_turnip-0.3.0 lib/allure_turnip/turnip_extension.rb
allure_turnip-0.2.1 lib/allure_turnip/turnip_extension.rb
allure_turnip-0.2.0 lib/allure_turnip/turnip_extension.rb
allure_turnip-0.1.1 lib/allure_turnip/turnip_extension.rb
allure_turnip-0.1.0 lib/allure_turnip/turnip_extension.rb