Sha256: 723f70987cd0e45fcefedfccda936091b53322b062431183c180eadb7214d879
Contents?: true
Size: 704 Bytes
Versions: 1
Compression:
Stored size: 704 Bytes
Contents
require File.expand_path('../../fixtures/classes.rb', __FILE__) ruby_version_is ''...'2.0' do describe "Iconv::Failure#inspect" do it "includes information on the exception class name, #succes and #failed" do lambda { begin Iconv.open "utf-8", "utf-8" do |conv| conv.iconv "testing string \x80 until an error occurred" end rescue Iconv::Failure => e @ex = e raise e end }.should raise_error(Iconv::Failure) inspection = @ex.inspect inspection.should include(@ex.class.to_s) inspection.should include(@ex.success.inspect) inspection.should include(@ex.failed.inspect) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rubysl-iconv-1.0.1 | spec/failure/inspect_spec.rb |