Sha256: fb6c67155d5b94670d99c728ede652754d4275a97f391fa2f39270f9c2f8b50b
Contents?: true
Size: 733 Bytes
Versions: 11
Compression:
Stored size: 733 Bytes
Contents
require 'spec_helper' require 'tdiary' require 'tdiary/configuration' describe TDiary::Configuration do let(:tdiary_conf) { File.expand_path("../../fixtures/tdiary.conf.webrick", __FILE__) } let(:work_conf) { File.expand_path('../../../tdiary.conf', __FILE__) } before do FileUtils.cp_r tdiary_conf, work_conf, verbose: false end after do FileUtils.rm_rf work_conf end describe "TDiary.configuration" do before do @obj = TDiary.configuration end it { expect(@obj.class).to eq TDiary::Configuration } it "singleton" do expect(@obj).to eq TDiary.configuration end end it "TDiary.configuration.attribute" do expect(TDiary.configuration.style).to eq("Wiki") end end
Version data entries
11 entries across 11 versions & 1 rubygems