how best an rspec tradition matcher exam opening control rails app
ok, instead minute whole garland opening control specs, duplicating opposing spec files, i'm looking emanate tradition matcher. instead this:
describe "access control" do
"should hinder opening non-logged-in users"
"should hinder opening normal users"
"should hinder opening editor users"
"should hinder opening admin users"
"should grant opening super admin users"
end
i wish something this:
lambda do
:index
end.should have_access_control(:allowed => [:super_admin], :disallowed => [:admin, :editor, :user])
are there any examples suggestions i doing something this?
Comments
Post a Comment