Sha256: 689f9b7276d29cb185d522b85654eb0544d8c279910bcf41727851efb35deb29

Contents?: true

Size: 801 Bytes

Versions: 3

Compression:

Stored size: 801 Bytes

Contents

require 'test_helper'

module Commontator
  describe CommontatorConfig do
    it 'must respond to commontator attributes' do
      config = CommontatorConfig.new
      COMMONTATOR_ATTRIBUTES.each do |attribute|
        config.must_respond_to attribute
      end
    end
    
    it 'wont respond to engine or commontable attributes' do
      config = CommontatorConfig.new
      (ENGINE_ATTRIBUTES + COMMONTABLE_ATTRIBUTES).each do |attribute|
        config.wont_respond_to attribute
      end
    end
    
    it 'must be configurable' do
      config = CommontatorConfig.new(:user_missing_name => 'Anon')
      config.user_missing_name.must_equal 'Anon'
      config = CommontatorConfig.new(:user_missing_name => 'Anonymous')
      config.user_missing_name.must_equal 'Anonymous'
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
commontator-4.0.2 spec/lib/commontator/commontator_config_spec.rb
commontator-4.0.1 spec/lib/commontator/commontator_config_spec.rb
commontator-4.0.0 spec/lib/commontator/commontator_config_spec.rb