Skip to content

Commit

Permalink
Merge pull request ManageIQ#17053 from kbrock/spec_replicate_messages
Browse files Browse the repository at this point in the history
Silence replicator spec puts
  • Loading branch information
jrafanie authored Feb 28, 2018
2 parents 8102655 + a57aeac commit 0361ee0
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,13 @@
describe "#replicate" do
it "targets only other servers" do
miq_server.add_settings_for_resource(settings)
expected_output = <<~MESSAGE
Replicating from server id=#{miq_server.id}, path=k1/k2 to 1 servers
Settings: {:k1=>{:k2=>{:k3=>"v3"}}}
Done
MESSAGE
expect(described_class).to receive(:copy_to).with([miq_server_remote], settings)
described_class.replicate(miq_server, 'k1/k2')
expect { described_class.replicate(miq_server, 'k1/k2') }.to output(expected_output).to_stdout
end
end

Expand Down

0 comments on commit 0361ee0

Please sign in to comment.