Sha256: 0851c5d27453f2e27fc0da5d53bae97bbeb0e8b0432022490b41fe86129a4f39
Contents?: true
Size: 1.2 KB
Versions: 6
Compression:
Stored size: 1.2 KB
Contents
# encoding: UTF-8 require File.expand_path(File.dirname(__FILE__) + '/acceptance_helper') class EmojiController < ApplicationController def index render :inline => "<%= emoji_table.black_sun_with_rays %>", :layout => true end def with_unicode render :inline => "テスト<%= emoji_table.black_sun_with_rays %>", :layout => true end end feature 'emoji table' do scenario 'for docomo', :driver => :docomo do visit '/emoji' page.body.should match("\uE63E") end scenario 'for au', :driver => :au do visit '/emoji' page.body.should match("\uEF60") end scenario 'for au SSL', :driver => :au do visit 'https://www.example.com/emoji' page.body.should match([0xF660].pack("n").force_encoding("Shift_JIS")) end scenario 'for au SSL with unicode source', :driver => :au do visit 'https://www.example.com/emoji/with_unicode' expected = "テスト".encode("Shift_JIS") + [0xF660].pack("n").force_encoding("Shift_JIS") page.body.should match(expected) end scenario 'for softbank', :driver => :softbank do visit '/emoji' page.body.should match("\uE04A") end scenario 'for non galakei' do visit '/emoji' page.body.should match("\u2600") end end
Version data entries
6 entries across 6 versions & 1 rubygems