b0VIM 7.2#­\NÒ(@õkaeffkaeff-latitude~kaeff/Entwicklung/Zweitag/default/glow/test/dummy/spec/controllers/flash_controller_spec.rbutf-8 3210#"! Utp!adw  !îØÁÀ‘c=98éµ´Œd^].ù ø Ð ¥ ¤ i    ê ± v !    eeeeend end HTMLEntities.new.decode(@response.headers['X-Message']).should be == 'utf8: ✓' @response.headers['X-Message-Type'].should be(:notice) xhr :get, :ajax, type: :notice, message: 'utf8: ✓' it "should handle unicode on xhr" do end HTMLEntities.new.decode(@response.headers['X-Message']).should be == 'Glow!' @response.headers['X-Message-Type'].should be(:notice) flash.discard?(:notice).should be true flash[:notice].should be == 'Glow!' xhr :get, :ajax, type: :notice, message: 'Glow!' it "should display flash message on xhr" do end flash.keep?(:notice).should be true flash[:notice].should be == 'Glow!' post :redirect, type: :notice, message: 'Glow!' it "should display flash message on redirect" dodescribe FlashController doend def keep?(key); !discard?(key); end def discard?(key); @used.include?(key); endActionDispatch::Flash::FlashHash.class_eval dorequire 'htmlentities'require 'spec_helper'# encoding: utf-8