Sha256: 1e9057ea07dcb93c3149ccff995746d88fe9bd35a73abcdaa6369c3a1711d617
Contents?: true
Size: 839 Bytes
Versions: 8
Compression:
Stored size: 839 Bytes
Contents
require 'minitest_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
8 entries across 7 versions & 1 rubygems