19210 - Publish the actionpolicy simple rpc authorization plugin

Refactored, added tests and updated docs
This commit is contained in:
R.I.Pienaar
2013-03-19 16:39:33 +00:00
parent 77fe7664d7
commit 84ff5d959d
25 changed files with 903 additions and 2 deletions

20
Rakefile Normal file
View File

@@ -0,0 +1,20 @@
specdir = File.join([File.dirname(__FILE__), "spec"])
require 'rake'
begin
require 'rspec/core/rake_task'
rescue LoadError
end
if defined?(RSpec::Core::RakeTask)
desc "Run plugin tests"
RSpec::Core::RakeTask.new(:test) do |t|
require "#{specdir}/spec_helper.rb"
t.pattern = 'spec/**/*_spec.rb'
tmp_load_path = $LOAD_PATH.map { |f| f.shellescape }.join(" -I ")
t.rspec_opts = tmp_load_path + " " + File.read("#{specdir}/spec.opts").chomp
end
end
task :default => :test