Sha256: 112fd56321489588972b2434a47ddc62a3af810c5d730f538ae6165a05b1cf28

Contents?: true

Size: 428 Bytes

Versions: 14

Compression:

Stored size: 428 Bytes

Contents

require_relative '../../test_helper'
require_relative '../../unit/eval_helper/eval_helpers_base_test'

class EvalHelpersProcWithoutArgumentsTest < EvalHelpersBaseTest
  def setup
    @object = Object.new
    @proc = lambda { |*args| args }
    class << @proc
      def arity
        0
      end
    end
  end

  def test_should_call_proc_with_no_arguments
    assert_equal [], evaluate_method(@object, @proc, 1, 2, 3)
  end
end

Version data entries

14 entries across 14 versions & 2 rubygems

Version Path
state_machines-0.5.0 test/unit/eval_helper/eval_helpers_proc_with_block_without_arguments_test.rb
solidus_backend-1.0.0.pre3 vendor/bundle/gems/state_machines-0.2.2/test/unit/eval_helper/eval_helpers_proc_with_block_without_arguments_test.rb
solidus_backend-1.0.0.pre2 vendor/bundle/gems/state_machines-0.2.2/test/unit/eval_helper/eval_helpers_proc_with_block_without_arguments_test.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/state_machines-0.2.2/test/unit/eval_helper/eval_helpers_proc_with_block_without_arguments_test.rb
state_machines-0.4.0 test/unit/eval_helper/eval_helpers_proc_with_block_without_arguments_test.rb
state_machines-0.3.0 test/unit/eval_helper/eval_helpers_proc_with_block_without_arguments_test.rb
state_machines-0.2.2 test/unit/eval_helper/eval_helpers_proc_with_block_without_arguments_test.rb
state_machines-0.2.1 test/unit/eval_helper/eval_helpers_proc_with_block_without_arguments_test.rb
state_machines-0.2.0 test/unit/eval_helper/eval_helpers_proc_with_block_without_arguments_test.rb
state_machines-0.1.4 test/unit/eval_helper/eval_helpers_proc_with_block_without_arguments_test.rb
state_machines-0.1.3 test/unit/eval_helper/eval_helpers_proc_with_block_without_arguments_test.rb
state_machines-0.1.2 test/unit/eval_helper/eval_helpers_proc_with_block_without_arguments_test.rb
state_machines-0.1.1 test/unit/eval_helper/eval_helpers_proc_with_block_without_arguments_test.rb
state_machines-0.1.0 test/unit/eval_helper/eval_helpers_proc_with_block_without_arguments_test.rb