summaryrefslogtreecommitdiff
path: root/qa/qa/factory/base.rb
blob: 7b951a99b69f5399064e674abc41b810938bc32b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
module QA
  module Factory
    class Base
      def self.fabricate!(*args)
        new.tap do |factory|
          yield factory if block_given?
          return factory.fabricate!(*args)
        end
      end

      def fabricate!(*_args)
        raise NotImplementedError
      end
    end
  end
end