Sha256: a099f4de37c67b2a214d5c1b04b7a14b2f6e30b8e81897c7a973accf10f7e6fc

Contents?: true

Size: 387 Bytes

Versions: 3

Compression:

Stored size: 387 Bytes

Contents

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

      def test_case(test_case)
        @test_cases << test_case
      end

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
cucumber-2.0.0.beta.3 lib/cucumber/runtime/gated_receiver.rb
cucumber-2.0.0.beta.2 lib/cucumber/runtime/gated_receiver.rb
cucumber-2.0.0.beta.1 lib/cucumber/runtime/gated_receiver.rb