Sha256: 71c014dae7806a07ae1506e795b776fc23a79b883e66b97f79059ee257e1099b

Contents?: true

Size: 830 Bytes

Versions: 7

Compression:

Stored size: 830 Bytes

Contents

require 'test_helper'

module Commontator
  describe CommontableConfig do
    it 'must respond to commontable attributes' do
      config = CommontableConfig.new
      COMMONTABLE_ATTRIBUTES.each do |attribute|
        config.must_respond_to attribute
      end
    end
    
    it "won't respond to engine or commontator attributes" do
      config = CommontableConfig.new
      (ENGINE_ATTRIBUTES + COMMONTATOR_ATTRIBUTES).each do |attribute|
        config.wont_respond_to attribute
      end
    end
    
    it 'must be configurable' do
      config = CommontableConfig.new(:moderators_can_edit_comments => true)
      config.moderators_can_edit_comments.must_equal true
      config = CommontableConfig.new(:moderators_can_edit_comments => false)
      config.moderators_can_edit_comments.must_equal false
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
commontator-4.5.4 spec/lib/commontator/commontable_config_spec.rb
commontator-4.5.3 spec/lib/commontator/commontable_config_spec.rb
commontator-4.5.2 spec/lib/commontator/commontable_config_spec.rb
commontator-4.5.1 spec/lib/commontator/commontable_config_spec.rb
commontator-4.5.0 spec/lib/commontator/commontable_config_spec.rb
commontator-4.4.1 spec/lib/commontator/commontable_config_spec.rb
commontator-4.3.0 spec/lib/commontator/commontable_config_spec.rb