Sha256: dda76231a3175fc1342677c6e2d5be22114f8e2166e96ba353fd2fa45c7a70d1
Contents?: true
Size: 322 Bytes
Versions: 2
Compression:
Stored size: 322 Bytes
Contents
require 'test_helper' describe "drop" do it "ignores the first n events" do button = CounterButton.new stream = Frappuccino::Stream.new(button) dropped_stream = to_array(stream.drop(3)) 5.times { button.push } assert_equal 2, dropped_stream.length assert_equal [3, 4], dropped_stream end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
frappuccino-0.3.0 | test/drop_test.rb |
frappuccino-0.2.0 | test/drop_test.rb |