b0VIM 7.2™\NÒ(@Ïkaeffkaeff-latitude~kaeff/Entwicklung/Zweitag/default/glow/test/dummy/spec/controller/flash_controller_spec.rbutf-8 3210#"! Utpadk ÿ îØÁÀ‘c=98é·Ž_YX)ñ È “ A  ý ü Õ ™ ^  ÿ end end eneeend end HTMLEntities.new.decode(@response.headers['X-Message']).should be == 'utf8: ✓' @response.headers['X-Message-Type'].should be(:notice) xhr :post, :create, type: :notice, message: 'utf8: ✓' it "should handle unicode on xhr" do end assert_equal @response.headers['X-Message-Type'], :notice assert_equal HTMLEntities.new.decode(@response.headers['X-Message']), 'Glow!' assert flash.discard?(:notice), 'Discard flash.' assert_equal flash[:notice], 'Glow!' xhr :post, :create, type: :notice, message: 'Glow!' it "should display flash message on xhr" do end assert flash.keep?(:notice), 'Keep flash.' assert_equal flash[:notice], 'Glow!' post :create, 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