require 'spec_helper' require 'flydata/command/restart' module Flydata module Command describe Restart do subject { described_class.new } let(:sender) { double("sender") } it do expect(Flydata::Command::Sender).to receive(:new).and_return(sender) expect(sender).to receive(:restart) subject.run end end end end