RSpecでUnixコマンドの検証したい

tvsktvsk のブックマーク 2016/01/21 19:13

その他

このブックマークにはスターがありません。
最初のスターをつけてみよう!

How do I stub/mock a call to the command line with rspec?

    I'm trying to test output from a command line tool. How do I 'fake' a command line call with rspec? Doing the following doesn't work: it "should call the command line and return 'text'" do @p = Pig...

    \ コメントが サクサク読める アプリです /

    • App Storeからダウンロード
    • Google Playで手に入れよう