Sha256: c6be8724149b7a3c13440bf34825b201fa4de48dc16b49be8d230155d93edf9f
Contents?: true
Size: 598 Bytes
Versions: 1
Compression:
Stored size: 598 Bytes
Contents
require 'test_helper' describe "Property" do describe "#now" do it "returns the current 'last' value of the Stream" do button = Button.new stream = Frappuccino::Stream.new(button) stepper = Frappuccino::Property.new(:not_pushed, stream) button.push assert_equal :pushed, stepper.now end describe "when the input Stream is empty" do it "returns the zero value" do stream = Frappuccino::Stream.new(Object.new) stepper = Frappuccino::Property.new("zero", stream) assert_equal "zero", stepper.now end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
frappuccino-0.2.0 | test/property_test.rb |