summaryrefslogtreecommitdiff
path: root/qa/qa/scenario/template.rb
blob: d21a9d529972a8ee081d50193558ff2ba4cdc2c8 (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?
          break scenario.perform(*args)
        end
      end

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