Sha256: 34eba29a3f94c9c25e588aae635d7b24c8993a04a2dcccd3a7f5676734fc3f7e
Contents?: true
Size: 739 Bytes
Versions: 12
Compression:
Stored size: 739 Bytes
Contents
require 'test_helper' module Commontator describe Commontator do it 'must respond to all attributes' do (ENGINE_ATTRIBUTES + COMMONTATOR_ATTRIBUTES + \ COMMONTABLE_ATTRIBUTES).each do |attribute| Commontator.must_respond_to attribute end end it 'must be configurable' do l1 = lambda { |controller| controller.current_user } l2 = lambda { |controller| controller.current_user } Commontator.configure do |config| config.current_user_proc = l1 end assert_equal(Commontator.current_user_proc, l1) Commontator.configure do |config| config.current_user_proc = l2 end assert_equal(Commontator.current_user_proc, l2) end end end
Version data entries
12 entries across 12 versions & 1 rubygems