@@ -19,19 +19,19 @@ def on_failure2; end
1919 end
2020
2121 test "before_perform hooks are found and sorted" do
22- assert_equal [ "before_perform" , "before_perform1" , "before_perform2" ] , Resque ::Plugin . before_hooks ( SimplePlugin )
22+ assert_equal [ "before_perform" , "before_perform1" , "before_perform2" ] , Resque ::Plugin . before_hooks ( SimplePlugin ) . map { | m | m . to_s }
2323 end
2424
2525 test "after_perform hooks are found and sorted" do
26- assert_equal [ "after_perform" , "after_perform1" , "after_perform2" ] , Resque ::Plugin . after_hooks ( SimplePlugin )
26+ assert_equal [ "after_perform" , "after_perform1" , "after_perform2" ] , Resque ::Plugin . after_hooks ( SimplePlugin ) . map { | m | m . to_s }
2727 end
2828
2929 test "around_perform hooks are found and sorted" do
30- assert_equal [ "around_perform" , "around_perform1" , "around_perform2" ] , Resque ::Plugin . around_hooks ( SimplePlugin )
30+ assert_equal [ "around_perform" , "around_perform1" , "around_perform2" ] , Resque ::Plugin . around_hooks ( SimplePlugin ) . map { | m | m . to_s }
3131 end
3232
3333 test "on_failure hooks are found and sorted" do
34- assert_equal [ "on_failure" , "on_failure1" , "on_failure2" ] , Resque ::Plugin . failure_hooks ( SimplePlugin )
34+ assert_equal [ "on_failure" , "on_failure1" , "on_failure2" ] , Resque ::Plugin . failure_hooks ( SimplePlugin ) . map { | m | m . to_s }
3535 end
3636end
3737
0 commit comments