require 'spec_helper' require 'flydata/command/setlogdel' module Flydata module Command describe Setlogdel do subject { described_class.new } let(:login) { double("login") } it "loads without an error" do expect(Flydata::Command::Login).to receive(:new).and_return(login) expect(login).to receive(:run) expect(subject).to receive(:retrieve_data_entries).and_return([]) subject.run end end end end