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

Popular posts from this blog

list macos calm editors formula editors

how i practical urls indicate .aspx pages asp.net deployed an iis? (preferably but iis)

jaxb - xjc - reworking generated typesafe enum category members