Sha256: 5d088fe3f1f6ea527381e62d0c363f6adc0385198ad47afc8a70e8209f1bdb68

Contents?: true

Size: 440 Bytes

Versions: 11

Compression:

Stored size: 440 Bytes

Contents

class RestArgsTest < Minitest::Test
  def test_passing_in_splat
    error = assert_raises Invokr::UnsupportedArgumentsError do
      Invokr.invoke(
        method: :splat_argument,
        on:     TestMethodBank,
        with:   { guitarist: 'trey' },
      )
    end

    assert_equal(
      "unsupported splat argument(s) `rest' when invoking method `splat_argument' on #<TestMethodBank:0xdeadbeef>",
      error.message,
    )
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
invokr-0.9.7 test/rest_args_test.rb
invokr-0.9.6 test/rest_args_test.rb
invokr-0.9.5 test/rest_args_test.rb
invokr-0.9.4 test/rest_args_test.rb
invokr-0.9.3 test/rest_args_test.rb
invokr-0.9.2 test/rest_args_test.rb
invokr-0.9.1 test/rest_args_test.rb
invokr-0.9.0 test/rest_args_test.rb
invokr-0.1.0 test/rest_args_test.rb
invokr-0.0.6 test/rest_args_test.rb
invokr-0.0.5 test/rest_args_test.rb