spec/acceptance/emoji_table_spec.rb in galakei-0.12.1 vs spec/acceptance/emoji_table_spec.rb in galakei-0.13.0

- old
+ new

@@ -4,11 +4,11 @@ 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 + render :inline => "てすと<%= emoji_table.black_sun_with_rays %>", :layout => true end end feature 'emoji table' do scenario 'for docomo', :driver => :docomo do @@ -26,10 +26,10 @@ page.source.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") + expected = "てすと".encode("Shift_JIS") + [0xF660].pack("n").force_encoding("Shift_JIS") page.source.should match(expected) end scenario 'for softbank', :driver => :softbank do visit '/emoji'