Sha256: daf4b0778a8e24d4566d555187ad192a48317b99e84d26df697185a1421ca277
Contents?: true
Size: 683 Bytes
Versions: 3
Compression:
Stored size: 683 Bytes
Contents
require_relative "spec_helper" module Nyara describe Flash do before :each do @session = ParamHash.new @flash = Flash.new @session end it "#next" do @flash[:foo] = 'foo' assert_equal 'foo', @flash.next['foo'] assert_not_empty @session.values.first @flash.next[:bar] = 'bar' assert_nil @flash[:bar] end 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
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
nyara-0.1.pre.2 | spec/flash_spec.rb |
nyara-0.1.pre.1 | spec/flash_spec.rb |
nyara-0.1.pre.0 | spec/flash_spec.rb |