Sha256: 53334d132a1c81bb07f03887ba5fc0e6d4d9e86a2968cdf6f9ac9300aca5eca8

Contents?: true

Size: 835 Bytes

Versions: 9

Compression:

Stored size: 835 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 'wont 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(:comment_create_verb_present => 'create')
      config.comment_create_verb_present.must_equal 'create'
      config = CommontableConfig.new(:comment_create_verb_present => 'post')
      config.comment_create_verb_present.must_equal 'post'
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
commontator-4.5.3 spec/lib/commontator/commontable_config_spec.rb~
commontator-4.2.2 spec/lib/commontator/commontable_config_spec.rb~
commontator-4.2.1 spec/lib/commontator/commontable_config_spec.rb~
commontator-4.2.0 spec/lib/commontator/commontable_config_spec.rb~
commontator-4.1.2 spec/lib/commontator/commontable_config_spec.rb~
commontator-4.1.1 spec/lib/commontator/commontable_config_spec.rb~
commontator-4.0.2 spec/lib/commontator/commontable_config_spec.rb
commontator-4.0.1 spec/lib/commontator/commontable_config_spec.rb
commontator-4.0.0 spec/lib/commontator/commontable_config_spec.rb