require "spec_helper" # to run specs with what"s remembered from vcr # $ rake # # to run specs with new fresh data from aws api calls # $ rake clean:vcr ; time rake describe TicktokCli::CLI do before(:all) do @args = "--from Tung" end describe "ticktok-cli" do it "should hello world" do out = execute("exe/ticktok-cli hello world #{@args}") expect(out).to include("from: Tung\nHello world") end end end