Sha256: 18d0d98df09ad61f10161733230a20f9d744b7a417e36176c54e77950e0a0e93

Contents?: true

Size: 653 Bytes

Versions: 3

Compression:

Stored size: 653 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
      Commontator.configure do |config|
        config.current_user_method = 'user'
      end
      Commontator.current_user_method.must_equal 'user'
      Commontator.configure do |config|
        config.current_user_method = 'current_user'
      end
      Commontator.current_user_method.must_equal 'current_user'
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
commontator-4.0.2 spec/lib/commontator_spec.rb
commontator-4.0.1 spec/lib/commontator_spec.rb
commontator-4.0.0 spec/lib/commontator_spec.rb