We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb866ce commit 8573fa7Copy full SHA for 8573fa7
test/repo_apply_test.rb
@@ -138,5 +138,13 @@ def test_callbacks
138
assert_raises RuntimeError do
139
@repo.apply(diff, {:location => :index, :delta_callback => delta_fail})
140
end
141
+
142
+ assert_raises ArgumentError do
143
+ @repo.apply(diff, {:location => :index, :delta_callback => 'this is not a callable object'})
144
+ end
145
146
147
+ @repo.apply(diff, {:location => :index, :hunk_callback => 'this is not a callable object'})
148
149
150
0 commit comments