spec/flash_spec.rb in nyara-0.0.1.pre.9 vs spec/flash_spec.rb in nyara-0.1.pre.0

- old
+ new

@@ -19,7 +19,15 @@ it "#now" do @flash.now['foo'] = 'foo' assert_nil @flash.next['foo'] assert_empty @session.values.first end + + it "#clear" do + @flash.now['foo'] = 'foo' + @flash.next['bar'] = 'bar' + @flash.clear + assert_empty @flash.now + assert_empty @flash.next + end end end