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