spec/lib/flare_up/boot_spec.rb in flare-up-0.3 vs spec/lib/flare_up/boot_spec.rb in flare-up-0.4
- old
+ new
@@ -1,9 +1,13 @@
describe FlareUp::Boot do
describe '.boot' do
let(:copy_command) { instance_double('FlareUp::CopyCommand') }
+ before do
+ allow(copy_command).to receive(:get_command)
+ end
+
context 'when there is an error' do
before do
expect(FlareUp::Boot).to receive(:create_copy_command).and_return(copy_command)
expect(copy_command).to receive(:execute).and_raise(copy_command_error)
end
\ No newline at end of file