Sha256: f0363760103100f63643a0b4066ed3a3437fabf6092c4841e8ebea2111ed1028
Contents?: true
Size: 596 Bytes
Versions: 3
Compression:
Stored size: 596 Bytes
Contents
# encoding: CP1251 require 'rspec' describe 'RSpec' do it 'correctly outputs Windows Cyrillics' do pending 'RSpec does NOT output Windows Cyrillics, unless `chcp 1251` is run in console' Encoding.default_internal, Encoding.default_external = ['cp1251'] * 2 lit = "Широкая электрификация южных губерний даст мощный толчок подъёму сельс" puts "Source encoding: #{__ENCODING__}" puts "Def ext/int encoding: #{Encoding.default_external}/#{Encoding.default_internal}" puts "String literal: #{lit} - encoding: #{lit.encoding}" lit.should == :miserable_failure end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
p2ruby-0.1.2 | spec/encoding_spec.rb |
p2ruby-0.1.1 | spec/encoding_spec.rb |
p2ruby-0.1.0 | spec/encoding_spec.rb |