Sha256: 697f89a2a4d949fba75222b360db444da5744539511b8e91afc5ce117041c2da
Contents?: true
Size: 794 Bytes
Versions: 6
Compression:
Stored size: 794 Bytes
Contents
require 'test_helper' module Commontator describe CommontatorConfig do it 'must respond to commontator attributes' do config = CommontatorConfig.new COMMONTATOR_ATTRIBUTES.each do |attribute| config.must_respond_to attribute end end it "won't respond to engine or commontable attributes" do config = CommontatorConfig.new (ENGINE_ATTRIBUTES + COMMONTABLE_ATTRIBUTES).each do |attribute| config.wont_respond_to attribute end end it 'must be configurable' do config = CommontatorConfig.new(:user_name_clickable => true) config.user_name_clickable.must_equal be_true config = CommontatorConfig.new(:user_name_clickable => false) config.user_name_clickable.must be_false end end end
Version data entries
6 entries across 6 versions & 1 rubygems