File: encoding_other.thor

package info (click to toggle)
ruby-thor 1.5.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 924 kB
  • sloc: ruby: 9,491; makefile: 8; sh: 1
file content (17 lines) | stat: -rw-r--r-- 403 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# encoding: ISO-8859-7
# frozen_string_literal: true

class EncodingOther < Thor
  SOME_STRING = "Some "

  desc "encoding", "tests that encoding is correct"

  def encoding
    puts "#{SOME_STRING.inspect}: #{SOME_STRING.encoding}:"
    if SOME_STRING.encoding.name == "ISO-8859-7"
      puts "ok"
    else
      puts "expected #{SOME_STRING.encoding.name} to equal ISO-8859-7"
    end
  end
end