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

Version Path
tdiary-4.2.1 vendor/bundle/ruby/2.3.0/gems/tdiary-4.2.0/spec/core/configuration_spec.rb
tdiary-4.2.0 spec/core/configuration_spec.rb
tdiary-4.1.3 spec/core/configuration_spec.rb
tdiary-4.1.2 spec/core/configuration_spec.rb
tdiary-4.1.1 spec/core/configuration_spec.rb
tdiary-4.1.0 spec/core/configuration_spec.rb
tdiary-4.1.0.20141126 spec/core/configuration_spec.rb
tdiary-4.0.5.1 spec/core/configuration_spec.rb
tdiary-4.0.5 spec/core/configuration_spec.rb
tdiary-4.0.4 spec/core/configuration_spec.rb
tdiary-4.0.3 spec/core/configuration_spec.rb