Sha256: ebe62a4a28d7bc1a1ad2b94bc91dbbd7c53a188a5e01abee95385a37aa3d2e04
Contents?: true
Size: 492 Bytes
Versions: 4
Compression:
Stored size: 492 Bytes
Contents
# -*- coding: utf-8 -*- $:.unshift(File.dirname(__FILE__)) require 'spec_helper' require 'time' describe "jyear plugin" do { '1925/01/01' => '昔々', '1926/12/25' => '昭和元年', '1927/01/01' => '昭和2', '1989/01/08' => '平成元年', '1990/01/01' => '平成2', }.each do |k,v| it { setup_jyear_plugin(Time.parse(k)).date.strftime('%K').should == v } end def setup_jyear_plugin(date) fake_plugin(:jyear) { |plugin| plugin.date = date } end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
tdiary-contrib-4.0.2.1 | spec/jyear_spec.rb |
tdiary-contrib-4.0.2 | spec/jyear_spec.rb |
tdiary-contrib-3.2.2.20130614 | spec/jyear_spec.rb |
tdiary-contrib-3.2.2.20130518 | spec/jyear_spec.rb |