Sha256: d5a6c5e5b8aef710e8d9e2b923e646c25ecb3988dc2fcd697759cf114d594603

Contents?: true

Size: 605 Bytes

Versions: 6

Compression:

Stored size: 605 Bytes

Contents

require 'spec_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
      configure do |config|
        config.current_user_method = 'user'
      end
      current_user_method.must_equal 'user'
      configure do |config|
        config.current_user_method = 'current_user'
      end
      current_user_method.must_equal 'current_user'
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
commontator-1.1.1 spec/lib/commontator_spec.rb~
commontator-1.1.0 spec/lib/commontator_spec.rb~
commontator-1.0.6 spec/lib/commontator_spec.rb~
commontator-1.0.5 spec/lib/commontator_spec.rb~
commontator-1.0.4 spec/lib/commontator_spec.rb~
commontator-1.0.3 spec/lib/commontator_spec.rb~