-1
でいくつかのメソッドを呼び出す前に何かをやって、私は、例えば、クラスを持っている:はRSpecの:クラス
class BackgroundJob
def run
pre_processing
processing
end
def preprocessing
end
def processing
end
end
だから私のコードを実行するには、次のとおりです。BackgroundJob.new.run
。私のrspecでは、processing
メソッドを呼び出す前に "何か"をしたいと思っています。 rspecでこれをどうすればできるのですか?
おかげでRSpecので