Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tag: rel_0_3
Fetching contributors…

Cannot retrieve contributors at this time

15 lines (11 sloc) 0.535 kb
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
Jump to Line
Something went wrong with that request. Please try again.