Sha256: 43e30a950774fd147644d14ccf445fc5eea589cc81545b7942eff18f0e8fa081

Contents?: true

Size: 657 Bytes

Versions: 8

Compression:

Stored size: 657 Bytes

Contents

require 'minitest_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

8 entries across 7 versions & 1 rubygems

Version Path
commontator-2.0.2 spec/lib/commontator_spec.rb
commontator-2.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~
commontator-2.0.1 spec/lib/commontator_spec.rb
commontator-2.0.0 spec/lib/commontator_spec.rb
commontator-1.1.3 spec/lib/commontator_spec.rb
commontator-1.1.2 spec/lib/commontator_spec.rb