summaryrefslogtreecommitdiff
path: root/qa/qa/scenario/template.rb
blob: 341998af1609f15a9fa34eac4eedc607fdea3772 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
module QA
  module Scenario
    class Template
      def self.perform(*args)
        new.tap do |scenario|
          yield scenario if block_given?
          return scenario.perform(*args)
        end
      end

      def perform(*_args)
        raise NotImplementedError
      end
    end
  end
end