spec/ev3_tool_spec.rb in lignite-0.5.0 vs spec/ev3_tool_spec.rb in lignite-0.6.0

- old
+ new

@@ -50,13 +50,16 @@ describe "#download" do let(:replay) { "#{datadir}/ev3tool_download.yml" } it "communicates the right thing" do expected_file_contents = File.read("#{datadir}/everstorm.rbf", mode: "rb") + e1 = expected_file_contents[0...1000] + e2 = expected_file_contents[1000..-1] f = double("File") expect(File).to receive(:open).with("everstorm.rbf", "w").and_yield(f) allow(File).to receive(:open).and_call_original - expect(f).to receive(:write).with(expected_file_contents) + expect(f).to receive(:write).with(e1) + expect(f).to receive(:write).with(e2) expect { subject.download("../prjs/everstorm/everstorm.rbf") }.not_to raise_error end end