Sha256: 402a3b110a041836f313442e99f76229313cb339a995622440db5c9c836ec739

Contents?: true

Size: 926 Bytes

Versions: 6

Compression:

Stored size: 926 Bytes

Contents

require 'spec_helper'

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
commontator-1.1.1 spec/lib/commontator/commontable_config_spec.rb~
commontator-1.1.0 spec/lib/commontator/commontable_config_spec.rb~
commontator-1.0.6 spec/lib/commontator/commontable_config_spec.rb~
commontator-1.0.5 spec/lib/commontator/commontable_config_spec.rb~
commontator-1.0.4 spec/lib/commontator/commontable_config_spec.rb~
commontator-1.0.3 spec/lib/commontator/commontable_config_spec.rb~