spec/jldrill/model/Kana_spec.rb in jldrill-0.5.1.7 vs spec/jldrill/model/Kana_spec.rb in jldrill-0.6.0.1
- old
+ new
@@ -1,6 +1,6 @@
-# -*- coding: utf-8 -*-
+# encoding: utf-8
require 'jldrill/model/moji/Kana'
require 'jldrill/model/Config'
module JLDrill
@@ -9,9 +9,10 @@
it "should be able to read the file in chunks" do
kf = KanaFile.new
kf.lines.size.should be(0)
kf.file = (File.join(Config::DATA_DIR, "tests/kana.dat"))
kf.readLines
+ kf.encoding.should eql(Kconv::UTF8)
kf.lines.size.should be(100)
# Not EOF yet
kf.parseChunk(10).should eql(false)
kf.fraction.should eql(0.10)
kf.parseChunk(10).should eql(false)