Sha256: ab0100125757b4265898a6e3e0b8f26a53760bb900cc6740003eafc7d1f9fe18

Contents?: true

Size: 549 Bytes

Versions: 5

Compression:

Stored size: 549 Bytes

Contents

begin
  require 'spec'
rescue LoadError
  require 'rubygems'
  gem 'rspec'
  require 'spec'
end

require File.dirname(__FILE__) + "/../lib/multibyte"

module UnicodeHelper
  
  def string_format_examples
    {
      :utf8 => "Abcd Блå ffi блa  埋",
      :ascii => "asci ias c iia s",
      :bytes => "\270\236\010\210\245"
    }
  end
  
  def with_kcode(kcode)
    old_kcode, $KCODE = $KCODE, kcode
    begin
      yield
    ensure
      $KCODE = old_kcode
    end
  end
  
end

Spec::Runner.configure do |config|
  include UnicodeHelper
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
mattetti-multibyte-0.0.1 spec/spec_helper.rb
mattetti-multibyte-0.1.0 spec/spec_helper.rb
mattetti-multibyte-0.1.1 spec/spec_helper.rb
multibyte-0.1.1 spec/spec_helper.rb
multibyte-0.1.0 spec/spec_helper.rb