Sha256: 7047665ba91eed9abf74ae80fc00f355ffdf6c40ecac6d3d96473a44f585cf29
Contents?: true
Size: 835 Bytes
Versions: 10
Compression:
Stored size: 835 Bytes
Contents
require 'spec_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
10 entries across 10 versions & 1 rubygems