Sha256: fa8f6855a9a647f67040423f17d83c483e3ca8b27948c024e4e473fc152835b2
Contents?: true
Size: 761 Bytes
Versions: 3
Compression:
Stored size: 761 Bytes
Contents
require 'rails_helper' module Commontator RSpec.describe Commontator, type: :lib do it 'must respond to all attributes' do (ENGINE_ATTRIBUTES + COMMONTATOR_ATTRIBUTES + \ COMMONTABLE_ATTRIBUTES).each do |attribute| expect(Commontator).to 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 expect(Commontator.current_user_proc).to eq l1 Commontator.configure do |config| config.current_user_proc = l2 end assert_equal(Commontator.current_user_proc, l2) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
commontator-5.1.0 | spec/lib/commontator_spec.rb~ |
commontator-4.11.0 | spec/lib/commontator_spec.rb~ |
commontator-4.10.4 | spec/lib/commontator_spec.rb~ |