spec/novelinfo_spec.rb in narou-1.6.4 vs spec/novelinfo_spec.rb in narou-1.7.0

- old
+ new

@@ -1,20 +1,20 @@ -# -*- Encoding: utf-8 -*- -# -# Copyright 2013 whiteleaf. All rights reserved. -# - -require_relative "../lib/novelinfo" - -describe NovelInfo do - before do - setting = { - "name" => "dummy", "ncode" => "10000" - } - @novelinfo = NovelInfo.new(setting) - end - - it "#date_string_to_time" do - expect(@novelinfo.date_string_to_time("2014年03月02日(日) 07:39")).to eq(Time.parse("2014/3/2 07:39")) - expect(@novelinfo.date_string_to_time("2012年 11月22日 17時00分")).to eq(Time.parse("2012/11/22 17:00")) - end -end +# -*- Encoding: utf-8 -*- +# +# Copyright 2013 whiteleaf. All rights reserved. +# + +require_relative "../lib/novelinfo" + +describe NovelInfo do + before do + setting = { + "name" => "dummy", "ncode" => "10000" + } + @novelinfo = NovelInfo.new(setting) + end + + it "#date_string_to_time" do + expect(@novelinfo.date_string_to_time("2014年03月02日(日) 07:39")).to eq(Time.parse("2014/3/2 07:39")) + expect(@novelinfo.date_string_to_time("2012年 11月22日 17時00分")).to eq(Time.parse("2012/11/22 17:00")) + end +end