Sha256: 8c281a23568f72d1eb972a7a73444160dd32a2a2f8578dd2794582475c909338
Contents?: true
Size: 609 Bytes
Versions: 1
Compression:
Stored size: 609 Bytes
Contents
require 'test_helper' describe "until" do it "switches the Property on the Stream occurring" do switch_button = Button.new plus_button = PlusOneButton.new minus_button = MinusOneButton.new switch = Frappuccino::Stream.new(switch_button) plus = to_prop(:notplus, Frappuccino::Stream.new(plus_button)) minus = to_prop(:notminus, Frappuccino::Stream.new(minus_button)) prop = plus.until(switch, minus) assert_equal(:notplus, prop.now) plus_button.push assert_equal(:+, prop.now) minus_button.push switch_button.push assert_equal(:-, prop.now) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
frappuccino-0.3.0 | test/until_test.rb |