test/invokr_test.rb in invokr-0.0.5 vs test/invokr_test.rb in invokr-0.0.6

- old
+ new

@@ -1,5 +1,13 @@ class InvokrTest < Minitest::Test + def test_supplying_proc + my_proc = ->a,b{a+b} + + result = Invokr.invoke proc: my_proc, with: { a: 1, b: 4 } + + assert_equal 5, result + end + def test_incorrectly_invoking error = assert_raises Invokr::InputError do Invokr.invoke end