require File.expand_path(File.dirname(__FILE__) + '/spec_helper') require 's3backup/cli' describe S3backup::CLI, "execute" do before(:each) do @stdout_io = StringIO.new S3backup::CLI.execute(@stdout_io, []) @stdout_io.rewind @stdout = @stdout_io.read end it "should print default output" do @stdout.should =~ /To update this executable/ end end