Sha256: 1e690a9090e0df279b462605e975deae9bde17fa6b9cbb4aae8e21cb524c8f73

Contents?: true

Size: 407 Bytes

Versions: 2

Compression:

Stored size: 407 Bytes

Contents

require_relative 'spec_helper'

require_relative '../lib/doc_juan/config.rb'

describe DocJuan::Configuration do
  it 'is configurable with a block' do
    DocJuan.configure do |config|
      config.secret = 'very-secret'
      config.host = 'http://my-doc-juan-host.com'
    end

    DocJuan.config.secret.must_equal 'very-secret'
    DocJuan.config.host.must_equal 'http://my-doc-juan-host.com'
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
doc_juan-1.0.1 spec/configuration_spec.rb
doc_juan-1.0.0 spec/configuration_spec.rb