ActiveSupport::Testing の Pending モジュールを機能させることができないようです。
test/unit/pending.rb には以下が含まれます:
require 'test_helper'
require 'active_support/testing/pending'
class PendingTest < ActiveSupport::TestCase
include ActiveSupport::Testing::Pending
pending "a pending case with a closure" do
assert false
end
end
しかし、ruby unit/foo.rb を実行すると、次のようになります。
undefined method `pending' for PendingTest:Class (NoMethodError)
ActiveSupport gem の pending.rb のコードを調べました。保留中のメソッドは、定義されていない?(Spec) ブロック内にありますが、Spec が定義されていないことを確認しました。
前もって感謝します...