Sha256: 1f688019514d64f66c2b32eee5731111ffd10e2bca49db63fd0aba32d160feb1
Contents?: true
Size: 437 Bytes
Versions: 17
Compression:
Stored size: 437 Bytes
Contents
require File.expand_path('../../test_helper', __FILE__) require 'mocha/single_yield' class SingleYieldTest < Mocha::TestCase include Mocha def test_should_provide_parameters_for_single_yield_in_single_invocation parameter_group = SingleYield.new(1, 2, 3) parameter_groups = [] parameter_group.each do |parameters| parameter_groups << parameters end assert_equal [[1, 2, 3]], parameter_groups end end
Version data entries
17 entries across 14 versions & 4 rubygems