+ Import.should_receive(:import_text).with(any_args).exactly(1)
+ Import.import_file(@f){|name, attr| Import.new(attr) }
+ end
+ it 'ブロックがあるとき更新を一回依頼する' do
+ Import.any_instance.stub(:valid?).with(any_args).and_return(true)
+ #newでスタブを作るとインスタンス生成ができないので、テスト用スタブで
+ Import.should_receive(:etest).with(any_args).exactly(1)
+ Import.import_file(@f) {|name, attr| Import.etest ; Import.new(attr) }