Sha256: fe0e4c3239d24d7d4b282fbf34a166a4e632c101cc964d18186fb7263de4c9ef

Contents?: true

Size: 794 Bytes

Versions: 6

Compression:

Stored size: 794 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 "won't 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_name_clickable => true)
      config.user_name_clickable.must_equal true
      config = CommontatorConfig.new(:user_name_clickable => false)
      config.user_name_clickable.must_equal false
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
commontator-4.3.0 spec/lib/commontator/commontator_config_spec.rb
commontator-4.2.2 spec/lib/commontator/commontator_config_spec.rb
commontator-4.2.1 spec/lib/commontator/commontator_config_spec.rb
commontator-4.2.0 spec/lib/commontator/commontator_config_spec.rb
commontator-4.1.2 spec/lib/commontator/commontator_config_spec.rb
commontator-4.1.1 spec/lib/commontator/commontator_config_spec.rb