Sha256: 63008d6c4a079239c3cce47b0f0945cb5f7f3756e0b720c086d09dd88de30eac
Contents?: true
Size: 535 Bytes
Versions: 5
Compression:
Stored size: 535 Bytes
Contents
require File.join(File.dirname(__FILE__), 'test_helper.rb') require File.join(File.dirname(__FILE__), %w{.. lib declarative_authorization maintenance}) class MaintenanceTest < Test::Unit::TestCase def test_usages_by_controllers usage_test_controller = Class.new(ActionController::Base) usage_test_controller.send(:define_method, :an_action) {} usage_test_controller.filter_access_to :an_action assert Authorization::Maintenance::Usage::usages_by_controller. include?(usage_test_controller) end end
Version data entries
5 entries across 5 versions & 2 rubygems