Sha256: b030cdd273761b668ead84f6fe9309c85486e08c3fd78848ca5bf9abe974aee1

Contents?: true

Size: 445 Bytes

Versions: 41

Compression:

Stored size: 445 Bytes

Contents

# frozen_string_literal: true

module Cucumber
  module Filters
    class GatedReceiver
      def initialize(receiver)
        @receiver = receiver
        @test_cases = []
      end

      def test_case(test_case)
        @test_cases << test_case
        self
      end

      def done
        @test_cases.map do |test_case|
          test_case.describe_to(@receiver)
        end
        @receiver.done
        self
      end
    end
  end
end

Version data entries

41 entries across 41 versions & 4 rubygems

Version Path
cucumber-3.1.1 lib/cucumber/filters/gated_receiver.rb