Sha256: 96bcc706a52179947eeea3798dda28c802c461e2a7d26e823c4600ea79d87305

Contents?: true

Size: 673 Bytes

Versions: 52

Compression:

Stored size: 673 Bytes

Contents

require File.expand_path('../../../spec_helper', __FILE__)

with_feature :encoding do
  describe "Encoding.name_list" do
    it "returns an Array" do
      Encoding.name_list.should be_an_instance_of(Array)
    end

    it "returns encoding names as Strings" do
      Encoding.name_list.each {|e| e.should be_an_instance_of(String) }
    end

    it "includes all aliases" do
      Encoding.aliases.keys.each do |enc_alias|
        Encoding.name_list.include?(enc_alias).should be_true
      end
    end

    it "includes all non-dummy encodings" do
      Encoding.list.each do |enc|
        Encoding.name_list.include?(enc.name).should be_true
      end
    end
  end
end

Version data entries

52 entries across 52 versions & 2 rubygems

Version Path
rhodes-7.6.0 spec/framework_spec/app/spec/core/encoding/name_list_spec.rb
rhodes-7.5.1 spec/framework_spec/app/spec/core/encoding/name_list_spec.rb
rhodes-7.4.1 spec/framework_spec/app/spec/core/encoding/name_list_spec.rb
rhodes-7.1.17 spec/framework_spec/app/spec/core/encoding/name_list_spec.rb
rhodes-6.2.0 spec/framework_spec/app/spec/core/encoding/name_list_spec.rb
rhodes-6.0.11 spec/framework_spec/app/spec/core/encoding/name_list_spec.rb
rhodes-5.5.18 spec/framework_spec/app/spec/core/encoding/name_list_spec.rb
rhodes-5.5.17 spec/framework_spec/app/spec/core/encoding/name_list_spec.rb
rhodes-5.5.15 spec/framework_spec/app/spec/core/encoding/name_list_spec.rb
rhodes-5.5.0.22 spec/framework_spec/app/spec/core/encoding/name_list_spec.rb
rhodes-5.5.2 spec/framework_spec/app/spec/core/encoding/name_list_spec.rb
rhodes-5.5.0.7 spec/framework_spec/app/spec/core/encoding/name_list_spec.rb
rhodes-5.5.0.3 spec/framework_spec/app/spec/core/encoding/name_list_spec.rb
rhodes-5.5.0 spec/framework_spec/app/spec/core/encoding/name_list_spec.rb
tauplatform-1.0.3 spec/framework_spec/app/spec/core/encoding/name_list_spec.rb
tauplatform-1.0.2 spec/framework_spec/app/spec/core/encoding/name_list_spec.rb
tauplatform-1.0.1 spec/framework_spec/app/spec/core/encoding/name_list_spec.rb
rhodes-3.5.1.12 spec/framework_spec/app/spec/core/encoding/name_list_spec.rb
rhodes-3.3.5 spec/framework_spec/app/spec/core/encoding/name_list_spec.rb
rhodes-3.4.2 spec/framework_spec/app/spec/core/encoding/name_list_spec.rb