Sha256: eb6a16e8e3dc53d6abfec52e8b0e633ba45f6ef3adc464d05f767834fe5d3b59
Contents?: true
Size: 697 Bytes
Versions: 4
Compression:
Stored size: 697 Bytes
Contents
require 'spec_helper' describe Ru::Iterator do describe "#to_a" do it "returns the array" do iterator = described_class.new(%w{john paul george ringo}) iterator.to_a.should == %w{john paul george ringo} end end describe "#to_dotsch_output" do it "returns the string" do iterator = described_class.new(%w{john paul george ringo}) iterator.to_dotsch_output.should == "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}) iterator.to_s.to_dotsch_output.should == "john\npaul\ngeorge\nringo" end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
ru-0.1.1 | spec/lib/iterator_spec.rb |
ru-0.1.0 | spec/lib/iterator_spec.rb |
ru-0.0.3 | spec/lib/iterator_spec.rb |
ru-0.0.2 | spec/lib/iterator_spec.rb |