require 'spec_helper' require 'flydata/command/crontab' module Flydata module Command describe Crontab do subject { described_class.new } let(:cron) { double("cron") } it do expect(Flydata::Cron).to receive(:new).and_return(cron) expect(cron).to receive(:update) subject.run end end end end