spec/lib/iterator_spec.rb in ru-0.1.2 vs spec/lib/iterator_spec.rb in ru-0.1.3

- old
+ new

@@ -6,19 +6,19 @@ iterator = described_class.new(%w{john paul george ringo}) expect(iterator.to_a).to eq(%w{john paul george ringo}) end end - describe "#to_dotsch_output" do + describe "#to_stdout" do it "returns the string" do iterator = described_class.new(%w{john paul george ringo}) - expect(iterator.to_dotsch_output).to eq("john\npaul\ngeorge\nringo") + expect(iterator.to_stdout).to eq("john\npaul\ngeorge\nringo") end context "with a method called on it" do it "returns the string" do iterator = described_class.new(%w{john paul george ringo}) - expect(iterator.to_s.to_dotsch_output).to eq("john\npaul\ngeorge\nringo") + expect(iterator.to_s.to_stdout).to eq("john\npaul\ngeorge\nringo") end end end end