Sha256: a443d210b035cf15c2a0290ac37d394803c4757b00855cb0a6aedb00da7b150c

Contents?: true

Size: 805 Bytes

Versions: 8

Compression:

Stored size: 805 Bytes

Contents

require 'minitest_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

8 entries across 7 versions & 1 rubygems

Version Path
commontator-2.0.2 spec/lib/commontator/commontator_config_spec.rb~
commontator-2.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~
commontator-2.0.1 spec/lib/commontator/commontator_config_spec.rb
commontator-2.0.0 spec/lib/commontator/commontator_config_spec.rb
commontator-1.1.3 spec/lib/commontator/commontator_config_spec.rb
commontator-1.1.2 spec/lib/commontator/commontator_config_spec.rb